NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

PreStep and SequenceCall

Hi,
 
the described solution could be a workaround if there would be only one file to provide, but in my case
there should be a lot of files, because my expression is greated with two variables. One is set via an edit step
(specifies the filename) and the user one (specifies the directory)  is set via PreStep execution of  the Sequence Call.
 
I think it would be a nice feature of TS if only the SequenceFile to be executed should be on place and no
placeholders, even if they could be empty files!
 
Regards,
Sunny
0 Kudos
Message 11 of 12
(897 Views)
Hi Sunny,
 
One way would be to use the find file, see example attached.
 
There is an expression step that perform the action,

Locals.FileFound = FindFile(Locals.FileToFind,True,Locals.Filename), Locals.Filename = Left(Locals.Filename, Len(Locals.FileName)-Len(Locals.FileToFind))

If the file has been found the boolean Locals.FileFound is set True.

Anyway try this.

Regards

Ray (dont know why my text has turn blue) Farmer

 

Regards
Ray Farmer
0 Kudos
Message 12 of 12
(886 Views)