12-11-2007 01:31 AM
12-11-2007 03:40 PM
Hi Kevind,
If you just want a simple program to acquire one sample per second, there are a couple of options. First, you could specify in the Acquisition mode to acquire 1 Sample (On Demand) which will just acquire 1 sample every time that the DAQ Assistant runs. Then you could put a while loop around the DAQ Assistant and add in a Wait Until Next ms Multiple function and wire a constant 1000 ms to the input. This way, the loop will run every 1000 ms (1 s) and take a sample each time.
Another way to do this would be to use the N Samples option. Here you will need to set up a rate (1 Hz in your case) and a number of samples that you want to acquire. This will specify how many samples are being taken into your buffer at each run of the loop.
Try one of these options and see if this helps. If not, please post back and give the error code and description. This might give more insight into what the actual error is.
In addition, here is a link to the Getting Started with DAQmx series on the website where it explains some of these concepts. Thank you for posting!
12-12-2007 01:14 AM
12-13-2007 01:14 PM