04-15-2024 08:32 AM
Hello all,
I am new to LabVIEW and I am currently facing an issue regarding a compilation error. My board is USB 7856 EOM.
I am attaching an image of my code, the shift register here seems to be the issue as the error says "array does not resolve to a fixed size".
I am trying to send an array of data to my FIFO and basically send a set of points in the form of arrays, and once the array is filled, reinitialize/empty the array and fill it with the new set of points again. I have attached my VI as well which I will be using to do a frequency Sweep. Any suggestions would be appreciated.
Thanks in advance
04-15-2024 09:21 AM
Inside of the FGPA, the size of an array has to be fixed in size because you are defining hardware. The solution here is actually fairly simple. You only need 1 loop. In this loop, you read the analog input and wire it straight to the Write FIFO. This will continuously write your analog input to the FIFO. There is no need to mess with an array at all.
04-15-2024 10:46 AM
@ardanvarya wrote:
I am trying to send an array of data to my FIFO and basically send a set of points in the form of arrays, and once the array is filled, reinitialize/empty the array and fill it with the new set of points again. I have attached my VI as well which I will be using to do a frequency Sweep. Any suggestions would be appreciated.
Thanks in advance
On a side note, even on plain labVIEW (where arrays don't need to be fixed size!) your code makes absolutely no sense.
I strongly recommend to work out some reasonable logic in plain desktop LabVIEW and get familiar with the basics of dataflow before even attempting to involve FPGA. An FPGA has no real UI and always runs so having consecutive interactive loops seems off in any case.
04-24-2024 01:35 PM
Hey,
Thanks for the advice. Instead of doing multiple things simultaneously, I tried to do just the signal generation first.
I am attaching a screenshot of my signal as shown in the oscilloscope, I cannot figure out why it is so distorted, is there an issue with the Loop timing or update rate?.
The graph looks OK when I simulate it but the analog signal display on my oscilloscope is seen in the attached image and there is some error.
PS I did this based on the "data processing" example found in the LabVIEW example finder, I retained the "Number to boolean" and "boolean to number" conversion as it was in the example. Is that itself the issue or there is a flaw in my logic?