From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-13-2015 11:05 AM
TestStand Sequence Analyzer (running TS 2012 if that makes a difference):
I'm using TestStand Sequence Analyzer to check for problems in my sequences (built-in rules, and a bunch of custom rules). It works fine for working in sequence editor and running the analysis. However, I want to be able to automate the analysis (think every evening I want to run the analysis and send developers an email with all the "mistakes" they created that day)
So far, I can't find anything to allow me to do a headless analysis and get results out (either as a data structure or a report on disk).
The TS Engine / applicationMgr does not seem to have a "start new analysis task"
The command line analyzer seems to dead end at "start me with a project" and not include any ability to automatically run the project and/or export results.
Creating a new ActiveX Automation against "NI TestStand .... Sequence Analyzer API..." does not seem to allow me to do anything.
Is this possible?
What am I missing here / where did I go wrong?
Thanks!
01-13-2015 12:04 PM
It looks like there is an API for the Analyzer in the TSAnalyzer.Interop.dll in the bin folder. Will this not work for you? It isn't documented but you might be able to find your way around it.
01-13-2015 12:38 PM
What version of TS are you using? I'm not seeing that one in TS2012 (I've got TSAnalyzer.dll, but that one seems to work fine for once I have an existing analysis context "executing", but can't find anything in it to allow me to configure or start a new analysis).
01-13-2015 03:33 PM - edited 01-13-2015 03:34 PM
I have 2010 on this machine. It looks like that assembly allows me to initialize and everything (just looking at the functions. haven't tested anything). Maybe they took that out? Or maybe it is hidden?
Regards,
01-15-2015 02:50 AM
Hi Warren,
Check out this simple three step example.
It opens the analyser class and makes a new project.
Analysis one file (in the Example only one variable is used--> analyser should tell you unused! )
Create report to a stringvariable.
Tested it against the manual Report with TS-Editor--> same Result !
Developed with TS14.
If using TS5.0(2012) you have to match the right GAC analyser reference for your maschine in the three .net steps.
Regards
Juergen
01-15-2015 09:55 AM
jigg -- I finally found that interop dll -- in the API\DotNET\Assemblies folder.
I think that with the 3 line example from Juergen I can piece together something that will work.
Thanks!
01-15-2015 01:50 PM
That's good news. I hope it works out for you. I don't have the time right now or I'd throw something together.
08-17-2018 03:14 AM
Hi Juergen,
The sequence that you have given works for the "file to analyze.seq". How can I modify the sequence to analyze some other sequence?
02-06-2020 03:18 AM
Hi j_dodek
Thanks for your example. I've need to run the sequence analyzer on sequence files in a specific catalog why I changed your example to use a sequence analyzer project.
Got a couple of issues doing this but first my procedure for analyzing:
1. Copy files for a testsequence/release to a specific catalog
2. Analyze the files
3. Unload the files in TestStand and delete the files
4. Go to 1 using a new testsequence/release
The steps in the test sequence are made in C# (DLL's) and the DLL have the same name in all testsequences but the DLL's are different why they must be unloaded before deletion.
Issues:
1. When do I know the analyzer is done? ("AnalyzerStopped" method allways return FALSE)
2. The "UnloadAllModules" i the "AnalyzerClass" seems not to work. Any idea?
3. The "StartAnalysis" method has an Option input parameter. What are the options?
Have you any answers to the questions and/or do you know where to find documentation regarding the functions in the "NationalInstruments.TestStand.Interop.SequenceAnalyzer" assembly?
Regards
Vagn
02-15-2021 12:43 PM
Hi Vagn,
Any luck on getting your questions answered? I've recently been studying what is available in this API and have similar questions. Any thoughts or note you may have created would be helpful. Thanks