LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

initializing menu ring elements in array

I know that it is possible to initialize the elements of a menu ring using the property STRINGS[]. I have an array of 16 menu rings for labeling DAQ channels, and need to initialize the rings based of the set of available sensors (ie some sensors are retired, or out for calibration, new ones purchased). Is there a way to expose this property for an array of menu rings?

thanx
lmd2
Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 1 of 6
(4,866 Views)
Hi lmd2,

you want to have different strings for those rings? That's not possible, all elements in an array have to have the same properties!
Their only difference is the value...

Solution: define the ring with all needed values/strings and just set the values of the rings in the array!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(4,863 Views)
I understand that all the array elements will be identical; but my point is that this week they need to be A, B, C; and next week A, B, D
I don't understand your solution; for a single ring yes, use STRINGS[] - but I can not find this property for a ring that is an array element.
Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 3 of 6
(4,859 Views)
Hi Lawrence,

one way to get a property node is to right-click the array element on the front panel -> create property node. That should always work...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 6
(4,857 Views)
This seems to work, but I don't know how it would behave in a compiled application.

Use a property node to get the Array Element.Reference.

From the front panel, select the ring inside the array and Create Reference (switches to BD and places a constant)

Use 'To More Specific Class' to convert the array Element Reference to a menu ring ref using the constant from above.

Set the strings Property.





Message Edited by Phillip Brooks on 04-01-2008 08:35 AM
Message 5 of 6
(4,853 Views)
been using LabVIEW for 13 years and never accessed an array elements properties from the front panel, very cool
thanx
Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 6 of 6
(4,849 Views)