LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

event call event

hello,

I would like to know how to call event from another,

I have for the moment 5 individuals actions (manage with event structure) A B C D and E  and
i  need  in somecase that A want to call E, B to call E or  B to call E then quit on quit button.

is there a way to call ( simulate) an event call at end of first really called (by user) ?

can i use flag, event register ? i don't kow what is best solution

Best regards 

Tinnitus





 


CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 1 of 8
(3,928 Views)
You simply need to trigger the event you want using the "Value (Signaling)" property node for the button:


If you place the property node write in the "A" event case, then the "B" event case will be executed. It may not be exactly next if there are other events, though.


Message Edited by smercurio_fc on 04-10-2008 11:16 AM
0 Kudos
Message 2 of 8
(3,925 Views)
Yes but it send me an error

see attachement


CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 3 of 8
(3,915 Views)
What error? You have no error clusters wired up.
0 Kudos
Message 4 of 8
(3,910 Views)

Look at the queued event driven architecture.  If you do this, for events A-E they can queue up actions states A-E or the can queue up any other states.  This decoupling of event from actions will allow for very flexable designs and minimat code overlap.

 

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 5 of 8
(3,909 Views)
>What error? You have no error clusters wired up.

when pressing A

> falkpl

is queued event  driven equals to
producer-consumer 

I know that i'll have to use on futurs applications, for this one i don't have to expect conflict, but i'll take a look



 
 
CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 6 of 8
(3,897 Views)
You will need to change the mechanical action of the buttons to one of the "switched" ones, like "Switch When Released". This will require that you write a False back to the button to simulate a "regular" button click:



Also, Paul was, I'm pretty sure, referring to the producer-consumer architecture.


Message Edited by smercurio_fc on 04-10-2008 12:34 PM
Message 7 of 8
(3,892 Views)
 

Another way to call an event is to use a user event.

Here is a tutorial on user events

http://zone.ni.com/reference/en-XX/help/371361B-01/lvconcepts/user_events/ 

Dan

Dan Shangraw, P.E.


   

0 Kudos
Message 8 of 8
(3,863 Views)