NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the button text in the Simple OI

My client would like me to change some of the button titles (Single Pass, Termination) that show up on the buttons in the Simple LV operator interface.

 

I tried adding this to customStrings.INI and placing it in the English folder in the public space:

[MODEL]
SINGLE_PASS= "Start Test"

 

Nope.  I also tried changing the text in ModelStrings.ini in the public area too, but this did not work.

 

Any ideas why not?

 

 

 

0 Kudos
Message 1 of 3
(3,182 Views)

Hi,

 

Changes need to be done in the language resource string. Follow the below instructions to do that.

 

1. Copy the "ModelStrings.ini" from C:\Program Files (x86)\National Instruments\TestStand 2010 SP1\Components\Language\English

 

2. Paste it to C:\Users\Public\Documents\National Instruments\TestStand 2010 SP1\Components\Language\English

 

3. Modify the "SINGLE_PASS" key under the header "MODEL" to any value you like

 

That's it and your single pass button caption would have changed when you execute the exe next time.  

0 Kudos
Message 2 of 3
(3,178 Views)

There are two other options that you could also try:

 

1.) Right click on the button you wish to change in LabVIEW and select 'Property Browser...'  This will bring up an additional window where you can set the Caption and many other items of the button.  You can also change the font in this window.

 

2.)  Goto to the VI where you connect the button to the appropriate manager control syuch as 'Simle OI - ConfigureSequenceFileView Manager.vi'  I decided to rename the Single Pass button to START to give it a more obvious action.  Single Pass is pretty cryptic to most people.

 

So for the 'ConnectCommand' method keep it the same except use a value of 0x2 for the Opts parameter.  From the help a value of 2 specifies the following:

 

  • CommandConnection_IgnoreCaption–(Value: 0x2) The connection does not set the caption on the connected control.

 

 

Good luck,

 

PH

0 Kudos
Message 3 of 3
(3,171 Views)