10-13-2009 09:50 AM
In my application, there are bursts of sampling (on the order of 10 milliseconds) with long quiet intervals (on the order of seconds) in between. I'm trying to understand how to structure my loop. It seems that "finite samples" is the appropriate way to set up my task clocking. Now, questions:
Along with specific answers, I would be very happy to be pointed to reference material that gives a good explanation of using finite samples.
Thanks in advance,
Ken
10-14-2009 06:46 PM
Hello Ken,
1. What device are you using? The X Series DAQ allows for retriggerable Acquisition. The Acq&Graph Voltage-Int Clk-Retriggerable.vi can be found in the Example Finder. If you are using an M or E Series card, the Finite Retriggerable Analog Input Using Digital Trigger should suit your application.
2. When the number of samples per channel is set to -1, the vi waits for the task to acquire those samples. There is a property node "Read All Available Data that allows you to control whether or not to read directly from the buffer without waiting for the defined number of samples.
3. Error -200278 at DAQmx Read, provides some explanation.
Regards,
Glenn