LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

System Exec [reboots the computer]

Hi,

I have a slightly weird problem with my LabView code. When I try to run the System Exec VI the computer just reboots.

What I am trying to do is that I want to run a vbs-script with help from cscript. There are some arguments to the vbs-script, and according the help file for the System Exec it is better to run this from a batch file.

The vbs-script opens a file and re-writes some information in it, which is later on programmed into a microcontroller (another program which I have not yet tested). When I run the batch program stand-alone in a command prompt there are no problem, and when I run the batch program via LabView the computer reboots. There are no arguments to the batch file.

I have also tried to increase the expected output size to 204800 just to see if that was the problem. However the computer still reboots.

Is there any one that has an idea what the problem could be?

Best Regards
Martin
0 Kudos
Message 1 of 6
(2,851 Views)
hello there,

please post the batch and the calling vi.

whats your OS? any service packs or updates included? are there any security issues?

best regards
chris
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 2 of 6
(2,840 Views)
Hi Chris,

This is the information that I have in the batch file

cscript /nologo c:\prog\StampImeiToMspBinary_N1B.vbs 01234567890123 0 C:\prog\bios.bin BiosForProgramming1.bin

There are six arguments to cscript.


I am running LabView 7.1 on Win2k Pro, SP4 with all updates from the Microsoft update services installed. The only security issues I could think of would be Symantec AntiVirus V9.0.0.338.

Best Regards
Martin
0 Kudos
Message 3 of 6
(2,838 Views)
hi there

i created a foo script. i'm sorry, there was no problem...

well, have you tried to call the batch from another language, like C/C++ or VSB? if that works, you could create a wrapper.

best regards
chris
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 4 of 6
(2,824 Views)
Thanks Chris,

If I find the source of the problem I will post it here.

Best Regards
Martin
0 Kudos
Message 5 of 6
(2,809 Views)
Hi again Chris,

With some help from out IT-support, we could find that the problem has to do with the Symantec Antivirus. I have tried to run with a computer without an antivirus program and the computer dosent reboot.

This is a link that describes the problem at hand.
http://service1.symantec.com/SUPPORT/ent-security.nsf/pfdocs/2002071208532048

The KStackMinFree variable, described at the webpage, have I set to 0x2400 (9KB). However the problem is still there, the computer reboots.

Do you or any other have any idea what I sould do?

Best Regards
Martin
0 Kudos
Message 6 of 6
(2,786 Views)