11-19-2023 09:00 PM
I want LabVIEW to open VIs windows so that they are never larger than my computer monitor screen. Some VIs open and I have to resize the window before I can see the entire window. How do I make LabVIEW both open VIs, front panels and block diagrams so they are never outside the monitor edges.
11-20-2023 03:43 AM - edited 11-20-2023 03:43 AM
Pretty sure there's no way to make LabVIEW do that.
Sorry, don't shoot the messenger.
LabVIEW will put a window on a screen if the coordinates are off-screen (e.g. made on a 2nd monitor that isn't available), but that's it.
11-20-2023 05:12 AM
Hi tfilipiak,
@tfilipiak wrote:
How do I make LabVIEW both open VIs, front panels and block diagrams so they are never outside the monitor edges.
Workaround: press Ctrl-T after opening the VI! (This will place the frontpanel and blockdiagram next to each other, with each occupying half of the screen…)
11-20-2023 06:58 AM
I haven't tried, but it probably should be possible:
A couple of notes:
11-20-2023 07:52 AM
@tst wrote:A couple of notes:
1) Search online for the supersecret INI key, so you can access private methods.
3) This all assumes that you're talking about edit-time stuff (since you talk about BD windows). For run-time stuff, you can set window positions and sizes in the VI properties and programmatically.
Or on an application method, do DQ, "OpenVIAsSystemVI", then CTRL+SHIFT+B
Or drop this after downloading it (properly):
11-20-2023 08:35 AM
@tst wrote:
Create <vi.lib>\lv_init.vi. This VI is called when LV is launched and can be used to run your own VI in the background (it should run in the NI.LV.AutoLaunch context).
Clarification: I'm not sure if the VI runs in the AutoLaunch context on its own. You might need to get all the contexts, iterate over them until you get to the right one and then use that context as the application reference for the method in the next step in order to launch it there.