LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

usb printer

A customer of mine is claiming he needs to disconnect the printer and connect it again after every report is printed before he can obtain a new report. In my program I'm using PrintPanel to print some test results. The printer is a HP DeskJet printer (I seem to remember a DJ930C one).
Has somebody already observed such a problem? May it be due to something in my program? It seems that with other programs this does not happen...


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 1 of 5
(3,818 Views)
Ciao Roberto,
 
I've never heard of systematic issues between CVI printing functions and HP DeskJet printers. Could you better explain the behaviour you're seeing? For example:
  • You said that with other programs this issue does not happen;  is customer able to print from other software (i.e. Word, Excel) or the problem extends outside your CVI application?
  • You say customer must disconnect/reconnect the printer; do you mean a cable unplug/replug or just  SW uninstall/reinstall of the peripheral?
  • Is this happening with the "PrintPanel" function only or also with other CVI functions like "PrintTextFile"?

I attached also a CVI program that isolates the PrintPanel() function you're using, in order to exclude an application-related issue or a general one.

Best regards,

Fabio

Fabio M.
NI
Principal Engineer
0 Kudos
Message 2 of 5
(3,782 Views)
Dear Fabio,
the bahaviour of the application was that after a successful PrintPanel function, every further PrintPanel supplied no output to the printer, even if the printout is listed in the print queue. Simply disconnecting the USB cable from the PC and reconnecting them permitted one PrintPanel to be executed. We had no need for printer reinstall nor any other operation in Control Panel and so on. My application does not use any other printing function so I cannot supply other details. The same application tested on my PC had no problems.
 
I personally observed this behaviour when I was to my customer installing the application, next they tested it with another printer with identical results.
 
I am speaking in the past since I have been visiting my customer a few days ago but I didn't observed this strange behaviour any more, having done no modification in my application nor -apparently- in the OS. In any case this anomaly is not so relevant since the equipment is used to take long-lasting tests and produces only two or three sheets of results after each of them.
 
FYI: Windows XP SP2 - CVI 7.1.1 - NI-DAQmx 8.5
 
In any case thank you for considering this problem.


Message Edited by Roberto Bozzolo on 07-17-2008 12:12 PM


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 3 of 5
(3,758 Views)
Hi Roberto!
I had sometimes seen these problems with CVI 6.0 and Epson Printers
(just one time with HP)
I solved in this way:
disabling bidirectional support (in Ports tab of printer properties)
Disabling "Advanced printing features" (in Advanced tab of printer
properties)
In my opinion it happens when that some printers have some dll that is
not completely "bugs free" and the printing system become "buggy".
Ciao
Raffaele


PS try also with BW printing: maybe sometimes the printer had no memory
available...




Roberto Bozzolo ha scritto:
> Dear Fabio,
> the bahaviour of the application was that after a successful PrintPanel function, every further PrintPanel supplied no output to the printer, even if the printout is listed in the print queue. Simply disconnecting the USB cable from the PC and reconnecting them permitted one PrintPanel to be executed. We had no need for printer reinstall nor any other operation in Control Panel and so on. My application does not use any other printing function so I cannot supply other details. The same application tested on my PC had no problems.
>  
> I personally observed this behaviour when I was to my customer installing the application, next they tested it with another printer with identical results.
>  
> I am speaking in the past since I have been visiting my customer a few days ago but I didn't observed this strange behaviour any more, having done no modification in my application nor -apparently- in the OS. In any case this anomaly is not so relevant since the equipment is used to take long-lasting tests and produces only two or three sheets of results after each of them.
>  
> FYI: Windows XP SP2 - CVI 7.1.1 - NI-DAQmx 8.5
>  
> In any case thank you for considering this problem.Message Edited by Roberto Bozzolo on 07-17-2008 12:12 PM
>
0 Kudos
Message 4 of 5
(3,745 Views)

I was missing the last answer!

Thank you to point me to these options: I have noted them down and -with the exception of BW printing, since the custome needs coloured diagrams- I will test their effect in case the problem appears again.

Ciao Raffaele



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 5 of 5
(3,700 Views)