LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling array of indicator clusters

Solved!
Go to solution

Problem:

There is an array of clusters which indicate the various equipment detected on the serial bus by make, model, and serial number.  The goal is to provide a comprehensive list to the user and allow them to select individual devices to perform several different opperations, such as remove from list and verify all, which are being handled in a mouse down, or value change event structure.  How do I keep a control, like a select button, linked up to the respective cluster element in the array?

 

 

0 Kudos
Message 1 of 6
(3,108 Views)

Buttons are no fun in arrays for the user events.

 

You will lose the ability to use latch when releaed, and instead the best you can do is detect a value change for the entire array, then test to see which one was pressed.  At that point you'll need to set the value of the button back to false.  This will give you a mechanical option of latch when pressed.

 

I've done this, but I'm never happy with the mechanical boolean operation of buttons in the array, nor do I like the increased complexity detecting the button press.

------------------------------------
Jon Kokott
CLA, CLED, CTD, MCP C#
0 Kudos
Message 2 of 6
(3,101 Views)
Solution
Accepted by topic author EnterUserName

If you don't put the button inside the array, you can calculate the array position using a property node with property IndexVals.

------------------------------------
Jon Kokott
CLA, CLED, CTD, MCP C#
Message 3 of 6
(3,100 Views)

Does sound a bit problematic.

If a nice user interface is required try parsing and representing the cluster in a multicolumn listbox and having a right click menu, or buttons which act upon the selected row.

Message 4 of 6
(3,095 Views)

This sounds do-able.  I'll have to play with this scenario.  Thanks

0 Kudos
Message 5 of 6
(3,091 Views)

Never used a listbox before but this also sounds like something worth trying. Thanks

0 Kudos
Message 6 of 6
(3,088 Views)