03-12-2010 03:43 PM
Hello all,
I am trying to measure an analog current input. I would like for the measurement to be ended according to the time that I want. I have made a vi that can be seen in the attachment. I simulate the device using virtual device PCI 6221. In reality NI 9203 will be used, what will happen if there is a lag between the device and my computer. What can be done to make my vi works better?
I made the vi using LabVIEW 8.5
Thank you.
03-12-2010 03:59 PM
03-12-2010 04:20 PM
Hmm.. really?
I tested it and it works, maybe you can tell me why it wont work?
I used rate of 500 and number of sample of 1000
in my waveform graph, the x-axis is shown to be 2
Do you think it would be better if the elapsed time is inside the loop?
Thanks.
03-12-2010 05:02 PM
03-12-2010 05:12 PM
Hi Dennis,
What I want is that the measurement time will be equal to the number of sample divided by the rate.
That is why I use the division as the target time for the express vi (elapsed time).
As for the start time, I used the value at which the vi started. I thought that it can be provided by the tick count.
The thing is that my vi, stop at the time that I want. It is based on the x-axis of my waveform graph. Is it wrong to say that?
Let me know if you have time to look the vi in more details.
Thanks.