Hi guys, thanks for repsonding
Ok, I'll try and answer your questions as well as possible. First of
all, the output tunnels - I added all of the "write to file" parts
myself (remember this vi was written by a previous colleague), so I
could see what the vi was actually outputting, in a format that was
more familiar to me (excel!)
I had all of the tunnels set to indexing, so that every output of the
loops would be written - but I disabled indexing on the output tunnel
that goes to the file called "Raw Voltages" just so it wasn't
such a huge file - this way it only showed me the array from the last
loop, which was enough to see that this array seems to be four times
bigger than it should be.
I put the "Raw voltages" write-to-file in to see what the "AI read" vi
was actually reading from the buffer. This is the point where the
strange things are happening - there are supposed to be four channels
in total, one for each cylinder of the engine. So the output of the AI
read vi is *supposed* to be a matrix of four columns, 1440 elements
long (1440 is the amount of half degree increments in two revolutions
(or one cycle) of the engine)
BUT, using the above write to file, I see that now, for some reason,
the output of the AI read is a matrix 16 columns long. The data are now
being duplicated four times each, so the first four columns are
identical and relate to cylinder one, the next four are identical, and
relate to cylinder two, etc, etc.
In the first place, I don't really understand where this output from
the AI read vi is coming from - is the buffer stored in the computer
memory, or on the DAQ board, or where??
So, I've effectively probed the date back as far as I can, by ouputting what comes straight from the AI read
I will be continuing to get my teeth into this, and will be looking
forward to your replies, but I should point out that I will be on
holiday for the next fortnight, so please bear with me if I don't reply
to any responses until after that!
Thanks in adavance!
Theo