LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

build many arrays using for loop???

 
i have problems with  for loop. i have one big 2d array and i want to separate it into smaller ones (like 16*16 or may be n*n), then find their mean and variance.
0 Kudos
Message 1 of 5
(3,030 Views)

Hi

Array Subset VI in the array pallet will solve your problem most propably, without using a for loop. You can set starting index and end index for array subset you wish to take and do further operations upon.

Good Luck

Tareq
0 Kudos
Message 2 of 5
(3,026 Views)
Hi aperfectcircle,
 
I've written a quick example for how you could do it using SubArray.
 
see attached.

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

0 Kudos
Message 3 of 5
(3,018 Views)

thank you for you help , but i couldn't open it coz mine is version 7.0express

do u have any suggestion for me how to open it with my version??

0 Kudos
Message 4 of 5
(2,999 Views)

Hi aperfectcircle,

Here's the v7Express version:

 

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

0 Kudos
Message 5 of 5
(2,993 Views)