VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

list/verify target(s) in VeriStand using the .net API

Solved!
Go to solution

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

0 Kudos
Message 1 of 7
(6,245 Views)

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..

0 Kudos
Message 2 of 7
(6,243 Views)

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 🙂 )

0 Kudos
Message 3 of 7
(6,239 Views)

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?

0 Kudos
Message 4 of 7
(6,233 Views)

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.

0 Kudos
Message 5 of 7
(6,229 Views)
Also, more system definition API documentation is coming soon
Stephen B
0 Kudos
Message 6 of 7
(6,222 Views)
Solution

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

0 Kudos
Message 7 of 7
(6,202 Views)