05-05-2006 10:36 AM
05-08-2006 10:13 AM
Hi MadhuSri,
I need to get some more information to be able to help you out. Are you using the Operator Interface or the Sequence Editor for TestStand? Also, when you say combo box, specifically which combo box are you referring to?
05-09-2006 12:30 AM
Hi Sims,
Here am referring to the Operator interface and not the sequence editor. I am referring to the executin comboBox (i.e) the combox box which contains the list of the various executions or sequences.
Thanks,
MadhuSri
05-09-2006 10:28 AM
Hi Sims,
Here is the sample expression given to specify what information to display in each execution list combobox entry in the OI using C# interface:
axExecutionViewMgr.ConnectExecutionList(axComboBox1).DisplayExpression = @"""%CurrentExecution% - "" + (""%UUTSerialNumber%"" == """" ? """" : (ResStr(""TSUI_OI_MAIN_PANEL"",""SERIAL_NUMBER"") + "" %UUTSerialNumber% - "")) + (""%TestSocketIndex%"" == """" ? """" : (ResStr(""TSUI_OI_MAIN_PANEL"",""SOCKET_NUMBER"") + "" %TestSocketIndex% - "")) + ""%ModelState%""";
I have to modify this expression so that it indicates only the UUT Serial Number and Socket Index.
Please help me out with this as early as possible.......
Thanks,
MadhuSri
05-09-2006 12:24 PM
Hi MadhuSri,
Try using this expression in your code.
axExecutionViewMgr.ConnectExecutionList(axExecutionsComboBox).DisplayExpression = @"(""%UUTSerialNumber%"" == """" ? """" : (ResStr(""TSUI_OI_MAIN_PANEL"",""SERIAL_NUMBER"") + "" %UUTSerialNumber% - "")) + (""%TestSocketIndex%"" == """" ? """" : (ResStr(""TSUI_OI_MAIN_PANEL"",""SOCKET_NUMBER"") + "" %TestSocketIndex%""))";
05-10-2006 06:48 AM
Hi Sims,
Thanks for the suggestion. It worked out the way expected. I would also like to know how to customize the Expression to display user-defined string along with the Serial Number (say: 'UUT Name followed by the Serial Number' Eg. 'Pump - UUT00001').
Thanks,
MadhuSri
05-11-2006 09:55 AM
Hi MadhuSri,
There isn’t a TestStand property for the UUT Name. There is only the UUT Serial Number. You can manually add a string to the beginning of the expression. Here is an example that adds UUT Name to the beginning:
axExecutionViewMgr.ConnectExecutionList(axExecutionsComboBox).DisplayExpression = @"(""UUT Name - "") + (""%UUTSerialNumber%"" == """" ? """" : (ResStr(""TSUI_OI_MAIN_PANEL"",""SERIAL_NUMBER"") + ""%UUTSerialNumber%""))";
05-13-2006 09:15 AM
HI Tesmis,
Can you please explain the the display expression?
I would like to know what is the exepression ResStr(""TSUI_OI_MAIN_PANEL"",""SERIAL_NUMBER"") and from does it fetch the serial number......
Thanks and Regards
MadhuSri
05-13-2006 12:24 PM
05-19-2006 12:06 AM
Hi Farmer,
Thanks for your response. That makes me clear in understanding the expression.
On customizing the OI(in C#) i set the serial number for the batch UUTs at run time in the following path "RunState.Root.Parameters.TestSocket.UUT.SerialNumber". But after assigning i fine that %UutSerialNumber% is still empty. But in the reports generated, the set serial numbers are being displayed.
Now how am i to modify the display expression to display the UUT Serial Number.
Thank and Regards,
MadhuSri