NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Change UUT serial Number with Single Pass in Batch model

How do I change the UUT serial Numbers with Single Pass in Batch model ?
 
I also like to change the UUT report path, so that each UUT saved in it's own directory.
 
TIA
George Zou
0 Kudos
Message 1 of 12
(6,268 Views)
TIA,

the path to the UUT report can be configured in the report options. You can dynamically create the reportfilename by choosing a fitting setting.
Both report path and UUT serial number are stored in the sequence context during execution. So if you want to know where those variables are located (in order to change their values during runtime), you can set a breakboint in your sequence, change to the variabels tab and do a search for the variables (you perharps have to play around a bit with the searchstring though).

hope this helps,
Norbert
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 12
(6,250 Views)
the path to the UUT report can be configured in the report options.
You can't specify unique path for each UUT in the report options.
 
Both report path and UUT serial number are stored in the sequence context during execution. So if you want to know where those variables are located (in order to change their values during runtime), you can set a breakboint in your sequence, change to the variabels tab and do a search for the variables (you perharps have to play around a bit with the searchstring though).
I've already find the place where TestStand holds the information.  The problem is that there is no proper callback I can override.
I can only change the serial number in my sequence file.  But that is too late to include the serail number in the report file name.  The serial number inside the report does get changed.
By the way, I can't change the process model.  User wants out of box batch model.
 
Thanks for reply.
 
George


Message Edited by zou on 06-19-2008 08:40 AM

Message Edited by zou on 06-19-2008 08:43 AM
George Zou
0 Kudos
Message 3 of 12
(6,239 Views)
Georg,

you are correct that the report options does not support to create unique paths for each UUT. Nevertheless, you can alter the serial as well as the path in you execution.
Just try this as a statement if you use ASCII reports:
RunState.Root.Parameters.TestSocket.ReportFilePath = "C:\\Temp"+str(RunState.TestSockets.MyIndex)+"\\Temp.txt"

hope this helps,
Norbert

PS: just understood that "TIA" should be thanks in advance 🙂
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 12
(6,233 Views)


Norbert B wrote:
Georg,

you are correct that the report options does not support to create unique paths for each UUT. Nevertheless, you can alter the serial as well as the path in you execution.
Just try this as a statement if you use ASCII reports:
RunState.Root.Parameters.TestSocket.ReportFilePath = "C:\\Temp"+str(RunState.TestSockets.MyIndex)+"\\Temp.txt"

hope this helps,
Norbert

PS: just understood that "TIA" should be thanks in advance 🙂



Norbert,
 
Thanks for quick reply.
I'm using xml report.  Should I change to:
RunState.Root.Parameters.TestSocket[RunState.TestSocket.MyIndex].ReportFilePath = "C:\\Temp" + Str(RunState.TestSocket.MyIndex) + "Temp.xml" ?
 
and where should I put this statement ?
 
George
 
 
George Zou
0 Kudos
Message 5 of 12
(6,227 Views)
Norbert,
 
Novermind.  I got it.  Thanks lot.
 
George
George Zou
0 Kudos
Message 6 of 12
(6,220 Views)
Norbert,
 
TestStand strip the UUT path, and uses only the name and the path from Report options.
 
George
 
George Zou
0 Kudos
Message 7 of 12
(6,203 Views)
Georg,

you have to insert the given string as statement into your client sequence. That should work.

hope this helps,
Norbert
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 8 of 12
(6,183 Views)
Norbert,
 
By the time running the first step in my sequence, the UUT reports have been generated.
 
George
 
George Zou
0 Kudos
Message 9 of 12
(6,173 Views)
Georg,


By the time running the first step in my sequence, the UUT reports have been generated.


The only setting which "does" this is OnTheFly Reporting with "Conserve Memory" Option active. So it is best to change that....

hope this helps,
Norbert

[EDIT]: Only the file is opened and located before the MainSequence. In fact, using this setting, after each step-execution, this file is written again.....


Message Edited by Norbert B on 06-20-2008 10:16 AM
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 10 of 12
(6,168 Views)