I'm not sure this is really a "LabVIEW" problem, but I was looking for someway to solve it from within my program.
In my application, I am automatically printing out a 2 page test report approximately every 15 minutes. (I do this by calling a VI, and printing it out using the 'Print this VI when completed' option.) The problem is that after some time, the print queue eventually builds to a large amount of printouts and begins to bog down system performance. I am assuming that this is because the printer is running out of paper or has jammed; but I can't be sure since I am not local to the site where the software is running.
Is there some way from within LabVIEW for me to determine if there has been a problem printing out my reports, or if the printer status is OK? I am printing to a HP Laserjet 1022n that is just plugged into the LAN. There doesn't seem to be an API in any of the manuals I've looked at for me to send a message to the printer via the network to get the size of the print queue or anything like that. The PC is running Windows XP.
Has anyone dealt with similiar problems, or have any ideas? The best that I've been able to come up with is just to task schedule in windows a reset of the print spooler at a regular interval to stop this from happening. (Which is not really a good solution to the real problem.)