LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Option to change default string on front panel

Hi there!
I've got a program that creates a default command to be sent to a device by a serial port. Right now I have this "command string" displayed on the front panels by a string indicator. What I want to is give the user the chance to edit this string, so I'm ideally looking for a way to set the default value of a string control based on buttons the user selects. Then the user could change the default values simply by editing the default string. So how do I set the default value for a string control based on buttons I press on the front panel?

I've attached my .vi!
Thanks!
R
0 Kudos
Message 1 of 2
(2,542 Views)
One way is to save all these strings to a text file.
When the vi runs, all the commands loads to a string array (or you can default the array to all possible string commands). Then from a menu ring, you can associate an action with the corresponding element of the array by indexing.
Since the strings are constants, the operator should select rather than edit the string values.
0 Kudos
Message 2 of 2
(2,542 Views)