NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Servece request 7296432

Solved!
Go to solution

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.

0 Kudos
Message 1 of 6
(3,727 Views)

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.

 

 

Regards
Ray Farmer
0 Kudos
Message 2 of 6
(3,705 Views)

Is there a tutorial where I can find how to change the process model?.

 

Thanks

0 Kudos
Message 3 of 6
(3,703 Views)
Solution
Accepted by topic author STE_PEREZ

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

 

Regards
Ray Farmer
0 Kudos
Message 4 of 6
(3,697 Views)

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

 

0 Kudos
Message 5 of 6
(3,688 Views)

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 

0 Kudos
Message 6 of 6
(3,683 Views)