- From: <nmercat_at_tin.it>
- Date: Tue, 27 Apr 2004 14:14:03 +0200
Hi all, i am trying to write a program made by some instructions that configure the parallel port as an input makes 10 readings of a single channel, configure the port as an output and writes on it. I am a bit confused about the procedure. I write this //configuration insn[0].insn=INSN_CONFIG insn[0].data=COMEDI_OUTPUT insn[0].chanspec=CR_PACK(channel,range,aref) //writing insn[1].insn=INSN_BITS insn[1].data=data_ar insn[1].subdev=subdevice insn[1].chanspec=CR_PACK(channel,range,aref) insn[1].n=10 are they correct ? I don't understand how to set the parameter of chanspec for the parallel port Has anyone used this configuration? Thanks a lot Lorenzo.
Received on 2004-04-27Z11:14:03