LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

parallel port under linux

could anybody help a linux-labview beginner?
i'm trying to write to my parallel port. but labview is obviousely not set
up for this. does anywone happen to have a vi which can do that?

best of regards
michael h. fischer

============================================
cell: +43 664 1254415
fax: +34 664 1265930
icq: #61578912

vienna university
institute of geology
geochronology laboratories
althanstrasse 14 / 2a482
a - 1090 vienna (austria)

web: www.univie.ac.at/geologie/fischer/
wap: www.univie.ac.at/geochron/wap/
============================================
0 Kudos
Message 1 of 5
(3,276 Views)
"michael h. fischer" writes:

> could anybody help a linux-labview beginner?
> i'm trying to write to my parallel port. but labview is obviousely not set
> up for this. does anywone happen to have a vi which can do that?

Michael,

I'm not sure how you adress the parallel port.

Writing directly to an I/O port is not allowed for security
reasons. There are VI's to do the required system calls.

You might be able to use the (old) serial VI's with a high serial port
number. You can look up the port number on a LV version for Windows.

I'd use a completely different strategy: VISA can address parallel
ports. With Windows you just use ASRL10. You might need some tweaking
of the VISA preferences files to do it.

Printing data to a parallel
port should be done with the tools
designed for it: System Exec: lpr file.txt

Does someone have a summary of the options for reading the parallel
port and setting control lines via the described methods?

Johannes Nieß
0 Kudos
Message 2 of 5
(3,276 Views)
maybe i didn't comunicate here.
i don't intend to print anything out but i want to set each pin of the port
hi or low. i'm trying to turn some electrical relay-switches on and off.

thanks anyway, all these hints are useful to me

"Johannes Niess" wrote in message
news:m2u2b1556o.fsf@server.landtechnik.uni-bonn.de...
> "michael h. fischer" writes:
>
> > could anybody help a linux-labview beginner?
> > i'm trying to write to my parallel port. but labview is obviousely not
set
> > up for this. does anywone happen to have a vi which can do that?
>
> Michael,
>
> I'm not sure how you adress the parallel port.
>
> Writing directly to an I/O port is not allowed for security
> reasons. There are VI's
to do the required system calls.
>
> You might be able to use the (old) serial VI's with a high serial port
> number. You can look up the port number on a LV version for Windows.
>
> I'd use a completely different strategy: VISA can address parallel
> ports. With Windows you just use ASRL10. You might need some tweaking
> of the VISA preferences files to do it.
>
> Printing data to a parallel port should be done with the tools
> designed for it: System Exec: lpr file.txt
>
> Does someone have a summary of the options for reading the parallel
> port and setting control lines via the described methods?
>
> Johannes Nieß
0 Kudos
Message 4 of 5
(3,276 Views)
"michael h. fischer" writes:

> maybe i didn't comunicate here.
> i don't intend to print anything out but i want to set each pin of the port
> hi or low. i'm trying to turn some electrical relay-switches on and off.
>
> thanks anyway, all these hints are useful to me

Michael,

So using an true ASCII printer or dircetly /dev/lpx is the easiest
solution. Just "print" the ASCII charakter representing the bits to
set.

Johannes Nieß

>
> "Johannes Niess" wrote in message
> news:m2u2b1556o.fsf@server.landtechnik.uni-bonn.de...
> > "michael h. fischer" writes:
> >
> > > could anybody help a linux-labview beginner?
> > > i'm trying to write to my parallel port. bu
t labview is obviousely not
> set
> > > up for this. does anywone happen to have a vi which can do that?
> >
> > Michael,
> >
> > I'm not sure how you adress the parallel port.
> >
> > Writing directly to an I/O port is not allowed for security
> > reasons. There are VI's to do the required system calls.
> >
> > You might be able to use the (old) serial VI's with a high serial port
> > number. You can look up the port number on a LV version for Windows.
> >
> > I'd use a completely different strategy: VISA can address parallel
> > ports. With Windows you just use ASRL10. You might need some tweaking
> > of the VISA preferences files to do it.
> >
> > Printing data to a parallel port should be done with the tools
> > designed for it: System Exec: lpr file.txt
> >
> > Does someone have a summary of the options for reading the parallel
> > port and setting control lines via the described methods?
> >
> > Johannes Nieß
0 Kudos
Message 5 of 5
(3,276 Views)
maybe you could use the shell vi in LabVIEW for Linux or the pipe vi to send
your data to the lp device ?

"michael h. fischer" wrote in message
news:8qquih$3l3u$1@www.univie.ac.at...
> could anybody help a linux-labview beginner?
> i'm trying to write to my parallel port. but labview is obviousely not set
> up for this. does anywone happen to have a vi which can do that?
>
> best of regards
> michael h. fischer
>
> ============================================
> cell: +43 664 1254415
> fax: +34 664 1265930
> icq: #61578912
>
> vienna university
> institute of geology
> geochronology laboratories
> althanstrasse 14 / 2a482
> a - 1090 vienna (austria)
>
> web: www.univie.ac.at/geologie/fischer/
> wap: www.univie.ac.at/geochron/wap/
> ====
========================================
>
>
>
>
0 Kudos
Message 3 of 5
(3,276 Views)