LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I dump the print buffer LVDSC

Hello
 
I am using LVDSC 7.1 How can I dump the print buffer? Sometimes the print buffer loads up (as a result of a printer being down, out of paper etc.) and when the printer is put back online it prints and prints until it catches up on printing all the former alarms and events.
 
Thanks,
 

Kind regards,

 

Roy LCosta

 

Roy L. Costa

E & I Technician

Michigan Waste Energy, Inc.

5700 Russell

Detroit, Michigan 48211

Tel  (313) 972-5700 X285

Tel  (313) 972-4635

Fax (313) 871-2835

Email: RCosta@covantaenergy.com

Roy L. Costa
Email: roycosta@hotmail.com
Catalyst Test Engineer
General Motors Warren Tech Center (R & D)
0 Kudos
Message 1 of 3
(2,954 Views)

You could try a .vbs script or maybe use .Net and WMI.

To cancel all jobs spooled to a printer

Syntax

cscript prnqctl.vbs-x [-sRemoteComputer] -pPrinterName [-uUserName-wPassword]

Parameters
-x Required. Specifies that you want to cancel all jobs spooled to a printer.
-sRemoteComputer Specifies, by name, the remote computer to which the printer for which you want to cancel all jobs is attached. If you do not specify a computer, the local computer is used.
-pPrinterName Required. Specifies, by name, the printer for which you want to cancel all print jobs.
-uUserName-wPassword Specifies an account with permissions to connect by using Windows Management Instrumentation (WMI) services to the computer on which you want to cancel all print jobs. All members of the Administrators group for that computer have these permissions, but the permissions can also be granted to other users. If you do not specify an account, you must be logged on under an account with these permissions for the command to work. For more information about WMI, see Related Topics.
/? Displays help at the command prompt.
Remarks

This command starts a script that is located in the systemroot\system32 directory. You must type this command at a command prompt with that directory as the current directory, or you must type the full path to that directory at the beginning of the cscript command.

If the information that you supply contains spaces, use quotation marks around the text (for example, "Computer Name").

Message 2 of 3
(2,941 Views)

Excellent suggestion, unclebump!

In case you aren't already familiar with it, Roy, LabVIEW has a VI called System Exec.vi that allows you to run windows command-line calls programmatically.  This would be a great way to implement the suggestion unclebump just gave.  You can find it in your Functions palette in the Communication folder.

Let us know if you'd like more assistance!
Cheers,

Matt Pollock
National Instruments
0 Kudos
Message 3 of 3
(2,925 Views)