Skip to content

AD9081 wrong DAC data when multi-device #646

@liangyiqiu

Description

@liangyiqiu

I am using two AD9081-FMCA-EBZ and VCU118 boards with iio Linux drivers. When I connect a second device in the pyadi code, the DAC data of the second device will be wrong. However, the ADC data of both devices are fine. This phenomenon can be reproduced stably.

For example,
dev1 = adi.ad9081("ip:192.168.2.1")
dev2 = adi.ad9081("ip:192.168.2.2")
···
dev1.tx([tx_waveform[:,0],tx_waveform[:,1],tx_waveform[:,2],tx_waveform[:,3]])
dev2.tx([tx_waveform[:,0],tx_waveform[:,1],tx_waveform[:,2],tx_waveform[:,3]])

The two devices send the same data. The DAC output of dev1 is normal, as follows:

Image

However, the DAC output of dev2 is wrong, as follows:

Image

When connecting one of the devices separately, the DAC output is normal.

I guess the problem is that the two devices share some resources in pyadi.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions