LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using parallel port

Hello,

I want to send data to the parallel port with LabVIEW. Only there is
one prblem. I want ot send 10 bits out. And there are only 8 data
bits. Can I also use the control lines to send data??????
0 Kudos
Message 1 of 8
(3,093 Views)
Yes it is possible with visa to control DTR and RTS via the modemline properties as extra two bits.
The output control lines are also available via direct hardware IO.
It is not possible to combine direct hardware IO and writing to lptport via VISA.
greetings from the Netherlands
0 Kudos
Message 2 of 8
(3,093 Views)
albert geven wrote in message news:<506500000005000000BA670000-1012609683000@exchange.ni.com>...
> Yes it is possible with visa to control DTR and RTS via the modemline
> properties as extra two bits.
> The output control lines are also available via direct hardware IO.
> It is not possible to combine direct hardware IO and writing to
> lptport via VISA.

What are the pin numbers of the DTR en RTS? And what are the mdemline properties?

Grtz,
JJ
0 Kudos
Message 3 of 8
(3,093 Views)
JJ,
Here are some usefull links for using a parallel port with LabVIEW:


Controlling the Parallel Port from LabVIEW
http://zone.ni.com/devzone/conceptd.nsf/webmain/72C6FC6CE4AD4D1386256B1800794596?opendocument

Zvezdana S.
0 Kudos
Message 4 of 8
(3,093 Views)
Hi,

But the DTR and RTS lines are if i'm not wrong from the serial port.
But can I control the lines such as strobe, autofeed, initialize and
select in???

Greetz,
JJ
0 Kudos
Message 5 of 8
(3,093 Views)
If you want extra output bits from your 8-bits comport you can also use extra hardware-logic to widen the port.
You will only sacrifice speed.
But to do this, you need electronics design experience.
0 Kudos
Message 6 of 8
(3,093 Views)
PdB_Serenity_nl wrote in message news:<5065000000050000006C680000-1012609683000@exchange.ni.com>...
> If you want extra output bits from your 8-bits comport you can also
> use extra hardware-logic to widen the port.
> You will only sacrifice speed.
> But to do this, you need electronics design experience.

I can send data to the control lines now. If you use the Out Port in
Labview and you connect an register address to it, and an value (e.g.
an array with booleans), you can control the data orcontrol lines. The
register address for data lines is 378 and 37A for the control lines.
In VISA I couldn't do this, I tried but (with poke) it didn't work
because you have to clean the buffer and then the control lines are
set to their "norm
al" positions.

Greetz,
JJ
0 Kudos
Message 8 of 8
(3,093 Views)
Hi JJ - and all the others,who fight against
parallel port..................

Find attached a jpeg - file with schematic (cutted from one of my running projects) and a small vi saved in .llb (LabVIEW6.1)- with this one I control the printerport (Win9x, WinNT, W2k). In schematic is visible, that the printerport is spread into 2Byte. The C1 - input of 74HC573 works as clk in order to latch the content of printerport into this device. Two Control lines of printerport are used as clk for latch0 and latch1.If you have additional questions - please write to: werner.hasche@web.de

regards
wha
Download All
0 Kudos
Message 7 of 8
(3,093 Views)