12-02-2005 01:07 PM
12-02-2005 02:22 PM
Hi saroj-
If you need more help getting started feel free to post here. If you have specific questions about your app that might benefit from a larger audience I would suggest posting a new thread as it can be a bit hard to wade through a long one like this. Best of luck with your app-![]()
12-05-2005 07:57 AM
Good Morning Tom,
In the example AcqIntClk, the min and max for all the channels is the same . -10 to 10 volts. In my case the min,max will vary for each of 8 or so channels. Does this mean I need to have 8 separate sets of API calls for 8 channels instead of the contiguous ai0:8 as the example uses? i.e 8 createTasks, 8 configureTasks, 8 createChannels etc?
Thanks,
saroj
12-05-2005 08:21 AM
Hi saroj-
You're almost correct- you can only have a single task running at any one time on the board, so you should just create and configure one task and then call the createChannel function 8 times and refer back to the single task you have created. This will allow you to set different gain (i.e. min/max values) for each of the channels you will be scanning.
Hopefully this helps-
12-05-2005 08:31 AM
12-05-2005 11:23 AM
12-08-2005 06:26 AM
Hi Tom,
When the config is set up to read 750 samples at 250 samples per second continuously , so that the sample collection wil take 3 seconds, and I have my read in a loop like this:
while isRunning
DAQmxErrChk DAQmxReadAnalogF64(taskHandle, numSampsPerChannel, 10#, _
fillMode, data(0), arraySizeInSamps, sampsPerChanRead, ByVal 0&)
CWGraph1.PlotY data
Loop
then how fast will it read the board? Will the read wait for 750 samples to be collected before it executes?
Will I see the plot update once every three seconds? I dont have the board here so I cant test it out.
Please let me know.
thanks,
saroj
12-08-2005 06:38 AM
12-08-2005 10:14 AM
Hi saroj-
The DAQmx Read functions are indeed blocking calls that will wait until the requested number of samples are available. The timeout parameter specifies how long to wait before the DAQmx Read operation will abort and an error will be thrown.
One caveat of using simulated devices is that timing and triggering information is not always realistic. Finite acquisitions and all triggering operations complete immediately without giving realistic wait times when simulated devices. Continuous acquisitions give realistic wait times only in NI-DAQmx 8.0 and later. Previous versions saw continuous acquisitions with simulated devices also completing immediately. With physical devices, both finite, continuous, and triggering operations operate as expected as I described in my first paragraph.
Thanks-
12-09-2005 09:10 PM