ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data types event registration refnums do not match

Solved!
Go to solution

Hello everyone,

 

I am new to LabView and I need help. The following is the situation:

 

I am trying to add a user event using 'create user event' function. The output of the 'create user event' function goes to a 'Event Reg Refnum' control (not sure if it is a control), but see diag2.png. But as soon as I add the user event, the wire to the input of 'Event Reg Refnum' breaks.

 

I think I sort of know what the problem is, as it is shown in the context help, where the 'Event Reg Refnum' only has one data type, which is 'User Event - Quit Application Event'. The user event that I am adding, 'End Execution Event', is not in the 'Event Reg Refnum'.

 

The question is: How to I extend the 'Event Reg Refnum' to include 'User Event - End Execution Event' to solve my problem?

 

Can the experts out there please help me?

 

Yours,

hlim

 

Download All
0 Kudos
Message 1 of 3
(3,439 Views)
Solution
Accepted by topic author hlim

Hi hlim,

 

the quickest way to do this is to cut the connection, create a control from the output of "register for events" and add this to the cluster instead of the original refnum.

 



Remember Cunningham's Law
Message 2 of 3
(3,430 Views)

Thank you very much PeterFoerster,

 

it works! This is a quick way to do it. I wonder if one can edit the event registration refnums.

 

Yours,

HLim

 

 

0 Kudos
Message 3 of 3
(3,403 Views)