06-27-2014 02:58 AM
06-27-2014 03:25 AM
Okay
Thanks
07-01-2014 04:53 AM
Hi Dennis_Knutson,
How can the 25 sample update 10 times faster when in both cases loop time is 0.25 seconds?
Graphs are displayed once in a loop.
07-01-2014 06:15 AM
07-01-2014 07:27 AM
No.
I think I dint explain my question properly.
I meant 25 samples are read 10 times and each data out is transposed, then appended, then transposed again to get a 6x250 array ( that is, 0.25 seconds).
07-01-2014 07:55 AM
07-01-2014 08:29 AM
There is only one loop. Both "25 sample reads" and the graphs are inside the same while loop, but on different sequential frames. The output of the "25 sample reads frame" is a 6x250 array data (i.e. 6 channels of 250 samples each which makes it a 0.25 seconds loop time.
07-01-2014 09:10 AM
07-01-2014 11:31 PM
I'll tell you what is actually done.
Six channels are configured.
In a frame (inside a while loop), 10 daqmx read functions reads 25 samples each (So there are ten 6x25 components). The output from each of the 10 daqmx read fns. are transposed and appended (using build array). This single output is again transposed (which is now a 6x250 single component ). (So finally loop time is 0.25 secs.) This output is graphed (in the next frame and inside the same while loop.
My question is when we directly take 250 samples (loop time 0.25 secs) to get a 6x250 component, there is no difference in loop time, so is it that there is a difference in how the data is stacked? In the later case data is stacked column wise..
07-02-2014 07:16 AM - edited 07-02-2014 07:17 AM
@kdm7 wrote:
I'll tell you what is actually done.
Six channels are configured.
In a frame (inside a while loop), 10 daqmx read functions reads 25 samples each (So there are ten 6x25 components). The output from each of the 10 daqmx read fns. are transposed and appended (using build array). This single output is again transposed (which is now a 6x250 single component ). (So finally loop time is 0.25 secs.) This output is graphed (in the next frame and inside the same while loop.
My question is when we directly take 250 samples (loop time 0.25 secs) to get a 6x250 component, there is no difference in loop time, so is it that there is a difference in how the data is stacked? In the later case data is stacked column wise..
If you just make your task read 250 samples from 6 channels in one shot (instead of using the loops), then you end up with a 2D array with each channel's data being a row.