LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

May I know how to use the user event

I saw a sample as the attached screen. The user event is used. I am totally new of user event.
may you give a brief explanation of it and how it used.
 
Thanks.
0 Kudos
Message 1 of 10
(3,221 Views)

User events are dynamically load events, that can be triggered by your code. You can use any datatype.

There is nothing more. If you are familiar with dynamic loading events, you should have no problem understanding user events too.

0 Kudos
Message 2 of 10
(3,204 Views)
 

Here and here are a couple of sources. You can also find some example in the example finder (Help>>Find Examples) or search for more online.

 


___________________
Try to take over the world!
0 Kudos
Message 3 of 10
(3,183 Views)

After seen the samples, I am still not very clear of it.

Can I use code to simulate a click on a button, may you give a simple sample, thanks.

0 Kudos
Message 4 of 10
(3,150 Views)

Hi turbot,

what do you mean with simulate a click? You can use the value(signaling) property. If you use it the value change event of the control will be execute.

Mike

0 Kudos
Message 5 of 10
(3,147 Views)
But I tried the attached samples, seems cannot make it.
0 Kudos
Message 6 of 10
(3,139 Views)
Hi turbot,
attached you will find an example. There is no need to use local variables. Smiley Happy
Mike
0 Kudos
Message 7 of 10
(3,133 Views)

As mentionned by MikeS81, you must use a Value (Signaling) property node to generate an event. In your example, you write to the terminal of Boolean instead.

 
0 Kudos
Message 8 of 10
(3,130 Views)
I changed to the property node, but still not work as attached.
0 Kudos
Message 9 of 10
(3,115 Views)
 

No you didn't.

Ready more carefully

"Value (Signaling) property node "

0 Kudos
Message 10 of 10
(3,110 Views)