VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Force workspace to close when undeploying

Hi,

 

Is there a way to force the worskpace to close when undeploying a system ?

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 1 of 3
(2,382 Views)

In what way were you hoping to do this? With a LabVIEW VI? Directly from VeriStand?

 

One of the ways you could do this would be to create a service in the VeriStand project. This service would then react to the project being undeployed by closing the Workspace. The VI to do this is the NI-VeriStand Close Workspace Window.vi. 

 

In case you are not familiar with services in VeriStand they are essentially additional VI's you can include in the project and they will run automatically at deployment. A good VI to start with would be the one at the following location

C:\Program Files (x86)\National Instruments\LabVIEW 2017\examples\NI Veristand\Workspace\Workspace Tool Example

 

Once you have this VI you could delete everything except for the event case "The VeriStand Gateway is disconnecting from the targets" and then add the code that closes the Workspace outside of the while loop. 

 

Once that code is put together here is a document that talks about how to add a VeriStand Service: http://zone.ni.com/reference/en-XX/help/372846G-01/veristand/add_services/

 

Let us know if that helps or fits your application needs!

 

Conrad

Applications Engineer 

National Instruments

 

 

 

0 Kudos
Message 2 of 3
(2,325 Views)

OK Thanks, I'll try that !

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 3 of 3
(2,311 Views)