03-03-2011 07:36 AM
03-03-2011 08:03 AM
Hi Kevin,
The Execution API documetation is available here.
The System Definition API has a couple of examples at <LabVIEW>\examples\NI VeriStand\API, where <LabVIEW> is typically C:\Program Files\National Instruments\LabVIEW.
03-03-2011 01:11 PM
That helps a little bit, but there is a ton more to the .Net API than in there.
If you Browse the GAC in TestStand there are a few different assemblies:
NationalInstruments.VeriStand.SystemDefinitionAPI(2010.0.0.0)
NationalInstruments.VeriStand.SystemStorage(2010.0.0.0)
NationalInstruments.VeriStand.ClientAPI(2010.0.0.0)
NationalInstruments.VeriStand.APIInterface(2010.0.0.0)
etc...
Just in hunting down things and looking through stuff I've almost got what I want, but I can't seem to find a way to get the System Definition File associated to a Project File. If anyone knows how let me know.
Thanks.
03-03-2011 02:04 PM
I don't think that there's an API call to do that, but the .nivsproj file is xml, so you probably could just open and parse it and look for the .nivssdf file in the "System Definition File" section.
03-03-2011 05:41 PM
Actually, there is a bit of a sneaky way to load the project file with NI VeriStand APIs and query data from it. Note this isn't supported or documented, and could change in the future. See the attachment.
03-10-2011 05:21 AM
Hi Stephen,
API to handle project files would be a good idea for VS. 2011.
Cheers
03-10-2011 06:36 AM
03-10-2011 07:17 AM
Hi Kevin,
If you plan to handle the XML file, there is an LV lib in Source Forge that I used in a project to extract information from the file.
http://labxml.sourceforge.net/
It is old (2005) but I used it with LV2009 with few work. If you wish, I can post it here.
Cheers.
03-17-2011 12:01 PM
Back to kind of the original question:
Is there documentation for any of these?
NationalInstruments.VeriStand.SystemDefinitionAPI(2010.0.0.0)
NationalInstruments.VeriStand.SystemStorage(2010.0.0.0)
NationalInstruments.VeriStand.ClientAPI(2010.0.0.0)
NationalInstruments.VeriStand.APIInterface(2010.0.0.0)
Thanks,
Kevin
03-17-2011 12:09 PM
Might I ask why you want documentation of the "internal" APIs?