LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read/Write FPGA controls by label text – open-source utility

Hi,

 

I've always wanted to read and write FPGA controls by name rather than wiring everything explicitly. Couldn't find a good solution, so I made one.

 

It generates two VIs for your FPGA target — one for reading, one for writing — both taking a control name as a string input.

 

https://gitlab.com/AndersSekanina/sekanina-fpga-generic-read-write

 

Has anyone solved this in a better way, or have suggestions? I'd like to know.

 

Anders Pedersen Sekanina
sekanina.dk




0 Kudos
Message 1 of 4
(328 Views)

LabVIEW FPGA Advanced Session Resources

This library is included with the R Series device driver versions 21.0 and later.

This library is used in FPGA Addon Custom Device

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 Kudos
Message 2 of 4
(276 Views)

Thank you, I was actually not aware about that.

 

I have tested it, and it works well. There is however about 1.2 ms overhead if I open and closes the FPGA sub-reference every time. I must see if I can find a nice way to keep them open, else I will get into timing issues at the cRIO.

Anders Pedersen Sekanina
sekanina.dk




0 Kudos
Message 3 of 4
(157 Views)

What's your use case? Why you couldn't pass the FPGA refnum instead of re-opening it?

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 Kudos
Message 4 of 4
(95 Views)