I have a project where I need to print one line at a time to an OkiData Microline form printer, every x minutes. In order to not print a whole form and print multiple statuses on the same sheet. This is a law in some states for the product that we are producing.
The printer will be connected to the PC that is running PAC Display via USB. As of right now I have the printer and PC configured so that I can print single lines using the following command from the windows command line:
ECHO Hello World!>PRN
or from Matlab:
fid = fopen('LPT1:','wt');
How could I do the same thing from Opto 22 PAC Display?
(Note: the answer I received from support does not solve my issue. I need to send a line to a LPT printer automatically, not have the user click and not send graphics)
Answer from Support:
It is possible to send the window you are on or screen to a printer in PAC Display. There are few ways doing it. It’s not similar to the Matlab code mentioned in your email. It is also possible to send configured ‘Alarms’ to a printer after an even occurred or you want to create a little print object on the screen so you can press and print the screen.
Also, here’s some forum info on printing that might be helpful: http://www.opto22.com/community/showthread.php?t=264&page=1
Hers manual for PAC Display: http://www.opto22.com/documents/1702_PAC_Display_Users_Guide.pdf