LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I display the correct enum ring value from a parameter file?

A user will make selections based on the menu ring (there are several of these) and then the values are saved for later use as a parameter (text) file. I have several menu rings which I write out to a parameter (text) file.

How can I take these text values back into the appropriate location in the menu ring. For example, if I have menuring_value at index 0, menuring_value at index 1, etc. how do I make sure that, when the par (text) file is loaded, the saved values are the ones displayed without erasing the displayed menu ring value and inputting the saved one (from the parameter file). I would like the text value to search the appropriate menu ring, make a match and then display that menu ring value when the parameter file is loaded.
0 Kudos
Message 1 of 6
(2,946 Views)
rri,

I'm a little confused about what you're asking. I thought I understood until I got to the sentence "the saved values are the ones displayed without erasing the displayed menu ring value and inputting the saved one". This made my head spin. :)So if you wouldn't mind explaining it again in the plainest of terms, I might be able to help you figure out a way to do what you are trying to do.

Tyler S.
0 Kudos
Message 2 of 6
(2,927 Views)
If I understand your question, attached VI should have solved your doubt 😛

In this example, Configuration File VIs are used to save & retrieve MenuRings' statuses.
As this VI is improvised, please further modify it to suit your needs.

Cheers!
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
Message 3 of 6
(2,921 Views)
I am using Labview 6.1 and the file won't open. Do you have an earlier version? It sounds like it would work. Thanks for your help.
0 Kudos
Message 4 of 6
(2,905 Views)
The par file contains saved values from several enum rings. I would like to load the par file, display this saved value in the appropriate enum ring. When I do it, it replaces the value at index 0. I need enum ring to be searched and matched to the text saved in the par file and to display that value on the enum ring without overwriting what was there originally.

Eg. Enum ring 1 has two values - one at index 0 and one at index 1. I write out a par file as text with the value at index 1. When I try to load the par file, it replaces the value at index 0 with the index 1 value. I need it to search the enum ring, find a match and display the matched value.

Thanks for your help.
0 Kudos
Message 5 of 6
(2,902 Views)
Here it is 🙂
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 6 of 6
(2,897 Views)