Showing results for 
Search instead for 
Did you mean: 

Save Files to USB and computer simultaneously

You would initialize with a 2D array with one colum for each channel and with a length corresponding the desired history size. 

0 Kudos
Message 11 of 15

Could you further explain your example or further help me? When I applied the example, the averaged data I obtained is incorrect. The untouched or not average values are reading voltage values around 1.4 for analog channels and -9999 for thermocouple channels (error because not net yet hooked up) as expected, but for the averaged values I obtain -4000 or on the order of that.

0 Kudos
Message 12 of 15

Here's an example for 3 channels.


The second FOR loop gets three points (one for each channel) at a time.




Download All
0 Kudos
Message 13 of 15

thank you. I was wondering where the mean pt by pt vi went in the VI? or was it left out. sorry im in the learning phases of labview

0 Kudos
Message 14 of 15

You can leave it there and simply wrap a small FOR loop around it. My older code showed that both produce the same result so you only need one or the other.


Once you have multiple channels, it seems more reasonable to go with the explicit version, because all data is now contained in a single 2D array. This feels more efficient, but I haven't done any benchmarking. If you use the ptbypt version, each instance maintains it's own buffer, probably creating a little bit more overhead (?).

0 Kudos
Message 15 of 15