11-17-2017 04:05 AM
running vi on FPGA , the task is to choose specific array elements from FIXED size array on FPGA as follow:
FIXED Array A Size = 1000
FIXED Array B Size = 10
Loop thru Array A , select elements to Sub Array B based on SubArray Index and SubArray Length values,when compiling the code
Error Msg "Array does not resolve to fixed size"
Please advice how to solve this error?any work around ?attached code and screen shot.
Best Regards
11-17-2017 04:30 AM - edited 11-17-2017 04:33 AM
11-17-2017 05:37 AM
Hello GerdW
Thanks for support
Ok , Please advice , in my application design , the array is fixed size (7000) element , 8 Bit Hex (AAAAAAAA,11111111,FFFFFFFF,... etc) , the task is to loop every 10 elements and return the 10 sub array elements , also the compiler was able to store array (7000) 8 bit hex elements successfully.
Q1-using IndexArray with 10 outputs. Then use BuildArray for above array is optimum design using cRio-9082 chassis FPGA ?
Best Regards
MyKat
11-17-2017 05:55 AM
Hi MyKat,
Please advice , in my application design , the array is fixed size (7000) element , 8 Bit Hex (AAAAAAAA,11111111,FFFFFFFF,... etc) ,
"AAAAAAAA" look like 32 bits to me. How is this "8 bit HEX"???
the task is to loop every 10 elements and return the 10 sub array elements ,
I already have given a snippet above!
also the compiler was able to store array (7000) 8 bit hex elements successfully.
How is this related to your question?
11-17-2017 06:10 AM
Hi GerdW
Correct 32 bit , sorry
-Array Fixed size (7000 element) each element is (AAAAAAAA,11111111,...etc) Hex,32 bit
-snippet code is running inside For Loop with 700 loop iteration
-Sub Array is made with snippet code to extract 10 elements from Array for each loop iteration
is above considered optimum design?
Best Regards
MyKat
11-17-2017 06:17 AM
11-17-2017 06:40 AM
@MyKat wrote:
the task is to loop every 10 elements and return the 10 sub array elements
Just use Reshape Array to make a 2D array.
11-17-2017 06:44 AM
11-17-2017 06:46 AM
Hi GerdW
Memory Blocks to store 7000 elements sounds better than array , never used it before , any
code example as guide ?
Best Regards
MyKat
11-17-2017 07:01 AM
Hi GerdW
I went quickly reviewing Memory Blocks , it has Read and Write to process the data , HOWEVER , still need to have the 7000 elemets fixed array stored on the FPGA since this
is STATIC data array with constant elements , i think Memory Block for processing the array elements , my concern is on best technique to store the 7000 elemets array on FPGA?
Best Regards
MyKat