LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with com port when streaming data.

Hi Xonmyth,

Your  Producer consumer_MOD.vi ‏21 KB is a step in the right direction, I played around with it for several hours but still didnt make progress. It will change to process the data into two registers when required and outputs the right number of readings but they are all in a single column and has the ms timer after every one.

I need to make it so that each four readings in the column are in their own row with the ms timer after that. Like the data example in my post number 37 (but going on for more than four rows before adding the other row of data). I found that taking the ms timer data out of the forloop by a final value tunnel produces the right result. It may be producing data after every register is read but only the last one is written because it is last value. but I can only make it compatible with the other data by using indexing tunnels and that prints four ms timer rows at the end of the column. which is useless. Any more ideas, I have posted my modification below.

0 Kudos
Message 41 of 42
(57 Views)

I was a bit unclear by just posting the data, hope this helps. 

the slaves need to be read in sequence rapidly once, then the milisecond timer at the end to benchmark the reading process. That has to happen some large number of times like 3000 then the other timing data added before return to the start. so the data should look like this

 

slave 1(2 registers), slave 2, slave 3, slave 4, millisecond timer.

 

as it stands the data is like this;

slave 1, millisecond timer

slave 2, millisecond timer

slave 3, millisecond timer

slave 4, millisecond timer

slave 1, millisecond timer

slave 2, millisecond timer

slave 3, millisecond timer

slave 4, millisecond timer....

 

I might be able fo find a way to concatenate four rows into one but if that got out of sync the data would be unusable. I dont think I can use the device settings array to control which rows are concatenated.

0 Kudos
Message 42 of 42
(39 Views)