LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

trigger event from different loop

Solved!
Go to solution

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 Kudos
Message 1 of 4
(2,645 Views)

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 Kudos
Message 2 of 4
(2,639 Views)
Solution
Accepted by topic author 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
Message 3 of 4
(2,625 Views)

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

Thanks

 

 

 

0 Kudos
Message 4 of 4
(2,610 Views)