03-06-2013 12:46 AM
Hi,
I am using an event structure to monitor the value change for a string dropdown control. about one in every 3 times, the event structure does not seem to be responding to the value change. the expected action does not happen. Any ideas?
Thanks.
03-06-2013 12:55 AM
is it a combo box control you are using? can you show the event configuration of your structure because this sounds really surprising.
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
03-06-2013 02:04 AM
Yes, please post your example showing the situation.
Which version of LV are you using?
Norbert
03-06-2013 03:22 AM
If you select the same value as it were, there's no value change event.
/Y
03-06-2013 07:39 PM
Hi Everybody,
Thanks for the quick responses. Here are my replies:
1. I am using a string combo box control.
2. Unfortunately I am not permitted to share code online :(.
3. I am using LV 2009.
4. I will try my best to describe the functionality of the code here.
a. Populate the string combo box with a list of options at runtime.
b. Wait for user to select one option. Use event structure to capture this value change.
c. Once the user makes the selection, populate a string indicator with some data based on the value selected by the user.
5. This is where the error is happening. Once in every 3-4 times, the string does not get populated. I monitored the active states in the state machine and found that the paticular state which was supposed to execute on value change is not executing at all.
6. It is a 2 loop state machine. One loop with the event structure to capture user events and one loop for the state machine.
7. Event structure has the "Lock front panel till event completes" option UNchecked.
I know it is difficult for you guys to make suggestions without the code. I will try my best to upload the code or at least the relevant portion online. In the meantime, these are the details that I can share.
Thanks Guys...
03-07-2013 01:19 AM
I am thinking of the most basic thing... If you use a property-Node to write your string, turn on signaling or your event structure will not respond.
Good luck trying to post your code! ![]()
03-07-2013 02:08 AM
As i mentioned, double check that you get the Value Change event. If you populate a ring control and select the already selected value there's no value change event (it should really be an option for that).
One easy workaround is adding a "No option" as 1st row and autoselect that one, thus the user must select something and generate a value change.
/Y