LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Register for Events

Solved!
Go to solution

How to get the outputs from the 'user-event' terminals of Register for Events function like shown in figure? The 'Register for Events' function doesn't seem to have output terminals like this. 

Jyo263_1-1717559682887.jpeg

 

0 Kudos
Message 1 of 5
(368 Views)
Solution
Accepted by topic author Jyo263

Hi Jyo,

 


@Jyo263 wrote:

How to get the outputs from the 'user-event' terminals of Register for Events function like shown in figure? The 'Register for Events' function doesn't seem to have output terminals like this. 


The wires are connected to the input of the RegisterEvent node…

 

Do you see the importance of never hiding wires behind other structures to improve code readability!?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(321 Views)

Hello Jyo,

 

the terminals at "Register for User Events" are just inputs:

 

User Event Terminal.png

This node just bundles the refnums of controls or user events, to create a registration for an event structure.

 

Greets, Dave
Message 3 of 5
(319 Views)

However, in the figure it seems to have global variable. How were they obtained?

 

0 Kudos
Message 4 of 5
(283 Views)

Hi Jyo,

 


@Jyo263 wrote:

in the figure it seems to have global variable.


The event refnum is written to a global variable.

 


@Jyo263 wrote:

How were they obtained?


You create an indicator for the event refnum, then you move that indicator into a global variable VI.

Pretty basic LabVIEW stuff: did you take the Training resources offered at the top of the LabVIEW board?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 5
(271 Views)