NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Partnumber and revision in report filename

Hello

 

I want to create a UUT report file with the following format :

C:\\temp\\Reports\\ + Partnumber_Revision + \\Filetime\\FileDate\\Unique.xml

 

Therefore i have selected the "Specify report file path by expression" option and created the following path :

"C:\\temp\\Reports\\" + Locals.UUT.UUTPartNumber + "[$(FileTime)][$(FileDate)]$(Unique).$(FileExtension)"

But this doesn't work. Problem is the "locals.uut.uutpartnumber".

 

How can i get my partnumber and revision, stored in my UUT sequencefile as Fileglobals, in the reportname ?

 

 

0 Kudos
Message 1 of 5
(2,741 Views)

Try Runstate.Root.Locals.UUT.UUTPartNumber

0 Kudos
Message 2 of 5
(2,724 Views)

Hello

 

I have tried that but that doesn't work.

I get errormessage " Cannot invoke API member 'SequenceContext.locals' on NULL object reference 'Root' "

0 Kudos
Message 3 of 5
(2,696 Views)

Hmm, the dialog seems to be too strict on validation.

 

Maybe try:

 

(Runstate.Root == Nothing ? "" : Runstate.Root.Locals.UUT.UUTPartNumber)

0 Kudos
Message 4 of 5
(2,679 Views)

hii there,

 

i hjave also similar issue,

well atleast  while editting the Expression is  right if we add  (Runstate.Root == Nothing ? "" : RunState.Root.Caller.FileGlobals.mySpecificDataStr)

 

the issue is I want to insert in the Report   a specific data generated during the test. 

 

I wonder how does   the  Report Filepathe take " <UUTStatus>" macro, as this is delivered only after   test is complete.

 

can I custom define macros?

0 Kudos
Message 5 of 5
(2,479 Views)