LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Question about dynamic event structure

Solved!
Go to solution

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.

0 Kudos
Message 1 of 4
(2,336 Views)
Solution
Accepted by topic author cwy1007

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?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,329 Views)

 

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...

Regards
Freelance_LV
TestAutomation Consultant
0 Kudos
Message 3 of 4
(2,324 Views)

Hi GerdW and Freelance_LV,

 

I understand my mistake now.  Thanks both of you for your kind help.

0 Kudos
Message 4 of 4
(2,319 Views)