LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW St. 3.1Win: how to interface to Centronics

I'm a novice with LV
I made a simple ADC via centronics (ADC08831+LM35) and
I'd to test it using Labview.
I tried to use Serial Port Read VI
setting up port number to 10 (LPT1?)
with no success
Anyone can help me?
I haven't any DAQ card.
Thanl You
0 Kudos
Message 1 of 5
(2,906 Views)
Hallo, DELTA,

Du meintest am 14.11.00 zum Thema LabVIEW St. 3.1Win: how to interface to Centronics:

> I made a simple ADC via centronics (ADC08831+LM35) and
> I'd to test it using Labview.
> I tried to use Serial Port Read VI
> setting up port number to 10 (LPT1?)
> with no success

Reading from the LP port is tricky. How is the port configured (in the
CMOS setup): SPP, EPP or ECP?
Do you know how to switch "base+0" from output to input?

Viele Gruesse!
Helmut
0 Kudos
Message 2 of 5
(2,906 Views)
On 14 Nov 2000 23:16:00 +0100, HHullen_BS@BTX.dtag.de (Helmut Hullen)
wrote:


>Reading from the LP port is tricky. How is the port configured (in the
>CMOS setup): SPP, EPP or ECP?

SPP: it's an old 486

>Do you know how to switch "base+0" from output to input?

No I don't

Thanks
0 Kudos
Message 4 of 5
(2,906 Views)
Hallo, Delta_Force,

Du meintest am 15.11.00 zum Thema Re: LabVIEW St. 3.1Win: how to interface to Centronics:

>> Reading from the LP port is tricky. How is the port configured (in
>> the CMOS setup): SPP, EPP or ECP?

> SPP: it's an old 486

>> Do you know how to switch "base+0" from output to input?

> No I don't

From Vernon Buergs Interrupt list (port list):

--------P-P03BC03BF--------------------------
PORT 03BC-03BF - PARALLEL PRINTER PORT (MDA's LPT1)
Range: PORT 0278h, PORT 0378h, or PORT 03BCh
SeeAlso: MEM 0040h:0008h

03BC -W data port
03BC R- bidirectional port: input from connector
unidirectional port: last value written to port
03BD R- status port (see #P0658)
03BE RW control port (see #P0659)

Bitfields for parallel interface status port:
Bit(s) Description (Table P0658)
7 busy
6 NOT acknowledge (approx. 5us low pulse)
5 out of paper
4 printer is selected
3 *no* error
2 IRQ has *not* occurred
(PS/2) printer returned -ACK
1-0 reserved
Note: if bit 2 is clear (i.e. an interrupt has occurred), it is set again on
reading the status register
SeeAlso: #P0659

Bitfields for parallel interface control port:
Bit(s) Description (Table P0659)
7-6 reserved
7 (see PORT 037Bh bit 7)
5 (PS/2) enable bidirectional port
(also requires enabling via PORT 0102h)
4 enable IRQ (via -ACK)
3 select printer (SLCT IN line)
2 =0 initialize printer (-RESET line)
1 automatic line feed
0 strobe (must be set for minimum of 5 microseconds)
SeeAlso: #P0658
--------V-P03BF------------------------------
PORT 03BF - Hercules configuration switch register
Note: can also be found on EGA and VGA clones in Hercules emulation

03BF -W configuration switch register (see #P0660)
03BF -W (ET4000) Hercules compatibility register (see #P0661)
03BF RW (Genoa SuperEGA) miscellaneous register
Note: only available in MDA, HGC, and CGA emulation; should be
compatible with Hercules configuration register, but may contain
additional features

Bitfields for Hercules configuration switch register:
Bit(s) Description (Table P0660)
7-2 reserved
1 =0 disables upper 32K of graphics mode buffer
=1 enables upper 32K of graphics mode buffer
0 =0 prevents graphics mode
=1 allows graphics mode
SeeAlso: #P0661

---------------------------------------

He describes Port 03bch, Port 0378h ("LPT1") and 0278h ("LPT2") act in
the same way.
On a SPP port you cannot read from (base+0), you can only use some of
the status lines from (base+1).

Viele Gruesse!
Helmut
0 Kudos
Message 5 of 5
(2,906 Views)
For Win3.1, 95, 98
InPort & OutPort from Advanced->Memory

For Win NT4 you need AccesHW.zip from NI.

You also must search info about Bi-Directional Parallel port. I can't
remember number of specification by NI.

Good look

"DELTA" wrote in message
news:3a11a06b.1700227@news.libero.it...
> I'm a novice with LV
> I made a simple ADC via centronics (ADC08831+LM35) and
> I'd to test it using Labview.
> I tried to use Serial Port Read VI
> setting up port number to 10 (LPT1?)
> with no success
> Anyone can help me?
> I haven't any DAQ card.
> Thanl You
0 Kudos
Message 3 of 5
(2,906 Views)