Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

68 views
Skip to first unread message

0044

unread,
Nov 22, 2006, 5:40:18 AM11/22/06
to
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

 

hannahW

unread,
Nov 27, 2006, 7:10:19 AM11/27/06
to
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

0044

unread,
Nov 27, 2006, 10:10:26 AM11/27/06
to
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
 

hannahW

unread,
Nov 27, 2006, 10:40:25 AM11/27/06
to
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.
RegardsHannah NIUK & Ireland


tsOI.JPG:
http://forums.ni.com/attachments/ni/330/13383/1/tsOI.JPG

0044

unread,
Nov 27, 2006, 12:40:19 PM11/27/06
to
Thanks Hannah
You&nbsp;solved my problem. ::<img onmouseup="this.className= raise ;" class="depressed onmousedown= this.className= depressed" onmouseover="this.className= raise ;" onmouseout="this.className= norm" height="22 alt= Insert Smilies" src="http://forums.ni.com/i/global/post_emoticons.gif" width="22" border="0">
Mehran Fard

0044

unread,
Nov 28, 2006, 10:40:23 AM11/28/06
to
Hi Hannah,
&nbsp;
I came accross another issue now!
&nbsp;
How can I post a boolean or string message from GUI back to Tststand?
&nbsp;
Thanks
&nbsp;
Mehran Fard

<< - N - >>

unread,
Nov 28, 2006, 12:40:26 PM11/28/06
to
This may help,
&nbsp;
Regards,
&nbsp;
Iñaki@Mex


teststand.JPG:
http://forums.ni.com/attachments/ni/330/13407/1/teststand.JPG

0044

unread,
Dec 1, 2006, 6:40:17 AM12/1/06
to
Hi,
&nbsp;
Thanks for your help.
&nbsp;
This seems to work but for some reasons does not update the 'Variable' set&nbsp;in station Global.ini file at runtime or if it does a can't capture it. Have you&nbsp; any idea what I might be doing wrong?
&nbsp;
Thanks and Regards
&nbsp;
Mehran

<< - N - >>

unread,
Dec 1, 2006, 8:10:17 PM12/1/06
to
Also, you can add the method 'CommitGlobalsToDisk' to make sure you save your StationGlobals once you change the valUe...
&nbsp;


niweb2.JPG:
http://forums.ni.com/attachments/ni/330/13458/1/niweb2.JPG

<< - N - >>

unread,
Dec 1, 2006, 8:10:16 PM12/1/06
to
Well, you can try reading something...
&nbsp;
Check that the method, in this case GetValString, matchs your var type....


niweb.JPG:
http://forums.ni.com/attachments/ni/330/13457/1/niweb.JPG

0 new messages