04-03-2015 09:28 AM
Hi everyone,
I want to get any control's reference when click the mouse button on any control.(Front Panel includes hundreds of different types of control.) Actually, I found method using "register for event:mouse down value source". This solution is fine working.
But I don't want to use this method. Please Can you suggest any other method ?
Thanks for answer...
04-03-2015 10:12 AM - edited 04-03-2015 10:12 AM
There is a property of the front panel of a VI that returns all controls of a front panel. You can register for all controls on a front panel and then the same event will be generated for any control. Drop down a property node of type VI, get the front panel reference, then use another property node to get all controls.
I also made an XNode to help getting references of a specific type, or with a specific label. Say get all controls that start with Boolean.
https://lavag.org/files/file/260-find-references-xnode/
Be sure and pay attention that XNodes are experimental.
Oh and using the hidden gems you can get a reference to an object based on its label. Using this you could iterate over an array of labels to get.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
04-03-2015 10:16 AM - edited 04-03-2015 10:16 AM
Using a couple of property nodes, you can get an array of references for all of the controls on a front panel. From there, just register the array.
04-03-2015 10:48 AM
04-03-2015 11:53 AM
If your solution is working fine, then why do you not want to use it?
04-03-2015 03:04 PM
04-04-2015 01:34 PM
04-07-2015 12:08 PM
Hi Himmet,
I am sorry that you are having trouble with using control references. Can you explain in more detail why the above solutions do not work in your application?