04-07-2017 06:36 PM
I am writing a VI which is launching a PERL script through CMD using the LabVIEW system exec.vi block. I am trying to redirect the standard output to a text file. Based on the link below, I am told that this is impossible. I am wondering if anyone has figured out a way around this without using a batch file or something like that. I want to use the redirection with the system exec block , and not have to add any extra steps.
http://digital.ni.com/public.nsf/websearch/B93C9ECA6C958202862567FB004C0A9D?OpenDocument
04-07-2017 07:03 PM
That link doesn't say it is impossible.
It says you have to have it within a batch file and call the batch file to make it work.
04-07-2017 07:09 PM
What I mean is that it is impossible to directly do so, in my application, using the batch file is probably unacceptable. I need to be able to directly use cmd without that batch file trick.
04-09-2017 04:03 AM
@an123 wrote:
What I mean is that it is impossible to directly do so, in my application, using the batch file is probably unacceptable. I need to be able to directly use cmd without that batch file trick.
Just for pure curiosity: what is the reason you exclude using a batch file? You can easily create a temporary batch file using LabVIEW, run it, then delete the file...