11-19-2013 10:54 AM
Hello,
I want to call a script and make changes to some of the numbers in that script and run it.
Can I just call the script without running it using System Exec vi?? I can separate the numbers from the script output after running it with system exec. But I want to get the default numbers in the script without running it.
And after I get the numbers, how can I replace the numbers with whatever the numeric control input?
Thanks a lot
11-19-2013 10:59 AM
What kind of script are you talking about?
Matlab script?
Java script?
a batch file?
11-19-2013 01:16 PM
It is a batch file. The vi calls another software and execute the script.
Thanks
11-19-2013 03:01 PM
If it is a batch file, then you must use system Exec to run it. Unless there is some other method I have never heard of.
11-19-2013 03:42 PM
Hello ZCY 4444,
It seems like what you're looking for is a way to edit the script, not "call" it. Batch files are just text files, so you should be able to read it as such, modify the strings, and resave as needed.
I'd recommend adding one or more arguments to the script that override these "numbers" though, rather than reading and replacing the file.
Regards,
11-19-2013 03:48 PM
Hi Tom,
Thanks for the suggestion. I will work on that.
Regards,
zcy
11-19-2013 03:48 PM
Thank you. I will keep working on it,