NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing the original sequence path

Hi all,
 

"""Begin Sequence :  MainSequence

(C:\Documents and Settings\157257\Desktop\Sequence1.seq)""""

comes in the body of the report. I want to put the same in my header file. How to do that.

I am getting the path of the report file but not the path of sequence file. I tried using "RunState.SequenceFile" activex, but it is showing me the path of reportgen_txt.seq.

Please help!!

 

0 Kudos
Message 1 of 7
(3,786 Views)
Hi,
 
 
In the report sequence, it uses the property, "Parameters.Result.TS.SequenceCall.SequenceFile" to obtain the path to the sequence file for which the sequence call belongs.
 
So in AddReportHeader you would use "Parameters.MainSequenceResults.TS.SequenceCall.SequenceFile".
 
Hope this helps
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 7
(3,785 Views)

Hi Ray,

Thanks a lot, it is working but with some problems. While executing the original seq, a run-time error popup is coming, even if I say ignore, I am getting the original sequence path getting printed on the report header.

I want to know why is that Run time error coming.

The error reads:

The post-expression for the step 'Add_Sequence_Path' could not be evaluated.
Unknown variable or property name 'Parameters.MainSequenceResults.TS.SequenceCall'.

My function step looks something like this in the report header sequence:

Locals.Header += Str(ResStr("MODEL", "RPT_FS_SEQUENCE"), "%-30s") + Parameters.MainSequenceResults.TS.SequenceCall.SequenceFile + "\n"

Thanks a lot.

Sreedhar.

0 Kudos
Message 3 of 7
(3,772 Views)

Hi,

I am getting the path in :

<   RunState . ProcessModelClient . Path   >

Although I am not getting this path while seq is stopped, I can however see the same on the run time. I implemented in the header file and is running successfully.  Smiley Happy

Is it because I am using evaluation version ?

0 Kudos
Message 4 of 7
(3,771 Views)
Hi,
 
It should be ok, I have just rechecked and I can see the property ok.
Your expression is in a step in the AddReportHeader sequence in reportgen_<html|txt>.seq, right?
 
Or are you using the ModifyReportHeader callback!
 
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 5 of 7
(3,757 Views)
Hi,
 
ya I am working in reportgen_txt.seq, in that I am taking the sub sequence AddReportHeader.seq.
 
I will again go through. Thanks.
 
Regards
Sreedhar
0 Kudos
Message 6 of 7
(3,755 Views)
Hi Sreedhar,
 
Ray is correct. You should simply be able to insert a statement step inside that AddReportHeader sequence file and use that code you mentioned earlier. I tested your statement out in my AddReportHeader sequence file and everything worked fine. I would double check your work and just make sure everything is getting passed to that sequence file. 
 
Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 7 of 7
(3,746 Views)