VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

workspace objects

Is there a way to programatically Show/Hide or  Add/Remove workspace objects?

 

I am configuring a GUI that will be used for multiple test modes and would like only the controls and indicators that are necassary for each test mode to be visible to the operator. I know I could create a screen for each test mode but there are quite a few controls and indicators that are common to all test modes and I don't want to have to create duplicate objects.

 

Thanks,

Pat M

0 Kudos
Message 1 of 5
(5,890 Views)

Hey Pat,

 

Unforunately there is not a way to porogramatically Show/Hide or Add/Remove workspace objects. 

 

As you had mentioned creating extra screens would be one way or you can create seperate workspaces. 

 

You can however do what you are requesting in LabVIEW since you have access to all the property nodes for the controls and indicators. You can access the channel values through the channel API and display it using graphs and indicators. 

 

Expanding VeriStand with LabVIEW

http://zone.ni.com/wv/app/doc/p/id/wv-3751

 

Workspace API

http://zone.ni.com/reference/en-XX/help/372846F-01/veristandmerge/vs_workspace_vis_pal/

 

Kyle Hartley
Senior Embedded Software Engineer

0 Kudos
Message 2 of 5
(5,871 Views)

Kyle,

 

If I use multiple screens is there a way to programatically identify which screen is being displayed?

 

Thanks,

Pat

0 Kudos
Message 3 of 5
(5,843 Views)

Pat,

 

I could not find a method to change screens in the workspace programmatically. The best workaround would be to use the tab control in a VI and setup you're own screens, then you could programmatically move between them. 

Kyle Hartley
Senior Embedded Software Engineer

0 Kudos
Message 4 of 5
(5,822 Views)

Kyle,

 

Along similar lines, is there a way to password protect certain screens in the workspace?

 

Thanks

Michael

0 Kudos
Message 5 of 5
(5,624 Views)