12-18-2013 10:12 AM
Greetings all,
I am printing a repair ticket to a system printer by use of the VI configuration "automatically print front panel every time VI completes execution." I had a problem where at the end of the print it was issuing a form feed, but that was using a default driver. I downloaded the printer drive installed it and "Presto chango!!!! problem solved!!!!!!" Now what I am running into is that it prints the contents of the control, but it also prints the border for the control through a bunch of little dots (dot matrix impact printer). Any suggestions as to how I can get this to print only the text?
Thanks for your assistance,
Mike
Solved! Go to Solution.
12-18-2013 10:22 AM
"Automatically print front panel every time VI completes execution" prints a graphic of the front panel. You're getting what you're asking for. If you want to only print the text you'll have to create a report format of some kind and print send that to the printer.
Altenately, I suppose you could make all your controls and indicators transparent, Maybe then you'd only see the text.
12-18-2013 11:21 AM
That is another avenue I tried to go down but was not successful. Will follow up with that. is NI-Spy part of Labview? I tried to invoke that but didn't see it.
12-18-2013 11:29 AM
NI-Spy used to come with LabVIEW. I don't see it any more but I do see NI IO Trace, which might do the same thing. I haven't tried it.
12-18-2013 11:39 AM
For reference:
KnowledgeBase 5O0E85Q7: Why is NI Spy Now Named NI I/O Trace?
http://digital.ni.com/public.nsf/allkb/35FB4F8147512A23862578DF006EEE72
I'm not sure that it's relevant to the issue at hand, though- are you trying to include driver calls in your printout?
As Lynn said, print on completion will print the entire front panel as-is. If you don't want the border to appear it needs to be transparent, colored to match the background, or outside the bounds of the front panel.
Regards,
12-18-2013 11:39 AM
If the border is truly transparent, it will not be printed. Attach the VI.
What are you trying to use I/O Trace for?
12-18-2013 11:51 AM
I was trying to see what commands the VI was sending to the printer. This is the latest of the VI.
12-18-2013 11:53 AM
What I am getting is some dots on the top and left side.
12-18-2013 11:57 AM
Of course you are. The control is not completely transparent. Use the paint tool to change it. Be sure the click on the actual border. You will also probably need to click the space bar to toggle between foreground and background. It would have been easier to start with the simple string control on the classic palette.
12-18-2013 12:02 PM
I'm not having alot of luck with that.