‎04-03-2007 05:34 PM
‎04-03-2007 08:46 PM
@filozof wrote:
I need to print a txt file from printer. I use sys exec.vi and bat file to do this. Bat file contains copy C:\plot.txt to lpt2 command. How can I do same issue with labview icons?
Hi filozof,
I'm not sure whether you understood(?) - no batch file is needed, you could make a string="cmd /C "copy C:\plot.txt lpt2""
and wire that string to the System Exec.VI "command line" parameter. System Exec.VI has a LabVIEW icon.
Or follow centerbolt's example and write to a "local printer" using the "Report Generation" VIs. The fact that you're printing a VI's front panel proves this technique should work - what did you have "File Path" set to?
If you're feeling masochistic, it might even be possible to write directly to "LPT1" using VISA Write, though a form-feed command was often needed (in the old days) to see the last/only page of text. To send a form-feed to the parallel-port, would be painful (but is possible).
Cheers!
‎04-04-2007 02:43 AM
yes it prints text file thank you so much.
Now i try your command at he sys exec icon without batch file. I write string cmd/c"copy C:\plot.txt lpt2" at the command line sys exec.icon. But It can not print.
‎04-04-2007 03:28 AM
‎04-04-2007 03:30 AM
‎04-04-2007 03:47 AM
‎04-04-2007 08:30 AM
‎04-05-2007 12:21 AM
‎04-05-2007 02:02 AM
‎04-05-2007 04:25 AM