LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

output pass or fail result to printer

Hello,

 

I need to add a printer to our existing test system fixture and write a VI that would print the either pass or fail result once the product has been tested.  But I don't know what kind of printer I need and where to start writing VI.  Do I need one of receipt printer or any kind of printer would work?  Any ideas.

 

Thank  you in advance. 

0 Kudos
Message 1 of 3
(2,579 Views)

The Report Generation Toolkit has a print function.  I just prints the report to the default printer.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(2,569 Views)

Any printer will work.  Like crossrulz said, the Report Generation Toolkit will print to the default printer.

 

Here's a cheap-and-easy method Ive used:

 

EasiestReport.png

 

This may work if you don't have the Report toolkit:

 

Print.png

 

I switched to the first method when I found that the second doesn't work well in Windows 7, but I haven't tried it in LabVIEW 2013 (it's a bug that may have been fixed).

 

With either method, simply make the Front Panel of your VI look like the report you want.  I'll usually hide any controls (Print, Exit) before printing then re-show them when it's done.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 3 of 3
(2,541 Views)