02-01-2017 10:35 AM
Using an Invoke Method, I am able to creat an image of the cRIO embedded UI user front panel to a JPEG or PNG file.
I'm now looking for a way to send this JPEG or PNG file to a cRIO attached printer via the USB or serial interface ports. Has anyone out there done this or know of Linux drivers that would support a printer?
Thanks,
Mark
Solved! Go to Solution.
02-01-2017 11:08 AM
I've at least installed and prodded around using CUPS on a 9068, and printed out a test page, so I know it's possible but it took some digging and setup.
02-01-2017 12:23 PM
Wow! Thats great. Can you provide any more details on the setup, interface (usb or serial) and printer model you have it working on?
Thanks!
02-01-2017 03:44 PM
I actually set it up to print to a network-attached printer here in the office (one that supports printing in PCL/PS), not a USB-based printer, but basically I would recommend digging around for details on how to setup whatever printer you are interested in on Linux. Something like searching "cups installation $PRINTER_MODEL" or "cups ppd $PRINTER_MODEL" (.ppd is the file format that cups uses to define how to interact with a printer). You may need to also install foomatic, a database and management engine for the various .ppd files to support many popular printers
03-06-2017 10:40 AM
Brad,
Getting back around to trying to print on my Linux cRIO using CUPS. A few questions:
1) Do you have details on how you installed CUPS on cRIO? Did you use OPKG Package manager? OPKG is installed on my cRIO. However, if I try to invoke OPKG Install CUP from a shell, I get a Can not create lock file - permission denied. How to login to shell as ADMIN??
2) ANy other details you used to get network printer to work would be appreciated.
Thanks,
Mark
03-06-2017 05:52 PM
For the first question, see http://digital.ni.com/public.nsf/allkb/9822A3A39B1D0CBB86257C55006B962A
For the second, it's been too long and I didn't really take notes on what I'd done, what I do recall is that I decided to enable remote CUPS administration to simplify configuration (the default configuration for CUPS is to enable configuration through a webUI only from the same machine, see http://www.thegeekstuff.com/2016/02/cups-admin-ui-access/ e.g., there are many good guides out there.
05-03-2017 10:03 AM
Hello! I'm also trying to set up a printer with the cRIO.
I used "su admin" to get admin access (I left the password blank and it worked).
05-11-2017 01:38 PM
Hi gjmontagner,
I don't really see the question in your post. Are you just posting to express that you, too, want to setup printing? I've pointed out some resources to get started and try out.
05-11-2017 01:51 PM
Hi BradM,
Yes, I also want to set up a printer on Linux RT. I've only now seen the resources you posted, thanks. I'll try accessing cups web UI, which is currently not working. I've been able to install cups already, but can't configure it, so I'll try following the advice on one of the links you posted.
Thanks,
05-30-2017 09:39 AM
Hello Brad.
I've come back to this topic, and am trying to setup a printer with the cRIO-9035. I followed some steps on the link you posted, and am accessing the CUPS webUI from my computer, but when I try to access "Add Printer", it prompts me for username and password, and none of the options I try work. Have you had this kind of problem?
Also, have you installed drivers for the printer you used? I found the ones for mine, but am not sure about how to install them. They come either in a .deb or .rpm format
Thanks