01-26-2017 04:41 AM
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.
Solved! Go to Solution.
01-26-2017 05:06 AM
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
03-20-2017 01:24 PM
Can You share the Scrip with me please?
Thank you