LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Printer in Paralel Port

Hi
I tested this program in several PCs, but in some PC it works well and in others doesn't print the first ticket with the first "Print" command, but with the second "Print" Command,  causing that the second ticket prints with the third command, the third ticket prints with the fourth command and so on. When i close LabVIEW, it prints the last ticket.
 
1) Laptop with pirated XP, LabVIEW 8.2.1, NI-Serial Runtime 4.2 - Program Works.
2) PC with pirated XP, LabVIEW 8.2.1, NI-Serial Runtime 4.2 - Program Works.
3) PC with genuine XP, LabVIEW 8.2.1, NI-Serial Runtime 4.2 - Program doesn't print the first ticket with the first Print command.
4) PC with genuine XP, VI installed with LV 8.2.1 runtime, NI Serial 4.2 runtime - Program doesn't print the first ticket with the first Print command.
5) PC with genuine Win2000, VI installed with LV 8.2.1 runtime, NI Serial 4.2 runtime - Program doesn't print the first ticket with the first Print command.
 
It's a bit curious. Maybe some configuration in the genuine XP mess the Paralel port, but i don't know what it's happening. The PCs with genuine XP belong to the same manufacturing plant.
 
Attached the VI and the printer programming manual (Zebra TLP 2844)


Mensaje editado por JCFC
Download All
0 Kudos
Message 1 of 6
(3,273 Views)
Is your LabVIEW version 8.2b23?surprised smiley
~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 2 of 6
(3,259 Views)
It's 8.2.1, downloaded from NI page.
0 Kudos
Message 3 of 6
(3,245 Views)
Are you using the same printer on each of these stations to verify your code, or does each station have its own printer?  If so, you may wish to confirm that the printers are all setup the same way.

Also, are all the parallel ports setup the same on each machine in the BIOS?
0 Kudos
Message 4 of 6
(3,240 Views)
All the PCs use the same printer. I will check the paralel port setup tomorrow.

EDIT: I check the Laptop number 1, but it doesn't have any reference to paralel port


Mensaje editado por JCFC
0 Kudos
Message 5 of 6
(3,234 Views)
I add a Visa Configure before the Visa Write and a Visa Close after it, and the Printer starts to work fine in all PCs.

But, i have a question now: Why the VI works different in each PC? Anyone have a clue?
0 Kudos
Message 6 of 6
(3,175 Views)