LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

default value of string

Dear all,

I have developed a program in Labview. In my program, there are some "string controls". I need to enter the value when file is opened(for example: IP address,port no.).Do you know how to set the default value of "string control"? I don't want to enter those value evey time. Based on the value may not constant, i don't want to use "string constant"
 
Thank you.
 
Regards,
Kim
0 Kudos
Message 1 of 4
(8,111 Views)

type value, right click on control and choose "make value default".

Another method is to write a value to a local of the control early in the vis execution, if you use a state machine an initialization state.

I prefer the second method since I use queued state machine designs for most of my UI vis.

 

paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 4
(8,106 Views)
Hi,

when you're in edit mode, you can set the default value by right clicking on the control and selecting " data operations".

If you wanna set it in run mode you've to read/write from file. I think that this should be easier for you.
Software developer
www.mcm-electronics.com





PORTUGAL
Message 3 of 4
(8,102 Views)
Thank you.
I have solved my problems^^!
0 Kudos
Message 4 of 4
(8,099 Views)