10-25-2017 05:13 AM
Hi,
I have programatically moved my front Panel to a secondary Monitor(an external LCD Display acting as a secondary monitor). But, I am not able to control my front panel actions on the secondary Monitor with the mouse(e.g pressing the PLAY button on front Panel in my VI ).
How can I control my front panel actions on the secondary monitor?
Any valauble information will be highly appreciated.
Solved! Go to Solution.
10-25-2017 07:07 AM
That sounds very odd. Is there something unusual about your monitor setup? Normally with a multi-monitor setup in Windows, you can freely move the mouse between the monitors. LabVIEW doesn't care which monitor a VI is on, or even if it is stretching between monitors.
I do see 2 odd things in your VI.
1. You are using a timed loop. Generally, they are only useful if used in a VI running on a target with a real-time OS. In windows, a normal while loop is recommended.
2. That while loop is buried in the event case of an event structure. And that event case is set to lock the front panel until the event is complete. So if you do press play, you will be locked out from doing anything on your VI until the while loop ends. It depends on the i value of that loop being equal to a number that is determined when the VI starts. Is that what you truly want?
10-25-2017 07:35 AM - edited 10-25-2017 07:37 AM
Thanks for the information. Yes,there was some monitor setup settings wrong. I have corrected it and it is working fine.Except my front panel goes out of bounds and some part of it appears in primary monitor as my secondary monitor is 1024 X 600 Resolution and primary monitor is 1920 X 1200 Resolution. My VI was not getting locked due to pressing PLAY button because i was not able to press the button but now it is working fine. But,thanks for pointing out about the timed loop bacause of which I need to wait till the .avi file gets loaded and afterwards I can play .avi file.