11-30-2012 02:03 AM
There is a "String" indicator and two Boolean buttons ("GenerateMouseDown?" and "GenerateMouseUp?") on the front panel. If the value of "GenerateMouseDown?" or "GenerateMouseUp?" control is TRUE, the string of "GenerateMouseDown" or "GenerateMouseUp" will be added to the "String" indicator once I click the indicator, otherwise there is no string added to the indicator.
I created the vi as in the attachment of this post. However, if I select button of "GenerateMouseUp?" or "GenerateMouseDown?" as FALSE, the corresponding string will still be added to the indicator.
Is anybody could be help? Thanks.
Solved! Go to Solution.
11-30-2012 02:14 AM - edited 11-30-2012 02:16 AM
Hi cwy,
that's because you tied those events directly to the string "String: mouse up".
When you want to use the dynamically registered events you have to select them instead: "<String>: mouse up"...
Are you in any way related to Neo6, who has asked a very similar question just yesterday?
11-30-2012 02:17 AM - edited 11-30-2012 02:18 AM
hi
attached is the working code. study the code and let us know if you understood your mistake
Edit: hmmm... i delayed posting my message...
11-30-2012 02:25 AM
Hi GerdW and Freelance_LV,
I understand my mistake now. Thanks both of you for your kind help.