LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot Minimize Window LVPostMessage not found

I want to start a executable minimized. I have downloaded lvwutil32.zip, but when I try to use MinWin, I get the error Call Library Function Node 'LVPostMessage' : library not found or failed to load.

I am running LV 7.1

Any ideas?

Richard
0 Kudos
Message 1 of 5
(2,991 Views)
how are you starting the EXE. If you are using the system Exec VI then you can set a boolean to run minimized.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 2 of 5
(2,989 Views)
Sorry. I get the error when I drop the icon on the diagram, not at run time. I cannot even get that far!

I have found an answer at http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3D85D56A4E034080020E74861&p_node=DZ52041&p_submitted=N&p_rank=&p_answer=&p_source=External

Although this article is entitled "How to Maximize", it also covers minimize. The only problem is that it executes the minimize by changing the window size which isn't quite correct, because restore won't work properly.

I seem to remember that there is a "Run Minimized" setting under VI Properties... but I would rather have different properties in development and execution environments.

Richard
0 Kudos
Message 3 of 5
(2,984 Views)
R Hibbert wrote:
> Sorry. I get the error when I drop the icon on the diagram, not
> at run time. I cannot even get that far!

There must be a problem with the lvwutil32.dll file somehow. There are
several versions of this DLL floating around so maybe check that you
have a recent version.

> Although this article is entitled "How to Maximize", it also covers minimize.
> The only problem is that it executes the minimize by changing the window
> size which isn't quite correct, because restore won't work properly.
> I seem to remember that there is a "Run Minimized" setting under VI
> Properties... but I would rather have different properties in development
> and execution environments.

If you have LabVIEW 7.0 or better you can use the VI Property "Front
Panel->State" to change the current state of the VI anytime during your
program.

Rolf Kalbermatter


Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 4 of 5
(2,983 Views)
I have 7.1 (Lucky me!)

I managed to figure out that the property node is under application control and that I need to right click on it, select class VI Server / VI. Then select properties, Front Panel Window, State and write the correct number into it.

Thanks for pointing me in the right direction.

Richard
0 Kudos
Message 5 of 5
(2,980 Views)