Open mouth, insert foot. I should have looked at your default
values. You need to set the array size based on the value
numSamples
and the actual number of samples taken (actual record length).
Once you have initiated, you can query for the actual record
length. Since you already have an NI-SCOPE property node in the
right place, just add another item and select
Horizontal->Actual Record Length. You can also use
niScope Actual Record Length.vi, if you would prefer. Make sure you do it after you initiate your acquisition.
Drop a case structure just before your array initialization. Wire
numSamples to the selection. In one case, type in
..-1. Make the other case the default (selector box should read
Default, and nothing else). In the
..-1 case, use the actual record length as the output of the case. In the
Default case, use the lessor of the actual record length and
numSamples (you can't take more data than is available) as the output. Wire the output of the case to the number of array elements.
If you have any more problems, let me know.