11-17-2009 08:21 AM
My programme works with an external clock with non constant pulse intervals and acquires a voltage value on the rising edge of these pulses. Is there anyway to get the voltage value at each pulse without having to wait till all the samples are collected. I wish to programmatically trigger an event when the voltage reaches a particular level during the scan so hence why i need to constantly monitor the voltage.
Any help would be great
Solved! Go to Solution.
11-18-2009 07:47 AM
Hi JED1986
I have two solutions for you for your problem.
The first idea I would recommend is creating the code below:
Remembeer to set the sources correctly, especially the clock source to read as your external clock. The above code will continously read only 1 sample with a rising edge, write it to disk, clear then will keep reading the next sample.
Another way to do this is to use an express VI and set the acquistion mode as 'on demand' with 1 sample being read. This is shown below and highlighted in red:
I hope this helps. Please let me know how you get on.