Signal Generators

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmxWriteAnalogF64 setting both channels

I'm using a PXI 4461 and I'm writing an application in c.  Is there a way to write a pattern to the first pin on the board and then in a seperate call write the pattern to the second pin on the boards?
0 Kudos
Message 1 of 2
(6,556 Views)

Hi Eagle,

         If I understand your application correctly, I believe that there could be a few ways of accomplishing this. One option would be to run one task at a time, with the separate channels in each task.  When you say that you want the first pattern to be written and then the second one- how much time do you want to be in between those writes?  Another option could be to create one task that contains both channels, and then write an array that contains 2 columns of data- one with your waveform, and the other full of zeroes.  Perform your write (so that the first channel outputs data and the second channel outputs 0), then switch the columns of the array and write again (so that the second channel outputs data, and the first channel outputs 0).  

 

Either of these options may work for you- let me know if you need further clarification.  You may also find the following links helpful:

Multiple Waveforms on Different Channels

Simultaneously Writing to/Reading Samples to/from Multiple Analog Channels

Have a good one!

 

0 Kudos
Message 2 of 2
(6,486 Views)