NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand file format

Solved!
Go to solution

Hi all,

 

I'd like to know dynamicaly/programmaticaly which teststand file is in Ascii file format or in TestStand file format.

in fact, if ascii file I use winmerge to compare. If teststand file format, I use TS File Diff tool.

I see that all TestStand files start with "TSOF1" string. Is it a good way for that?

 

Thanks for your help

0 Kudos
Message 1 of 3
(1,181 Views)
Solution
Accepted by topic author maxmont

The API to get the format is Engine.GetFileInformation(path).FileWritingFormat.

 

If you don't want to use the API, you could check for "TOF1".  That isn't guaranteed to never change, but I'm pretty sure there are no current plans to change it.

0 Kudos
Message 2 of 3
(1,156 Views)

Hi,

Thanks for your response.

I use "TOF1" header checking and it's working well.

 

0 Kudos
Message 3 of 3
(1,128 Views)