02-23-2012 02:07 PM
Is there a way to get the list of all targets in a setup using the .net API?
I checked the help for 2010 and 2011, nothing.
Alternatively, is there a way to check, if a specific target is present?
(Our goal is to help the user with better diagnostic to setup valid connections to VeriStand
Thanks for your help,
- AJ
Solved! Go to Solution.
02-23-2012 02:17 PM
Hi AJ,
Did you see my responses in your other thread? The screenshot of the code is in LabVIEW, but the same API calls apply in any .NET environment.
The Target class of NationalInstruments.VeriStand.SystemDefinitionAP has properties for reading name, IP addres, etc..
02-23-2012 02:53 PM
Yes, I saw that and first wanted to correct my mistake with the wrong forum.
I checked, the suggested System Definition API is installed with NI VeriStand 2010 and 2011. So this sounds like a good solution to me.
I will give this a try and will report back (I hope to remember, bug me if you care enough 🙂 )
02-23-2012 04:04 PM
The VeriStand .net API is documented in a .chm file. I was looking for a similar API documentation for the system definition API.
Any hint where I can find this help?
02-23-2012 04:10 PM - edited 02-23-2012 04:11 PM
The Execution and System Definition APIs are documented in the main NI VeriStand 2011 help file (the APIs existed in 2010, but they're not in the 2010 documentation). In NIVS 2011, open the help, and look under the "NI VeriStand .NET Reference" topic.
02-23-2012 10:16 PM
02-27-2012 08:47 AM
After getting much of the SystemDefinition API up and running to get to the information, I stumbled over the function GetSystemState().
I used it already but had ignored the third argument 😞
Ahhh - it returns the list of targets referenced/used by the system definition file / system.
So there is a way to get to this information with the VeriStand API and this keeps my code clean.
Thanks for all your help, I appreciate having someone on the other side helping out!
- AJ