AndiCh Posted February 17, 2021 Share Posted February 17, 2021 I want to output a stereo Signal on wavegen. W1 is working as expected but W2 gives no Signal on oscilloscope. The hardware is tested with Waveform tool and it is fine. I can output two different custom signals on W1 and W2. The SDK is up to date. I assume to have a fault in initialisation of the channels. See the code is in the attachment. The problem is in play_Digilent() method. A working example to output a custom signal on both channels would be very helpful. record.py Link to comment Share on other sites More sharing options...
attila Posted February 17, 2021 Share Posted February 17, 2021 Hi @AndiCh In the code for stereo data (self._dataRx.shape[1] == 2) you are configuring AWG 1 Carrier and FM nodes. To play on AWG 1 and 2 use: channelw1 = c_int(0) # AWG 1 channelw2 = c_int(1) # AWG 2 ... dwf.FDwfAnalogOutNodeEnableSet(hdwf, channelw1, c_int(0), c_bool(True)) dwf.FDwfAnalogOutNodeEnableSet(hdwf, channelw2, c_int(0), c_bool(True)) ... Link to comment Share on other sites More sharing options...
AndiCh Posted February 19, 2021 Author Share Posted February 19, 2021 Hi Thanks a lot for your fast answer. The Problem is solved. I post the working code as an example. One thing for understanding. What is the parammeter "node" used for. I did missunderstand that as ch1 and ch2. In the SDK Refrence Manual is no explanation for that. record.py Link to comment Share on other sites More sharing options...
attila Posted February 19, 2021 Share Posted February 19, 2021 Hi @AndiCh Most of the analog-out functions have device handle, channel index and node arguments. The node represents the carrier, frequency and amplitude modulation. For instance you can specify sine carrier and modulate the signal, or stream/play data in FM or AM buffer. Link to comment Share on other sites More sharing options...
Question
AndiCh
I want to output a stereo Signal on wavegen. W1 is working as expected but W2 gives no Signal on oscilloscope.
The hardware is tested with Waveform tool and it is fine. I can output two different custom signals on W1 and W2. The SDK is up to date.
I assume to have a fault in initialisation of the channels. See the code is in the attachment. The problem is in play_Digilent() method.
A working example to output a custom signal on both channels would be very helpful.
record.py
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.