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.
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…
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.....
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!