08-17-2011 05:17 AM
Hi,
Can I create on FPGA Array ? I m trying it , but every time i get error !!!
I've tried this 4-solution (from Labview Help- Details ) , but does not work.
How can I set a dimension on my wire 1-2 ? or my Array ?
regards,
Mehmet
08-17-2011 11:34 AM
There is a setting on the VI that must be selected to use arrays on FPGA. If you go to the VI Properties and then the Execution page, you will see a checkbox that says something like "Auto-preallocate arrays and strings". Check that box and hit ok and you should be good. That option essentially allows LabVIEW to precalculate all the array sizes which is a requirement for FPGA. Note, that checkbox is only visible when the VI is open under an FPGA Target.
08-18-2011 03:50 AM
Hi,
i have done it, but is not working.
thank you for your Answer.
08-18-2011 09:55 AM
Looking at your VI again, it looks like there may not be a way for LabVIEW to determine the array size because the shift register is uninitialized and you don't have any primitives that enforce a size. Try wiring an array constant to the init terminal of the shift register and see if that fixes it.
08-19-2011 03:26 AM
I'm wondering about why your want to create an array of your analog input values?
Christian
08-23-2011 05:42 AM
I'm in the same situation. Wiring an array constant to the init terminal of the shift register doesn't work.
I want to save 18 bytes into array for then read from host and convert into ASCII code.
Help please!
08-23-2011 08:11 AM
I want to find max value from Array.
08-23-2011 04:15 PM
Here is a sample snippet that isn't broken. When you create the array constant, you have to right-click on it and open the "Set Dimension Size ..." dialog to change it to a fixed-size of N elements.
Like Christian mentioned, you may not actually want to use an array for your use case. If you are transferring data to the host, you should probably do it one point at a time through a DMA FIFO channel.
08-25-2011 09:13 AM
and if you just want to find the maximum then compare the last value (stored in a shift register) with the actuale one and store the larger one in the register again. -> no array needed.
Christian
08-30-2011 12:47 AM
If you changed the while loop to a for loop with a fixed number of loops, and just wire the analog out put termianl to the edge of the loop , enable indexing and connect to an indicator or max min function (aggregate type)