07-15-2024 08:24 AM
Hello,
I need to send a clock speed (declared in the RT VI) to the FPGA, but only once, so I'm trying not to use a DMA FIFO that would be read more than once.
I already tried to use global and shared variables but it didn't worked.
Does anyone know how I could do that ?
07-15-2024 08:33 AM
Hi Bivrox,
@Bivrox wrote:
I need to send a clock speed (declared in the RT VI) to the FPGA, but only once, so I'm trying not to use a DMA FIFO that would be read more than once.
I already tried to use global and shared variables but it didn't worked.
There are several options to exchange data between FPGA and RT host, and they are all explained in example VIs/projects coming with LabVIEW.
Globals or SharedVariables don't belong to that list of options!
Have you tried to use a simple control in your FPGA VI?
07-15-2024 08:41 AM
I can't use simple control because of the hierarchy i'm having in the project (the FPGA vi isn't directly called in the RT there are lot of VI called before it).
Where could I find the examples given by Labview ?
Thanks for your help !
07-15-2024 08:53 AM
Hi Bivrox,
@Bivrox wrote:
I can't use simple control because of the hierarchy i'm having in the project (the FPGA vi isn't directly called in the RT there are lot of VI called before it).
I don't understand your problem…
@Bivrox wrote:
Where could I find the examples given by Labview ?
Either example finder or in the "File->New…" dialog…
07-15-2024 09:00 AM
I need to send the "FPGA Frequency" (in my RT VI) to my FPGA VI, this data will never change once the program is running, it's just to adjust the FPGA frequency by hand.
Here is my FPGA VI using it:
(I can't publish my entire project but you can see the FPGA Frequency being collected then used to time the FPGA loop)
07-15-2024 10:14 AM
Hi Bivrox,
@Bivrox wrote:
I need to send the "FPGA Frequency" (in my RT VI) to my FPGA VI, this data will never change once the program is running, it's just to adjust the FPGA frequency by hand.
Here is my FPGA VI using it:
I still don't understand your problem and I also understand your code constructs. (Maybe because you only show very small part of the code.)
07-20-2024 07:19 AM - edited 07-20-2024 07:19 AM
Understanding Communication Options Between the Windows HMI, RT Processor, and FPGA
For your use case, you can look at the options for Tag