LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Load values txt to a ring

Hi.
I would know how can I load the numeric values that I have saved in a txt and then load them into the values of a ring.
For example.
In the properties of the ring I want the item to be displayed as LOW, MEDIUM and HIGH is what the user will choose.
In each option the value is for example

LOW: 1.2
MEDIUM: 2
HIGH 2.6

These values are stored in a txt. and can be modified.
How I can do so that when the user choose LOW, MEDIUM or HIGH load the appropriate value?
Attachment files
Thanks.

Download All
0 Kudos
Message 1 of 7
(3,463 Views)

Use a property node of the RING control.Ring.PNG

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 2 of 7
(3,455 Views)
Hi Steve.
I have clear and put a ring items.
But I want to put the values loaded from a txt.
 
valores del ring.JPG
 
Thanks.
0 Kudos
Message 3 of 7
(3,415 Views)

valores del ring.JPG

0 Kudos
Message 4 of 7
(3,413 Views)

Hi alberto,

 

you need to create an array of clusters to fit the datatype needed by that property node.

 

Just open (and read) the context help to know what you need to create!

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 7
(3,403 Views)

Hi GerW

 

Could you give me an example or guide me a little?
I took a long time stuck at this point and I do not know how to continue.

 

best regards

0 Kudos
Message 6 of 7
(3,391 Views)

Hi alberto,

 

you need to create an array of cluster of [String, value]:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 7
(3,380 Views)