Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

how to get the voltage values in scan_start() before loop is completed

i am using NI PCI 6013 multi-I/O card... and i am going to use a DAQ_Stop_Trigger_Config(). when the loop is not yet over with Scan_Start(), is it possible for me to retrieve the voltage values..
and one more thing in what order is the voltage in the buffer passed back to the program. what is the sequence.. is it [chan1] [chan2] [chan3]..[chan1] [chan2] [chan3] or is it.. like.. [chan1][chan1]..(count/nChans)..[chan2] [chan2]...
pliz help..
i am using NI DAQ with VC++ enviroment..
sumits
0 Kudos
Message 1 of 2
(2,545 Views)
Sumits,

Regarding your concerns:

1)when the loop is not yet over with Scan_Start(), is it possible for me to retrieve the voltage values..(?)

Scan_start is an asynchronous function that will block access to the device and you will not be able to read the data before that function ends. If you are referring to the acquisition loop, you may want to check the DAQ_Monitor function (refer to the NI-DAQ Function Reference) to read smaller chunks of data than a half buffer at a time.

2) in what order is the voltage in the buffer passed back to the program. what is the sequence (?)

It's returned in a [chan1] [chan2] [chan3]..[chan1] [chan2] [chan3] kind of sequence. You can use the SCAN_Demux function to de-interleave the acquired samples.

I hope this hel
ps,

Alejandro Asenjo
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,545 Views)