05-14-2013 01:57 PM
Hello all. I am new to LabView and was hopeing someone could point me in the right direction on something I am trying to do.
What I would like to do is on the event of an input from the front panel (button click) I need to: read a value from an analog input, store that value, wait 60 seconds, read the input again, then compare the 2 values and display the difference.
All of this has to occure while running inside a while loop.
My main problem is starting the event in the loop and having it stop after 60 seconds.
Thanks
05-14-2013 02:26 PM - edited 05-14-2013 02:48 PM
@MaxPowers wrote:
Hello all. I am new to LabView and was hopeing someone could point me in the right direction on something I am trying to do.
What I would like to do is on the event of an input from the front panel (button click) I need to: read a value from an analog input, store that value, wait 60 seconds, read the input again, then compare the 2 values and display the difference.
All of this has to occure while running inside a while loop.
My main problem is starting the event in the loop and having it stop after 60 seconds.
Thanks
a simple state machine(start button,elapsed time,read value, evaluate) with elapsed timer with shift registers to hold the first,second value..then evaluate
note:timer is set to 5 secs.
05-14-2013 02:34 PM
you might want to check the VI in attachment to get an idea.
I stored the data in a variable, you might want to consider putting it in a shift register as well if you do not need to see what the valuies are