From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

replace 10*2 in array

I am trying to log data comming from the DAQ board. An issue here is that I must calculate an 'running average' while acquiring 100kS/sec from the DAQ (reading two analog channels each at 500kS/sec).
There is no problem in doing anything as long as I read one sample a time from both channels.
In order to speed up the process a bit, I want to read lets say 10 samples at a time. The problem is that I then get a 10*2 array out of the 'read.vi'. In order to calculate the running average I need to replace a part (10*2) in the original array holding 50000*2 samples by the new 10*2 array.
Actual problem: when a 1*2 array (2D array) must be fit into 'replace array subset', there is no problem, but I do not find how to replace a 10*2 (2D array).
Does
anyone has a suggestion? Thank you.
0 Kudos
Message 1 of 2
(2,227 Views)
Maybe I don't understand your problem, but I had no problem using "replace array subset" to replace a 10*2 subset in a 50000*2 array. I've attached the vi that I used to test this.

Brian
0 Kudos
Message 2 of 2
(2,227 Views)