LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2d Array name to item names issues

Solved!
Go to solution

Hi,

    i am working on this small code where I want to select a sensor which will output 3 axis. but I set the list box of the sensor selection to 1 or more selection mode. So when I pick more than one sensor I get 6 axis (3 for each sensor) in my indicator array. My problem is I want to list those axes in a list box. but the list box for the axis is 1D array and the item names property node is 1D array as well. My problem is the reference array for the sensor axes are 2D array. How do I get them to list?

 Please help..... An image of the short code is provided

 

Admin Note - Attachment removed per user's request

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

Use Reshape Array to change your 2D array into a 1D array.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 4
(2,950 Views)

Thanks. I decided to use a multicolum lisbox instead so I can have all the three axes of my sensor showing when i select more than one sensor. But I am not able to select item on the second or third column of the multicolum lisbox. Is there a reason why? I trying playing with the properties but nothing works

 

Admin Note - Attachment removed per user's request

0 Kudos
Message 3 of 4
(2,873 Views)
Solution
Accepted by topic author ritch_by_nature

Hi ritch,

 

in a (multicolumn) listbox you can only select rows!

 

To get a better visual impression you may select the property "mark full row" in the listbox properties…

Best regards,
GerdW


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