LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate event on other control within one event

Hello
I am using event structure.
When program is inside the event case of one control, I want to trigger the �mouse down� event on another control at that time (without operating that another control),
so that next time, another control�s event is called.
I have many controls and hence thrir event cases , after which I want to trigger a specific event case corresponding to a button control.

(I wish to keep the contents of button2 case inside the event only)

In attached example:
When user clicks �button 1� or �button 3�, event must be generated so that contents of �button 2� event are executed when program comes there next time

Thanks
0 Kudos
Message 1 of 20
(4,314 Views)
Why are you using "mouse down?" filtering events? Just use "value changed" events on the three buttons. Now create a "value(signaling)" property node for button 2 and write to it in event case 1, repeat for case 3.
Let me know if you still have problems and I'll make an example.
Message 2 of 20
(4,313 Views)
Here is an example based on altenbach's description. Hide the boolean control labled Hide Me as it will not be used on the front panel.
- tbob

Inventor of the WORM Global
0 Kudos
Message 3 of 20
(4,312 Views)
Sorry, I just noticed that you only use LabVIEW 6.1 where signaling properties are missing.

Here is a simple solution for LabVIEW 6.1:
- set all buttons to latch.
- set all button events to "value changed"
- merge the timeout event with event 2
In event cases 1 and 3 set timeout to zero, in all other cases to -1 (no timeout).

See attached example. I placed a 500ms wait.
0 Kudos
Message 4 of 20
(4,109 Views)
Hi altenbanch.
I tried as per ur suggestion. But does not seem to work. Attached is example. Would you mind putting together working one with your idea..
Thanks
0 Kudos
Message 5 of 20
(4,312 Views)
Hello tBob,
Would you mind recompiling your example in LV6.1 or LV7.0 ?
Thanks
0 Kudos
Message 6 of 20
(4,312 Views)
Hi altenbanch.

Thanks.This calls event2. But keeps continuously calling. I want only once. (I can put a variable there so that event executes it only once but ) Is there any way an have this event as non TimeOut event (other than timeout event?).
0 Kudos
Message 7 of 20
(4,109 Views)
Here it is in LV7.0. Notice that I used the Value Signaling property {Val(Sgnl)}, not the Value property.
- tbob

Inventor of the WORM Global
0 Kudos
Message 8 of 20
(4,311 Views)
"Hi altenbanch.
I tried as per ur suggestion. But does not seem to work. Attached is example. Would you mind putting together working one with your idea..
Thanks"
0 Kudos
Message 9 of 20
(4,108 Views)
Hi Bob.
This works.Thanks.

My questions you you are:
*1
you set Value change(signal)=FALSE
still 'value change' event is generated --- how?

*2 do u know why NI has put following statement in help of value (signalling) property?
"National Instruments recommends you use this property only when you rely on LabVIEW generating an event in response to the programmatic value change."

Thanks again.
0 Kudos
Message 10 of 20
(4,311 Views)