12-14-2004 04:22 AM
12-14-2004 04:50 AM
12-14-2004 04:56 AM
12-15-2004 02:59 PM
12-17-2004 08:46 AM
12-18-2004 09:31 PM
03-31-2011 08:13 PM - edited 03-31-2011 08:14 PM
Thanks tarheel_hax0r (if you are still reading this !). I benefited from your quick little utility to do what I was after and I was then compelled to tidy it up. So I compacted your code by utilising dataflow rather than local variables and a sequence structure. Instead of being 2 screens wide it is now about 2/3 of a screen wide.
I'm attaching the updated version saved for LV 2009.
regards
05-08-2011 05:24 PM
Thanks to both of you.
I have tidied up a bit more. Attached is a LV2010 snippet.
Enclose it in error detection if you need to.
For what it's worth, you can SET an environment variable too, but it seems to be pointless, as the environment lasts only as long as the SYSTEM EXEC call.
IOW, the value is forgotten when the shell closes.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
08-25-2011 05:08 PM - edited 08-25-2011 05:11 PM
Hi,
I've just found this useful, however I'm wondering something. Why the "cmd /c" at the beginning of the command, "echo <variable>" seems to work fine. Just curious.
Thanks
David J.
Update...Nevermind I see now. I was using the actual command line to test this command, when using sysexec tool in labview it doesn't like the "echo" command alone.
Returning to my regularly scheduled coding...:)
Cheers
Dave
08-25-2011 05:30 PM
The key thing to remember is that System Exec is equivalent to you doing Start -> Run and entering a command there. echo <variable> is not a valid program to run. That's why it has to be run within the context of a command window.