LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview fpga fixed size arrary error

I am trying  to read the last sec data from fpga if my device under test reaches the specified threshold. The way I am doing it is by reading the analoge values from labview fpga making an array of them and checking it against a threshold and if the last elemrnt of the array is matching the threshold I save the data otherwise its discarded but I am getting the array size error at the output shift register of while loop and have no idea how to solve it. Kindly recommend some solution.

Download All
0 Kudos
Message 1 of 4
(158 Views)

Hi kazmi,

 

in FPGA you have to work with fixed-sized arrays.

You cannot use BuildArray in situations when it changes the array size!

 

Did you read the FPGA basics?

 

Btw. comparing boolean values with boolean constants (twice!) just to set a loop condition is considered Rube-Goldberg…

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 2 of 4
(151 Views)

I am new at LabVIEW fpga and have little time to complete this task.

 

Can you recommend something instead of build-array function to form an array.....

0 Kudos
Message 3 of 4
(140 Views)

Hi kazmi,

 

define/initialize the array using InitArray. Work with this array without changing its size using ReplaceArrayElement…

 

This is basic FPGA stuff and you should learn this before doing FPGA development!

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 4 of 4
(136 Views)