NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

controls in List bar in Operator interface

Hi
I have to change expressions that are  near items, in List Bar, that is on the left hand side of the Operator Interface
Now it looks like this  'Test Uuts --Test Socket Entry Point--,    "-- name of the sequence--" and index, that start from 3. 
I need to change index  to number of UUT,  in another words, I want that index will start from 1
Thanks a lot
Valery
 
 
0 Kudos
Message 1 of 4
(3,354 Views)
Hi Valery,
 
The index being displayed is the Execution.Id.  There is no way to reset or alter this, but you can modify the string being displayed. 
 
When you call ExecutionViewMgr.ConnectExecutionList(uiObj), in your Operator Interface, you should already be grabbing the return value and calling DisplayExpression on it.  You should already be passing a String constant into DisplayExpression.  The first part of this expression, "%CurrentExecution%", displays 'Test Uuts --Test Socket Entry Point--,    "-- name of the sequence--" and index.  You can modify the index by calling string operators on %CurrentExecution%.  To change the initial index from 3 to 1, change %CurrentExecution% to the following snippet:
 
Left("%CurrentExecution%", find("%CurrentExecution%","[")+1) + Str(Val(Mid("%CurrentExecution%", find("%CurrentExecution%","[")+1, find("%CurrentExecution%","]")-find("%CurrentExecution%","[")-1))-2) + "] - " 
 
The 2 near the end of the above snippet controls how much to subtract from the index. 
 
If you are using the LabVIEW OI, this code can be modified by going to the Simple OI - Configure ExecutionView Manager.  It would look like the following:
 
 
You would make this modification, build your executable again, and run it.
 
 

Message Edited by AEDavid on 03-22-2007 05:20 PM

Cheers,

David Goldberg
National Instruments
Software R&D
0 Kudos
Message 2 of 4
(3,311 Views)

Thanks a lot for your answer

But, I don't understand what are these functions ? I am using CVI and  I can't modify the string because of error "Missing prototape" for functions : Left, find, Mid, Val, Str.  Where they are from?

Many thanks to you

Valery

0 Kudos
Message 3 of 4
(3,262 Views)
Hi Valery,
 
Those functions are string manipulation functions in TestStand.  Make them part of the string that you pass to the DisplayExpression parameter of ExecutionListConnection and TestStand will evaluate them.  CVI should be seeing those function calls as a string, and so should not be giving you an error message about them.
Cheers,

David Goldberg
National Instruments
Software R&D
0 Kudos
Message 4 of 4
(3,245 Views)