LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Text Ring and event structure

Hi i have list of item in my Text ring.i need to create event structure for Text ring.if i  click the one item i should get the item in the event.i have logic to get the item and all.I can spot the event souce as Text ring in event structure i dont know what to have as event to get the item name. i have attached an Vi which will explain u clearly.in the attached Vi i have two event after making the program to run click update button.it will update the text ring.i need the text ring event to occur when ever i click any one item in the text ring.In this case i kept the event for text ring as change value.so my problem is if first time i select T1(u can see this control in vi) in text ring event occurs next time also if i click same T1 event does not occur(check by keeping break point.I need every time i click an item in text ring event should occur for that what event i shall select.kindly clear me this problem
0 Kudos
Message 1 of 7
(3,700 Views)

I added the "Mouse Down" event to your "Value Change" case.  This will execute as soon as you click on the control, and again if the value changes.  I also added the timeout event with a 100ms value.

 

Hope this helps.

 

Jm

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 2 of 7
(3,693 Views)
The 'Update' terminal really belongs in th the Update event and if you create a stop event, there is no reason for a timeout event - especially one with a 100 msec timeout.
Message 3 of 7
(3,685 Views)

Dennis,

 

Is there a cleaner way to do what he wants without triggering the event twice (once on mouse down & again on value change)?

 

Jim

 

btw - I thought about making a stop event after finishing the timeout.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 4 of 7
(3,681 Views)
Hi i have enclosed only model program. i have seen the code in debug mode whenever i clk the textring(with out changing the value in the text ring it is making the event i dont require like that.whenever i select the particular value by clicking the value or clicking the same value once again the event should occur(i need to pass the clicked parameter represented by tick sign in text ring).in u r modified program i cant change the selection in debug mode.
0 Kudos
Message 5 of 7
(3,652 Views)
Sorry, but I don't understand what you are saying. With the posted example, the event fires whenever a new or existing ring selection is clicked. What do you mean by debug mode?
Message 6 of 7
(3,621 Views)
Thank you .it is working fine
0 Kudos
Message 7 of 7
(3,590 Views)