LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can not use Global Variable in Event Structure

Solved!
Go to solution

Have you considered an Action Engine (AE) for the Stop function?  Search for Ben's Nugget on AEs if you are not familiar with the concept.

 

As for polling, the only place that would be needed is in the even structure.  Just read the AE in the Timeout case.  No extra code for polling.  Anywhere else the AE can be read just as the global is read.

 

Lynn

0 Kudos
Message 21 of 25
(2,504 Views)

I'm still having trouble connecting the Create User Event to the Global variable because I don't know how to define the Global variable. If I define the Global variable as a boolean indicator, I get a broken wire from the Create User Event because the output is a user event refnum. But there is no User event Refnum variable in LabVIEW for me to use in the Global variable definition.

 

How did you define user event out so that you could connect it to the Create USer Event?

Can you show the code (front panel) for it?

 

THANKS.

0 Kudos
Message 22 of 25
(2,463 Views)

Right click on the output of the Create User Event and select Create>Indicator. Cut and paste that into a global VI.

Message 23 of 25
(2,459 Views)

It Works ! (of Course)

 

LabVIEW is pretty good at hiding things like this in different places.

 

THANKS MUCH !

I am very grateful.

0 Kudos
Message 24 of 25
(2,442 Views)

@dbaechtel wrote:

It Works ! (of Course)

 

LabVIEW is pretty good at hiding things like this in different places.

 

THANKS MUCH !

I am very grateful.


Two of my early G-Daddies taught me two imporatant leasons to thrive in LV.

 

1)

If I do not know how a function works I used "ctrl-n" to create a new VI and try the function out.

 

2)

If in doubt, right-click.

 

Ben

 

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 25 of 25
(2,438 Views)