05-07-2012 05:50 PM
Hello. I have experience with LabVIEW, but not much experience with event structures. Here is my situation:
Lets say I have an input, X, which comes from an external source. X is essentially random, from -100 to 100. My output will be Y, which will be generated by labview. I want Y to have an initial value of 0. The first time that X becomes greater than 10, I want Y to change to 1, and stay 1 from now on, until the first time that X becomes greater than 20. The first time that X is greater than 20, I want Y to change to 2, and stay at 2 forever no matter what X is, until the program is terminated.
Basically the program will constantly be sampling X, and when X reaches a certain threshold, it will change and hold the value of Y until the next threshold is reached.
Any help is appreciated.
Solved! Go to Solution.
05-07-2012 06:30 PM
The event structure is not useful for this situation. Sounds what you really need is an Action Engine. I'll let Ben's nugget speak for itself.
05-07-2012 07:37 PM
Hi WillB123,
See the attached example.
steve
05-09-2012 03:57 PM
thanks