ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Running FPGA Python API on Ubuntu LTS 22.04

Hi,

 

I am trying to run a LabVIEW-generated bitfile via a python API in FPGA. My OS is Ubuntu LTS 22.04 Jammy Jellyfish. The PC is connected to the FPGA via Thunderbolt cable. I am able to run the script just fine on Windows, but on Linux the program crashes when using FIFO's. I am able to run scripts that don't use FIFO's without issues. I have a suspicion that this might be caused by Thunderbolt DMA protection (based on this post: https://forums.ni.com/t5/LabVIEW/NIFPGA-Python-library-freezes-Windows-when-using-FIFO/td-p/4226304). However, I still haven't found out a solution. 

 

I tried running the script on another computer, also using Ubuntu 22.04. The drivers installed are NI-RIO 21.0. The script crashes with error: nifpga.status.InvalidResourceNameError: Error: InvalidResourceName (-63192) when calling 'NiFpgaDll_Open'. 

 

Are the NI-drivers compatible with Ubuntu 22.04 or have just missed something. Any kind of help would be greatly appreaciated.

0 Kudos
Message 1 of 4
(1,987 Views)

I think this might have something to do with the RIO reference string. Try: lsni -v which will show RIOx association with your FPGA cards. Try the correct RIOx string when opening the FPGA reference. The RIO string might be different between Windows and Linux.

0 Kudos
Message 2 of 4
(1,945 Views)

I tried your proposed solution and was faced with the following error message:

 

"libnipalu.so failed to initialize
Verify that nipalk.ko is built and loaded."

 

I could not find a way to fix it 😞

0 Kudos
Message 3 of 4
(1,909 Views)

HI  Multilocus,

Did you check this article before? Error -63192 When I Run My LabVIEW FPGA Code or FPGA Interface Python API - NI

 

It might be helpfull. 

0 Kudos
Message 4 of 4
(1,872 Views)