LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

making a compiled VI stay the front most window

Hi
I have compiled a small VI which displays the status of a few items.
Can anyone tell me how to add an attribute to the VI or compilation process to make this window always stay in front when other apps are running?
 
Tony C
 
0 Kudos
Message 1 of 4
(2,741 Views)

You can make this window modal if you select CTRL - I (VI Properties) and go under window appearance selection.  Then select "customize".  Inside this window you will see the settings to allow you to keep this window up infront of all other LV windows by selecting "modal" under window behavior.  This doesn't help with other applications though, It will only work for LV, but you can do some little tricks.  1 trick that helps is to Size the front panel to the size of the entire screen and hide the windows taskbar.  Now this doesn't prohibit a user from selecting ALT Tab to switch applications so you will have to disable these keys using something like this: http://sine.ni.com/apps/utf8/niepd_web_display.display_epd4?p_guid=B45EACE3E7DF56A4E034080020E74861.  Keep in mind this is one solution and there are others by using windows DLL options. Hope this helps.

 

 

 

BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 2 of 4
(2,735 Views)
You can download lvwutil32.zip from NI website.  It will let you set any window to topmost, make all other non-topmost window behind it.
 
George Zou
George Zou
0 Kudos
Message 3 of 4
(2,732 Views)

Thanks for the pointer to the Windows API functions utility. Glad you knew about this.

TonyC

 

0 Kudos
Message 4 of 4
(2,719 Views)