LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Front panel changes monitors

Solved!
Go to solution

I have a vi that I built to an exe. It is a little panel meant to run and provide information.

I run it and it shows up on my primary monitor in the position where I saved it.

Then periodically after I lock the screen an log back on the front panel is now on a different monitor.

 

0 Kudos
Message 1 of 11
(3,889 Views)

Seams you haven't asked a question... not sure if you are bragging or complaining.

First thing to do would be to provide a list of steps to reproduce this behavior you are describing....

- what OS?

- is the vi minimized when locking the screen?

- is it running on a laptop in a docking station?

- have you un-docked, then re-docked the laptop when you noticed the shift in placement?

- is the vi actively setting its position?

- is your "log-in" screen on a different monitor that the vi?

- sounds like you have left the vi's position property at Unchanged under the "Window Run-Time Position"

 

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
0 Kudos
Message 2 of 11
(3,860 Views)

I built  an exe, it runs positioned at the top of the screen where it was supposed to run. I lock the screen and some time later log back in and the program is now on a different monitor.

This may happen to other applications as well.

0 Kudos
Message 3 of 11
(3,833 Views)

My question is what is causing this.

0 Kudos
Message 4 of 11
(3,832 Views)

I think answering the questions asked by Frozen might give us more information. It is very difficult to troubleshoot with so little information.

0 Kudos
Message 5 of 11
(3,812 Views)
Solution
Accepted by RustyStrings

Wild guess 

 

(But the accuracy of my magic 88-Ball is legendary)

 

Power manager options are shutting down monitors and they come back on line erratically.   Plug n Pray.  Setting the power manager options to high performance will make it behave. 


"Should be" isn't "Is" -Jay
0 Kudos
Message 6 of 11
(3,805 Views)

- what OS? Windows 10

- is the vi minimized when locking the screen? I don't do any programming to minimize the vi (but if that happened I wouldn't be able to tell because the screen is locked)

- is it running on a laptop in a docking station? yes

- have you un-docked, then re-docked the laptop when you noticed the shift in placement? no the laptop is still in the docking station

- is the vi actively setting its position? At first the vi had code to move the vi and that was what I suspected to be causing the problem, however I completely disabled any positioning code and it still happens

- is your "log-in" screen on a different monitor that the vi? no both are on the same monitor that is my main monitor

- sounds like you have left the vi's position property at Unchanged under the "Window Run-Time Position" that is correct.

 

I have worked around this situation by looking at the current monitor and comparing it to the monitor I expected it to be on and if they are different I set the current monitor t the correct one. I put some code in the program to log when the monitor is changing  to get an idea of when it is happening here is an excerpt. The last data on the line is the monitor number. The program is supposed to be on #3. so in the text below you see that I locked the screen 57 seconds later the vi switched itself to monitor 2. The code recognized this and set it back to 3. then Almost immediately the vi switched itself to 2, so the code put it back to 3.

12 minutes and 27 seconds later I logged on .

 

8:31:55.787 AM 4/1/2019,Window Event,02:15:44,Screen Locked
8:32:52.859 AM 4/1/2019,Monitor Changed,00:00:57,2
8:32:55.029 AM 4/1/2019,Monitor Changed,00:00:02,3
8:32:55.286 AM 4/1/2019,Monitor Changed,00:00:00,2
8:32:55.497 AM 4/1/2019,Monitor Changed,00:00:00,3
8:45:22.019 AM 4/1/2019,Window Event,00:12:27,Logon

 

I don't expect anyone to troubleshoot the situation I was wondering if anyone else had experienced this behavior.

 

 

 

0 Kudos
Message 7 of 11
(3,798 Views)

I changed to a high performance setting. I should be able to tell if that makes a difference.

The strange thing is it happens about 57 seconds after I lock the screen. there was nothing in the old power plan until 15 minutes.

 

0 Kudos
Message 8 of 11
(3,795 Views)

@RustyStrings wrote:

I changed to a high performance setting. I should be able to tell if that makes a difference.

The strange thing is it happens about 57 seconds after I lock the screen. there was nothing in the old power plan until 15 minutes.

 


Screen lock on some laptops/ docking stations sets an energy save 1 minute timer.  I would  guess it takes about 3 seconds to safely lock up the system. 


"Should be" isn't "Is" -Jay
0 Kudos
Message 9 of 11
(3,786 Views)

I checked and the screen shuts off after about one minute.

I don't think I ever stuck around long enough to notice that before.

 

 

0 Kudos
Message 10 of 11
(3,775 Views)