Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

WriteMultiSamplePort only writing last value in array

I'm new to c# and to the NI programming.  I have a PCIe 6321 DAQmx board.  I want to write a buffer/array of values to Dev1/port0:0-7.  I can write a single value just fine using WriteSingleSamplePort, but when I try to write 8 data values via WriteMultiSamplePort, all I get out is the last element of the buffer/array.  I monitored the output from the PCI card using a logic analyzer.

 

What am I missing?  Should I use a clock with this output?  I'd like to control the data generation rate, but I have not gotten that far.  I presumed the internal rate generator of the board would be sufficient for the data generation.  Additionally, I presume the data should repeat until I tell the board to stop generating.

 

My simple program is supplied with this message.

 

I'm using DAQmx 19 with VS 2017.

 

Any help is appreciated.

0 Kudos
Message 1 of 1
(1,659 Views)