11-16-2007 12:24 PM
11-16-2007
01:18 PM
- last edited on
02-29-2024
03:45 PM
by
migration-bot
Hi Cathy-
Thanks for reposting here. I would like to ask for some clarification to what you mean by "...only one data set" to be stored in the device FIFO at any given time. Do you mean one 1X9 array of data (comprising one sample from each channel), or an NX9 array of data (comprising one set of N scans through the 9 channels)?
The reason I ask is that your acquisition appears to be setup in On Demand (aka single point) mode and not continuous mode. Given that, the FIFO should only contain one 1X9 scan, assuming you're initiating the FIFO read process by calling aiStartOnDemand() as shown in the M Series MHDDK examples. Can you please share the portion of code that shows the calls to aiStartOnDemand and the actual FIFO read operations?
Thanks-
11-19-2007 06:32 AM
Dear Tom,
Many thanks for you interest. We would like to read one 1X9 array of data under control of the simulation program.
I have attached portions of the code as requested. Function DaqDriver::TriggerAIConversion() calls function aiStartOnDemand(). Function DaqDriver::ReadAIResults() waits for the conversion to complete then calls function DaqDriver::ReadAIFifoValue() 9 times to read the channels.
There is a loop that calls function DaqDriver::TriggerAIConversion() and function DaqDriver::ReadAIResults() (via an intermediate function) everytime the the simulation program requests data.
Many thanks in advance.
Regards,
Cathy
11-21-2007 10:45 PM