‎05-13-2024 02:38 AM
I need to create a VI that allows me to determine whether the set point value set by me has been reached by the instrument. I was thinking of a VI that constantly compares the set point and the actual value, and outputs the actual value only after it has been equal to the set point for more than 30 seconds.
‎05-13-2024 03:47 PM
(This is a simple programming questions and does not belong in the "signal conditioning" forum. I have moved it to the right place)
Your "thinking" is somewhat reasonable and that should be easy to implement. What have you tried?
Of course some statements are a bit vague.
‎05-14-2024 03:03 AM
Sounds like a simple state-machine
1. Set value
2. Read value
3. If in range start/add to a timer else reset timer
4. If timer is 30, exit and return Value
5. Timeout?