Path: utzoo!mnetor!uunet!munnari!vuwcomp!trebor From: trebor@comp.vuw.ac.nz (Robert Amor ) Newsgroups: comp.sys.amiga Subject: Reading from the Parallel port Message-ID: <13574@comp.vuw.ac.nz> Date: 5 May 88 04:33:23 GMT Organization: Comp Sci, Victoria Univ., Wellington, New Zealand Lines: 23 Keywords: PARALLEL PORT ACCESS Hi folks I am having a problem trying to read data in from the parallel port on out Amiga 1000. Our Amiga 1000 is connected to the Urban Simulator held by the School of Architecture and I am trying to follow the moves made by the simulator with the aim of smoothing the path and making the Amiga drive the simulator while caputing the trip on out video setup. So I have written a suite of small C programs in Lattice C 4.0 one of which tries to read the data coming in from the simulator. I have treated the parallel port as a file and am using the DOS command numofbytes = Read(filehandle,buffer,bytestoread); The program compiles fine, but when run numofbytes always holds a -1, and IoErr() returns a code of 87. The listing of IoErr codes that we have does not list this code, and Commodore NZ could not find anything either. Can anyone out there help ? Also is this the best place to post this type of query ? It is the only Amiga group that we receive in NZ. Can you also keep the replies short as all mail we receive costs real money ! Thanks in advance.