comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Tape drives and Sun UNIX
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Tape drives and Sun UNIX [message #1857] Thu, 24 March 1994 00:19
knipp is currently offline  knipp
Messages: 68
Registered: January 1993
Member
In article qhn@nps.navy.mil, olsen@physics.nps.navy.mil (Chris Olsen) writes:
> In article 72u@paperboy.gsfc.nasa.gov, dug@aol7.wff.nasa.gov (Doug Vandemark 2038) writes:
>>
>> An Idl I/O question:
>> Is it possible to read data from a tape device
>> under the SUN 4.1.1 OS (UNIX) by using standard
>> IDL IO functions open,read etc..?
>>
> I've done it on my sgi - just treated '/dev/tape' as a fileneame,
> and had no problem doing the following:
> openw, 2, 'filename'
> printf, 2, .....
> close, 2
>
> openr, 2, 'filename'
> readf,2, .....
> close, 2
>
> this was with the built in DAT drive - i have not tried the sun cartridge tape
>
> rc olsen
>


I did the same, but it did NOT work when reading/writing records
exceeding 8 kb. However it will work with
openr, unit, '/dev/rst1', /get_lun, /nostdio
readu, record, transfer_count=transfer_count

Karl

____________________________________________________________ __________________
__ ____ __
/ // _ \ / / Karlheinz Knipp phone: +49 511 - 762 4922
/ // /_/ // / University of Hannover fax: +49 511 - 762 2483
/ // ____// / Institute for Photogrammetry
/ // / / / Nienburger Str.1
/_//_/ /_/ FRG 30167 Hannover 1 email: knipp@ipi.uni-hannover.de
Re: Tape drives and Sun UNIX [message #1865 is a reply to message #1857] Wed, 23 March 1994 07:49 Go to previous message
olsen is currently offline  olsen
Messages: 5
Registered: March 1994
Junior Member
In article 72u@paperboy.gsfc.nasa.gov, dug@aol7.wff.nasa.gov (Doug Vandemark 2038) writes:
>
> An Idl I/O question:
> Is it possible to read data from a tape device
> under the SUN 4.1.1 OS (UNIX) by using standard
> IDL IO functions open,read etc..?
>
I've done it on my sgi - just treated '/dev/tape' as a fileneame,
and had no problem doing the following:
openw, 2, 'filename'
printf, 2, .....
close, 2

openr, 2, 'filename'
readf,2, .....
close, 2

this was with the built in DAT drive - i have not tried the sun cartridge tape

rc olsen
Re: Tape drives and Sun UNIX [message #1870 is a reply to message #1865] Wed, 23 March 1994 00:53 Go to previous message
knipp is currently offline  knipp
Messages: 68
Registered: January 1993
Member
In article 72u@paperboy.gsfc.nasa.gov, dug@aol7.wff.nasa.gov (Doug Vandemark 2038) writes:
>
> An Idl I/O question:
> Is it possible to read data from a tape device
> under the SUN 4.1.1 OS (UNIX) by using standard
> IDL IO functions open,read etc..?
>
> I've made some fledging attempts with no success.
>
> Thanks for any information.


Try using

OPENR, /NOSTDIO and
READU, TRANSFER_COUNT=TRANSFER_COUNT

where TRANSFER_COUNT equals the number of elements to read, NOT
the number of bytes.

Hope this helps, Karl

____________________________________________________________ __________________
__ ____ __
/ // _ \ / / Karlheinz Knipp phone: +49 511 - 762 4922
/ // /_/ // / University of Hannover fax: +49 511 - 762 2483
/ // ____// / Institute for Photogrammetry
/ // / / / Nienburger Str.1
/_//_/ /_/ FRG 30167 Hannover 1 email: knipp@ipi.uni-hannover.de
Re: Tape drives and Sun UNIX [message #1871 is a reply to message #1870] Tue, 22 March 1994 21:45 Go to previous message
landsman is currently offline  landsman
Messages: 93
Registered: August 1991
Member
In article <2mni0u$72u@paperboy.gsfc.nasa.gov>, dug@aol7.wff.nasa.gov (Doug Vandemark 2038) writes...
>
> An Idl I/O question:
> Is it possible to read data from a tape device
> under the SUN 4.1.1 OS (UNIX) by using standard
> IDL IO functions open,read etc..?
>
This doesn't exactly answer your question but Bill Thompson has written IDL
procedures that use the IOCTL function (so you need IDL V3.0 or later) to
emulate the intrinsic VMS IDL tape I/O procedures TAPWRT, TAPRD, REWIND,
SKIPF, etc. The procedures are available via anonymous FTP from
idlastro.gsfc.nasa.gov in the pro/tape_io directory (see the README file
there).

I know that these procedures will work on our SparcStation running Sun 4.1.1.

Wayne Landsman landsman@stars.gsfc.nasa.gov
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Interface, Widget, Motif questions
Next Topic: Positioning PostScript ouput, IDL Widgets

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 08:16:07 PDT 2025

Total time taken to generate the page: 1.12203 seconds