LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CSCRIPT ICE-1000 VBS

Solved!
Go to solution

Hi,

I need to write a driver for the ICE-1000 to program a DSP. I have installed VisualDSP++ and I am using SAFP scripting.

 

When I run cscript.exe from the CMD prompt for example:

 

C:\Windows\SysWOW64\cscript.exe C:\programFlash.vbs --driver “C:\BF518FEzFlashDriver.dxe” --image “C:\SMS500_DSP_0v0.bin” –eraseAll --format 1

 

Then all works 100% and it programs the DSP with no problem.

 

But when I try and call this from Labview using the System Exec.vi then I get the following error:

 

"Microsoft Console Based Script Host has stopped working"

 

Any idea's what could be causing this? Is there another way to approch running a vbs script file from labview?

 

I have tried using wscript.exe rather then cscript.exe and I get the same result.

0 Kudos
Message 1 of 3
(3,388 Views)
Solution
Accepted by topic author GaryGC

Found the fault!

 

Labview does not like "" in the command line.

 

So when passing the command remove ""

 

C:\Windows\SysWOW64\cscript.exe C:\programFlash.vbs --driver C:\BF518FEzFlashDriver.dxe --image C:\SMS500_DSP_0v0.bin –eraseAll --format 1

0 Kudos
Message 2 of 3
(3,373 Views)

Can You share the Scrip with me please?

 

Thank you

0 Kudos
Message 3 of 3
(3,240 Views)