NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand output to log file?

Is there a way to open, write to, and close a log file in TestStand?  I want to be able to name the file, open it, write strings that I create in TestStand, and close the file?  Simple text debug statements such as "Got to test 1", or "First audio reading = 2.548 MV rms".  Surely someone has done this already!
0 Kudos
Message 1 of 5
(8,047 Views)
I see a couple options here, unless I'm missing something obvious. 
 
1- Use the activex steps to call into the activex api of a text editor and do it that way.
 
OR
 
2- Use create code modules that do it and call those steps from TestStand.  I know that LabVIEW and CVI both have file writing capabilities to any txt file. 
 
You can read in a file using the Property Loader Step.  You can't write using it though. 
 
 
It's using the call exe commant and writing a test file from the command line.  Interesting!!!!  The only problem here is I don't know how to read from the file using this method.  If you need to read then this might be hard.
 
Hope this helps,
jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 5
(8,033 Views)

Hola Rwdale,

I was trying to do exactly the same and I found a CVI library that comes with TS that  has a method to save files, I think they use it to save the documentation files of the sequence files. Hope it helps (it works on my machine)

 

 

Message 3 of 5
(8,026 Views)

Good Call!  That dll is actually used for the sequence file documentation.  It's a Tool that gets invoked from the Tools>>Sequence File Documentation option.  In order to write txt files it looks like they made a dll that does all the hard work for you rwdale.

Great Find!!

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 4 of 5
(8,018 Views)
Looks promising, I'll give it a try.  Thanks for your help.
0 Kudos
Message 5 of 5
(7,998 Views)