VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Finding the currently deployed system definiton

Hello,

 

is there a way to find the system defintion file that is currently deployed on a realtime target?

 

I know how to get the active project (using the GetActiveProjects method of the Factory class) and I could just open the project-xml file to look for the system definition. However, that is not a very elegant solution. 

Can this be done using the official APIs?

 

Thanks

 

Message 1 of 4
(4,856 Views)

The Workspace API allows you to do so through the Get System State method. It returns the currently active SDF for the selected gateway. It implies that if the RT target is running a SDF on its own (after a reboot for instance), it will return nothing. I'm not sure if there's a way to get the deployed SDF without the help of the gateway 😕

Eric M. - Senior Software Engineer
Certified LabVIEW Architect - Certified LabVIEW Embedded Systems Developer - Certified LabWindows™/CVI Developer
Neosoft Technologies inc.

0 Kudos
Message 2 of 4
(4,808 Views)

The GetSystemState method does exactly what I was looking for, thanks again!

0 Kudos
Message 3 of 4
(4,798 Views)

I'm glad this was what you were looking for 🙂

Please set the thread as answered if you get a chance to do it!

 

--Eric

Eric M. - Senior Software Engineer
Certified LabVIEW Architect - Certified LabVIEW Embedded Systems Developer - Certified LabWindows™/CVI Developer
Neosoft Technologies inc.

0 Kudos
Message 4 of 4
(4,781 Views)