01-09-2020 07:26 AM - edited 01-09-2020 07:30 AM
Hi,
I am trying to run a Sequence Analyzer from command line and it does work, but I can't find a way to point it to a sequence file folder nor workspace using parameter or a relative path or anything really. The only way I see is to hard-code paths in to the project. Am I missing something?
I'm using this command:
start /wait "" "%teststand%\Bin\AnalyzerApp.exe" MyAnalyzerProject.tsaproj /analyze /report /save /clearMessagesOnSave /quit
Cross posted to TestStand forum, because I am not sure where it fits better.
Solved! Go to Solution.
01-09-2020 10:39 AM
I solved this a few years back (don't know whether NI has a better solution with newer versions yet) by creating a dummy tsaproj file in XML format with a bogus sequence file as part of the project. Then I would do a search\replace on the xml file and insert my desired sequence file, save the tsaproj file, and then call the analysis. Fairly straightforward to do a 1:1 replacement of just one sequence file in the .tsaproj. A little more involved if you want to handle analysis of multiple sequence files, but for that case I found it was better to just do them individually anyways.
a few extra hoops to jump through, but it worked.
01-10-2020 04:59 AM
Thanks, that sounds like a good solution. I found that project file actually contains a relative path, it is just the editor GUI that displays full path.