10-03-2005 04:20 PM
10-04-2005 05:59 PM
Hi Richard,
It looks like you are trying to perform a hardware timed acqisition using a timed loop. There is another hardware timed example in the LabVIEW example finder that I think would be better for your application. I recommend taking a look at the Continuous Acquire and Graph-Internal Clock Example. It is located in Help >> Find Examples >> Hardware Input and Output >> DAQmx >> Analog Measurements >> Voltage.
I curious as to what is your reason for running the loop 3000 times a second. Are you trying to acquire 3000 samples/second? If this is the case, then you can setup your acquisition to acquire those samples without having to execute the loop 3000 times. You can specify your sample rate and number of samples to read with this example. I hope this helps.
Regards,
Hal L.
10-05-2005 12:17 PM
Thanks for the reply,
OK, the rest of the story.
10-06-2005 06:12 PM
Hi Richard,
I still think that you can use the Acquire and Graph Internal Clock.vi. If you set the clock to acquire at 3000 Hz, acquire 3000 samples, and send your data to a "Write LabVIEW Measurement File" express vi, then the first column will automatically be the timestamps that you desire and you will acquire the correct number of samples. I am posting an example program for you that will help you with your application.
Regards,
Hal L.
10-11-2005 02:24 PM
10-11-2005 03:06 PM