LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in restarting windows using labview windows utility VIs

Operating Systen : Windows NT & Windows 2000
Objective : To restart the windows operating system through program

Tool Used : Downloaded LabVIEW's Windows Utility "lvwutil32.zip". Found a VI "Exit Windows.vi" in the llb file "Winevent.llb".

The VI is working fine for "Log Off" and "Shut Down". But when the option of "Restart Windows" is given it gives an error.

The error code is : 6400

The VI had been created in LabVIEW 4.0 and Iam using LabVIEW 6.1.

Is there a problem while converting ? Are there any files available which are compatible to LabVIEW 6.1 ?
0 Kudos
Message 1 of 3
(2,372 Views)
I just tried it under Labview 7.1 and it ran fine. Have you tried a mass compile of the library? You will find this under "Tools", "Advanced", "Mass Compile...". Select the directory with the library lvwutil32.dll and press the "Select Cur Dir" button. Finally, click on the "Mass Compile" button on the screen that pops up.

You have to do this because the dll was compiled under Labview 4.1 (or similar vintage)

I've attached the test VI that I created for your info.

Richard
0 Kudos
Message 2 of 3
(2,365 Views)
I should have paid more attention! Try this example for version 6.0
0 Kudos
Message 3 of 3
(2,361 Views)