LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Store results in array- niScope EX Multi Record Fetch More Than Available Memory

How do I store the contents of a multifetch into a single large

1D INT array using the above example? I don't care about the

timing information, just the waveform.

 

niScope EX Multi Record Fetch More Than Available Memory

 

TIA

 

CSK

0 Kudos
Message 1 of 2
(2,393 Views)

Hi CSK,

 

If you know exactly how many records you want to concatenate into the array, you can take a look at the sample code below. The code essentially initializes an array of a known size (150 records of 30k samples each) and inserts each record into the appropriate location in the array. The reason why we are using this method as opposed to the Build Array function is because resizing an array actually makes copies of it in memory which is simply inefficient.

 

 

Message Edited by S_Hong on 12-23-2008 02:00 PM
S_Hong
National Instruments
Applications Engineer
0 Kudos
Message 2 of 2
(2,368 Views)