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