From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-08-2005 03:50 PM
09-08-2005 05:51 PM
09-08-2005 07:26 PM
Given LV's current way of passing data into events, these restrictions also make good logical sense. Think about it for a moment: If someone were to trigger the combined event by pressing a button, what would you set the item tag and item path data values to? Or for that matter, say someone fires the same event by making a menu selection. What would you set the NewVal data value to?
Mike...
09-09-2005 07:46 AM
Hi Mike:
There are easy ways with logic to handle the different firing of events by determining actually which event was fired.
Regarding the use of different events in the same case, note that I have used different event types in the same case in many applications. One example is a 'mouse up' event on a control in combination with a value change event on a different control. The advantage of this type of strategy is one does not have to duplicate event cases (which by the will be my workaround in this case - no pun intended) if the same actions are to occur in both cases.
Sincerely,
Don
09-09-2005 03:41 PM
Oh yes, I have doubled-up events many times myself. The point I was making is that if you combine certain types of events it makes logical sense that the event data that is available would change...
Mike...
03-07-2011 11:14 PM
HI.. I am also doing tha same case.. Handling menu selection and value change in same event handler. Could you please let me know how to find which event is fired.
03-08-2011 08:39 AM
There is a "Type" node on the left hand side of the event case you can look at to determine the event that fired the case.
03-10-2011 08:50 PM
In this thread, they are using it for user created item. But I am using it for application item cut. So I started new thread.
Since I am using application item, I dont have any case structure for cut.So how can i check the type of event and fire different actions.