LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I activate an event structure with an control of another VI

Solved!
Go to solution

I need activate an event structure in a VI with an value change event with an control of another VI.The code is included in the images you can see in this message and the stop variable is the control who must activate the event structure from another VI.

 .

The code is from another discurssion forums, and is made by Randall Pursley (rpursley8).

 

See the link: http://forums.ni.com/ni/board/message?board.id=250&thread.id=43960

Download All
0 Kudos
Message 1 of 7
(3,955 Views)

Hi kiftren,

     You can use an event structure anywhere to detect a control change - just pass the control's reference to the VI detecting the change, and register for events dynamically (see example.)

 

Cheers.Smiley Happy

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Download All
0 Kudos
Message 2 of 7
(3,920 Views)

Hi tbd,

 

Sorry, I can´t open your archives because I use LabVIEW 8.2 and you use LabVIEW 8.5. Can you give me the picture of the code in your screen in a .jpeg archive?

 

Thank your for your help tbd.

Mensaje editado por kiftren
0 Kudos
Message 3 of 7
(3,899 Views)

Ton's Nugget on Dynamic Event Registration may be helpful. Take a look at that Nugget and let us know where you run into trouble.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 4 of 7
(3,880 Views)
Try this.  Download the subvi first.  They are in LV8.2.1
Randall Pursley
Download All
0 Kudos
Message 5 of 7
(3,829 Views)
Solution

kiftren wrote:

Hi tbd,

 

Sorry, I can´t open your archives because I use LabVIEW 8.2 and you use LabVIEW 8.5. Can you give me the picture of the code in your screen in a .jpeg archive?

 

Thank your for your help tbd.

Mensaje editado por kiftren

Hi, sorry, here are the VIs back-saved to LV8.2

 

Hope it helps!.Smiley Happy

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Download All
0 Kudos
Message 6 of 7
(3,808 Views)

Thank you tbd and rpursley8 for ours solutions.

 

Those solutions are clever and simple. I never see a refnum before, but refnum can made more simple the program that global variables.

 

It´s function correctly.

0 Kudos
Message 7 of 7
(3,783 Views)