LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I print to a dot matrix printer using LPT1?

Solved!
Go to solution

Sorry, reposting the question. Hit the wrong button on the forum.

 

OS is XP. 

I have an old application that worked previously. I built a new executable and installer and installed on my target machine. This is a new machine but same brand and model motherboard as used before.

 

I used VISA with LPT1 as the resource name. I get back an error 1073807302.

 

The printer is working as evidenced by printing from Notepad. I installed the driver from XP. The printer is a Panasonic KXP1150. I need the tractor feed for this application.

 

Anyone have an idea where to start trouble shooting?

 

thanks,

Chris

0 Kudos
Message 1 of 8
(4,499 Views)
Looks like Initialization Problem,. check the Initialization paramaters, Use SERIAL CONFIGURE PORT VI.
Message 2 of 8
(4,493 Views)

Hi,

 

Thanks for the help. Still not working.

 

There must be a setting somewhere in LabView that I'm missing.

 

My development machine has no LPT ports. Could that have something to do with the problem?

 

Do I need to run MAX or other utility on the either the target or development machine?

 

Regards,

Chris

 

0 Kudos
Message 3 of 8
(4,470 Views)

Here is the snippet of my code that is causing my consternation.

 

See attached.

 

Chris

0 Kudos
Message 4 of 8
(4,469 Views)

ASRL10::INSTR seems to be working. I no longer get the message that the port is not open.

 

However, the VISA Write is not successfully writing to the printer. It throws an error message.   1073807302.

 

 

Regards,

Chris

 

Message 5 of 8
(4,461 Views)

One more bit:

 

I've tried every BIOS setting for the port:
Normal

Bi-Directional

ECP

EPP.

 

And I tried printing once more from Notepad. It works.

Chris

 

0 Kudos
Message 6 of 8
(4,460 Views)

Hello,

 

When you say your development machine is not having LPT port then its sure that program is going to give an error.

 

First check in system device manager whether you have LPT port or not, Or goto NI-MAX in that goto devices and interfaces, and check whether you have Serial and Parallel ports. If no then your system doesn't have port but your program trying to find that port which does not exist,

 

 

Message 7 of 8
(4,446 Views)
Solution
Accepted by topic author cdreike

Thanks for all the attention. I finally found an old version that worked, cut and pasted seemingly identical code into my new version. Magically it works!

 

Regards to the group.

 

Chris

 

Message 8 of 8
(4,440 Views)