NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Add hide and display options on Teststand simple GUI execution view at runtime

Hi,

 

I have customized TestStand simple operator interface however I need to add option to give ability to hide or display some of the controls like 'execution view'  or 'report view' while executing a test. Could somebody please let me know how this is achievable?

 

I am using

 

TestStand 3.5

Labview 8.20

 

Many Thanks

 

 Mehran Fard

 

0 Kudos
Message 1 of 10
(4,453 Views)
Hi Mehran,
 
Each of the controls will have a corresponding terminal on the block diagram, if you right click on this there will be an option to create a property node, one of the available properties should be 'visible' and you should be able to write a boolean value to this as and when you want to display or hide the control.
 
I hope this helps
 
Regards
Hannah
NIUK & Ireland
0 Kudos
Message 2 of 10
(4,425 Views)

Hi Hannah,

Thanks for your reply.

As you said it is possible to create a property node and set it to visible by writing a boolean value, before executing the vi.

Please correct me if I am wrong but my understanding is 'TestStand Simple GUI' uses event structure while executing only after initializing all the controls and indicators. I have no problem setting event structure and write boolean value, however the Boolean value won't get updated outside this event structure at runtime but it will get updated next time I execute the GUI. 

What I need to know is how to refresh the screen to pass this new boolean value to the controls outside the event structure?

Many Thanks

Mehran Fard

 

0 Kudos
Message 3 of 10
(4,416 Views)

Hi Mehran.

I've attached a screen shot of the example 'Simple OI' in LabVIEW, which I have modified to add an extra event to the event structure. This event handles a boolean on the front panel called 'visible'. Whenever I toggle the switch on the front panel it either hides or shows the report viewer, at any point in the execution.

To do this, firstly create a boolean switch on the front panel, and then on the block diagram just right click on the event structure, and select the option to add another event case. In the dialog that pops up, configure this event to work on the 'value change' event of your 'visible' boolean. In the event case that is created, you can place the property nodes, plus the terminal for the 'visible' control.

I think that this is what you mean, if not can you post back with more details.

Regards
Hannah
NIUK & Ireland

0 Kudos
Message 4 of 10
(4,414 Views)

Thanks Hannah

You solved my problem. ::Insert Smilies

Mehran Fard

0 Kudos
Message 5 of 10
(4,401 Views)
Hi Hannah,
 
I came accross another issue now!
 
How can I post a boolean or string message from GUI back to Tststand?
 
Thanks
 
Mehran Fard
0 Kudos
Message 6 of 10
(4,383 Views)
This may help,
 
Regards,
 
Iñaki@Mex
0 Kudos
Message 7 of 10
(4,377 Views)
Hi,
 
Thanks for your help.
 
This seems to work but for some reasons does not update the 'Variable' set in station Global.ini file at runtime or if it does a can't capture it. Have you  any idea what I might be doing wrong?
 
Thanks and Regards
 
Mehran
0 Kudos
Message 8 of 10
(4,321 Views)
Well, you can try reading something...
 
Check that the method, in this case GetValString, matchs your var type....
0 Kudos
Message 9 of 10
(4,310 Views)

Also, you can add the method 'CommitGlobalsToDisk' to make sure you save your StationGlobals once you change the valUe...

 

0 Kudos
Message 10 of 10
(4,308 Views)