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

trigger event from different loop

解決済み
解決策を見る

Dear all,

I am working on an application using Producer/Consumer architecture.

In the producer loop i collect data from my H/W, and in the Consumer loop i process it. 

the producer loop has event structure also which can be triggered using buttons on the front panel. 

  Now, there is a Record Button on the front panel which will start saving the incoming data to the file. and the Event Structure taking care of Record is in Producer loop.

Now how can i trigger the Record Event in the Producer loop from the Consumer loop ??

 

 

Thanks,

Ritesh 

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

When you want to include events that don’t occur on the front panel, you will need to register a dynamic event. Using dynamic events will allow your Event Structure to react to code happening anywhere on your block diagram. Have a look at:

labview\examples\general\dynamicevents.llb

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 件の賞賛
メッセージ2/4
3,099件の閲覧回数
解決策
受理者 LVCoder
Or, you could simply write to the Value (signaling) property for the button (assuming that's the event that you're handling for a user pressing the button).
Message Edited by smercurio_fc on 05-02-2009 09:04 AM
メッセージ3/4
3,085件の閲覧回数

Yeah Value(Signalling) Property does the job quiet well.

Thanks

 

 

 

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