LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event Value Change

Does anyone know how to wire an event loop that would check to see if a button value changed within a certain time range.  The idea is that the user will set a time value to take a reading once the time has elapsed.  The code then will record the value and send it and the button should become true for a moment then turned false to indicate that it did receive data.  I want to have a way to check to make sure that the value did change within a certain time range.  I would attach the VI but it is far too complicated and this question is a little more straightforward.  Thanks for your suggestions.
0 Kudos
Message 1 of 6
(2,985 Views)
Take a time and store the value in a shift register.  Whent he value change event occurs, take the current time again and compare that value with the one stored in the shift register.
0 Kudos
Message 2 of 6
(2,983 Views)
Ok, here is the jpg of where I think this event case needs to go.  Seconds between temperature readings is the time that the user sets.  "Packet Received" is the item that I want to check to make sure it has turned on within the desired time.  I don't understand what you mean by the shift register.  Where do I go from here?
0 Kudos
Message 3 of 6
(2,980 Views)

Right click on the right or left border of the while loop and select add shift register. The shift register will carry the value you wire in at the right side to the left side of the while loop in the next iteration.

 

Felix

0 Kudos
Message 4 of 6
(2,955 Views)

rwm11 wrote: 
  I don't understand what you mean by the shift register.  Where do I go from here?

Shift registers are a very important basic concept in LabVIEW programming.  If you don't know what they are, then I suggest you go through the tutorials.

0 Kudos
Message 5 of 6
(2,935 Views)
Hope this will help you out
Regards
Guru (CLA)
0 Kudos
Message 6 of 6
(2,914 Views)