LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How i do export/extract the ring's label out in string and how do i fixed the plot legend color, instead of letting it reset default color everytime the program open

the ring label will output numeric,
but i wish to extract it's label/string too

and how do i change it's label/string?
0 Kudos
Message 1 of 5
(2,537 Views)
Hi AxE,

do this with Property nodes:
Right click on your ring control, and create a property node.
Then right click the property node and select "Properties -> Strings []".
You can change it in "Write" or "Read" mode. This will give you an array of strings which are the labels of your ring.
(see the vi attached)
0 Kudos
Message 2 of 5
(2,537 Views)
Both (reading and writting) can easily be done with the Strings[] property node.

With an enum, the reading is even easier.

See above example.
Message 3 of 5
(2,537 Views)
Regarding your second question, how to save the color of the plot legend, just choose the color first, then right-click on the graph and choose Data Operations >> Make Current Values Default.

Remember to save the VI after this step.

I hope this answers your question.

Best regards,
Philip C.
Applications Engineer
National Instruments
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
0 Kudos
Message 4 of 5
(2,537 Views)
Thanks JB,

nice demo VI, and luckily i can open with v7.0
=]
0 Kudos
Message 5 of 5
(2,537 Views)