11-19-2007 05:09 AM
11-19-2007 06:26 AM
Laurent
You should be able to create a VI Scoped Memory for the FPGA. http://zone.ni.com/reference/en-XX/help/371599B-01/lvfpga/fpga_vi_scoped_memory/#details. You can then Write (initialize) and Read the memory. You can DMA the lookup data from the host to the FPGA Target where you can fill the VI scoped memory.
11-19-2007 09:00 AM
Similar to VADave's reply, you can also use a target-scoped memory block. This would allow you to write to the memory block in one (sub)VI of your FPGA application and read from it in another (sub)VI. The VI-scoped memory block, as the name implies, can only be written to and read from in the same VI.
The benefit of a VI-scoped memory block is that you can create one reentrant subVI with such a memory block and then create several instances of the subVI in your main VI, each with their own instance of the memory block.
11-20-2007 08:40 AM
Thank you to both of you!
Now I'm trying to implement your solution (DMA and memory block). But I'm not familiar with the using of the DMA FIFO, and I don't manage to synchronize the host-VI (writing of the array in the FIFO) and the FPGA-VI (reading the elements of the array one-by-one from the FIFO to write them in the memory) properly. The LabVIEW Help confused me a little bit on that... could you maybe give me some tip, or show me a small example similar to what I want to do ?
Thank you in advance,
Laurent
11-21-2007 11:43 AM - edited 11-21-2007 11:44 AM
11-22-2007 11:06 AM
Thank you very much Christian, you really helped me !
Laurent