NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Placement of Program Windows

Solved!
Go to solution

The TestStand sequence I am working on is deployed as an executable.  I am dealing with three different types of program windows, specifically:

1.  The sequence window that pops up when you run the executable.  This is positioned in the center of the screen.  It takes up about a quarter of the screen.

2.  The LabVIEW VI that gets called by the sequence.  I have set this to appear in the upper left corner of the screen.  It takes up a bit more than a quarter of the screen.

3.  The various popup messages that are called by the sequence.  These pop-up in the center of the screen.  They are small.

 

I would like to:

1.  Set the executable window so it comes up in the upper right hand corner of the screen.  I have no idea how to do this.  Any help would be greatly appreciated.

2.  Set the popup messages so they come up in the lower right hand corner of the screen.  I see how to do this on a message-by-message basis, but is there a general setting I can set to adjust the default location of popup messages?

 

Thanks in advance for any help you can offer.

Forbes Black
Lapsed CLAD, LV 5 - LV 2022 (Yeah, I'm that old...)
0 Kudos
Message 1 of 6
(4,136 Views)

diarmaede wrote:

1.  Set the executable window so it comes up in the upper right hand corner of the screen.  I have no idea how to do this.  Any help would be greatly appreciated.


This can be done in the development environment for you User Interface.  For instance if you are using the LabVIEW UI then open the source code and throw in some code to force the window to the top right corner and then rebuild the exe.  Or you can just change the position through the VI Properties fo your Main VI. 

 


diarmaede wrote:

2.  Set the popup messages so they come up in the lower right hand corner of the screen.  I see how to do this on a message-by-message basis, but is there a general setting I can set to adjust the default location of popup messages?


There are several ways to accomplish this:

1- Create a custom step type with the settings you want and replace all of your steps with the custom step type

2- Create a step template and replace all of your steps with the correct settings.  Then just insert the template whenever you place down a message box step.

3- Use and engine callback.  Either SequenceFilePreStep or StationPreStep or ProcessModelPreStep, depending on your scope, to set the properties for each step.  This one makes your code less readable but is nice because you only have to change it in one spot and they all update automatically.

 

Let me know if you have specific questions about any of these.

 

Regards,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 6
(4,067 Views)

Hi jiggawax.  Thanks very much for your help.

 

I understand how to set the position of my LabVIEW window.  My question is regarding the TestStand window that comes up and traces the steps.  Is there any way to programatically set the position of that window?

 

Thanks for the suggestions on the popup windows.

 

 

Forbes Black
Lapsed CLAD, LV 5 - LV 2022 (Yeah, I'm that old...)
0 Kudos
Message 3 of 6
(4,062 Views)

Are you using the Sequence Editor or a User Interface?  My assumption was that you were using the UI to execute your sequence files.  Most people that are familiar with LabVIEW use the LabVIEW UI so they can modify it.  What I'm saying is that you have the source code for the UI and can edit the source code and rebuild the UI.  I am NOT talking about your VIs that your sequence calls.

 

UI development can be a bit tricky but if you are just changing the location of the window it should be standard LabVIEW practices.  There is a ton of info out there on customizing the UI, just google TestStand UI Development.  Let me know if you have any specific questions.

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 4 of 6
(4,057 Views)

I took on a "quick" project in which the original programmer had done all the steps in TestStand, only calling the LabVIEW VIs as steps in the sequence.  The Sequence Editor is the main program that calls all the steps, including calling up the LabVIEW VIs.

 

If I had done this project from the beginning, I would have used all LabVIEW, but, sadly, I am tasked with fixing what the original programmer did in TestStand.

Forbes Black
Lapsed CLAD, LV 5 - LV 2022 (Yeah, I'm that old...)
0 Kudos
Message 5 of 6
(4,055 Views)
Solution
Accepted by diarmaede

If you are running from the sequence editor then get the window situated how you like it and go to Configure>>Sequence Editor Options.  On the UI Configuration tab you can type in a new configuration name and save it.  Then have it automatically load when TestStand is launched. 

 

 

See attached

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 6 of 6
(4,042 Views)