LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help finding a control

I want to list all of the connectors on a board on a vi front panel (e.g. J1, J2, etc...). If the user clicks on e.g. J1, all of the pins on J1 will be displayed, like when using a treeview. The user will then be able to select multiple pins from J1 (e.g. he/she clicks on J1-1 and J1-3). Whatever pins are selected I will set high. I thought I'd be able to put multiple treeviews on my vi, one for each connector, but it seems that with a treeview no more than one selection can be made. Basically I need a control that is expandable and multiple selections can be made. Is there a control that does this?
Thanks and regards
0 Kudos
Message 1 of 6
(3,216 Views)
Could you please draw us a picture (text is fine) of approximately what you are looking for.

It sounds to me, if I read your question correctly, that a text indicator will do the trick.

For example:

Before:

J1
J2
J3
J4

After J2 selected:

J1
J2
Pin 1 -
Pin 2 -
Pin 3 -
Pin 4 -
etc...
J3
J4

This can be done with a bit of work using a simple string indicator, a table, a list, etc.

For a string indicator, you would detect the selection by either polling the selection and an "Okay" button, or using a mouse up event on the control then checking the property corresponding with selection.

List indicators may be easier to work with programmatically, but I don't know if they are any cleaner looking. I suspect they are
probably the same. I can whip up a simple example if you wish...

I hope this helps

-Mike Du'Lyea
Advanced Test Engineering
http://advancedtestengineering.com
Message 2 of 6
(3,216 Views)
Will this help?

ian"
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
Message 3 of 6
(3,216 Views)
Hi Mike,

The representation you created is perfect. I understand what you are saying but if you could provide an example that would be great. Thanks.
0 Kudos
Message 4 of 6
(3,216 Views)
Thanks Ian, that works great.
0 Kudos
Message 5 of 6
(3,216 Views)
great. tell me how much it helps by clicking on the stars 🙂

Cheers and have fun
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 6 of 6
(3,216 Views)