キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Using one-time-only events to trigger value changes

解決済み
解決策を見る

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.

0 件の賞賛
メッセージ1/4
3,891件の閲覧回数

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.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
メッセージ2/4
3,882件の閲覧回数
解決策
トピック作成者WillB123が受理

Hi WillB123,

 

See the attached example.

 

steve

----------------------------------------------------------------------------------------------------------------
Founding (and only) member of AUITA - the Anti UI Thread Association.
----------------------------------------------------------------------------------------------------------------
メッセージ3/4
3,871件の閲覧回数

thanks

0 件の賞賛
メッセージ4/4
3,848件の閲覧回数