Jump to content
  • 0

W2 is not working with AnalogOut


AndiCh

Question

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...