08-30-2010 01:15 PM
Hello,
I need to programmatically change the name of the report (html) for my teststand sequence. I am using a callback for the ReportOption sequence and I am passing a station global that gets defined in the mainsequence. However it seems that the reportoptions sequence is run before the mainsequence so that the report file name is not changed but until the second time I run the mainsequence. We always run as first passes.
does anybody know how to change the name programmatically. Attached is a test sequence I am working on.
Please help.
Solved! Go to Solution.
08-31-2010 05:07 AM
Hi,
ReportOptions is called before MainSequence but you could use the Override ProcessSetup to set your Report Name, which is called in the Setup of the Process Model.
08-31-2010 05:50 AM
Is there a tutorial where I can find how to change the process model?.
Thanks
08-31-2010 06:10 AM
Hi,
You dont need to change the Process Model, you use the Override Callback ProcessSetup in your SequenceFile as you do with the ReportOptions sequence.
There are examples of using the Override Callback Sequences as part of the examples supplied with TestStand
08-31-2010 08:51 AM - edited 08-31-2010 08:52 AM
Try using the following expression to set the ReportOptions.BaseName in your test sequence.
RunState.Root.Locals.ReportOptions.BaseName = StationGlobals.FileName
This should set the Locals.ReportOptions Container in your Process Model during your MainSequence callback. It will then be available when the report is generated.
Thanks,
PH
08-31-2010 09:00 AM
I am not sure if you post solutions.... but this is what my code end up looking like (see attached) in my little test sequence. I will implement in my sequence.
Than ks