- From: Dimitris Xydas <dxydas_at_yahoo.com>
- Date: Fri, 17 Aug 2007 02:15:12 -0700 (PDT)
Hi,
I have some questions regarding the use of
instructions.
Using the instruction demo (insn) example seems to
read fine from my das1200 subdevice 1 (analog o/p).
But trying to send a list of instructions including a
write command does not seem to work. For example
replacing read with write (using
insn[1].insn=INSN_WRITE;) in this demo and setting up
a test set of samples to write:
data[0] = 1000;
data[1] = 1000;
data[2] = 0;
data[3] = 0;
data[4] = 1000;
data[5] = 1000;
data[6] = 1000;
data[7] = 0;
data[8] = 0;
data[9] = 0;
I run the prog but only data[0] seems to be applied to
the o/p, which I can see through the
ComediClientServer application. Shouldn't all 10 data
samples be written to the o/p sequentially?
____________________________________________________________________________________
Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469
Received on 2007-08-17Z08:15:12