04-08-2025 05:39 AM
Hello,
- I've compiled a bitfile for my NI7971R using Labview 2024 Q3.
- Base on PXIe 8861, NI RT LINUX 24 Q3
- Generated the neccesary files using C API Interface.
- Created a C console project and tried to connect to the FPGA.
My problem occurs when I run the code:
NiFpga_MergeStatus(&status, NiFpga_Open(NiFpga_FPGA_Bitfile, NiFpga_FPGA_Signature, "RIO0", 0, &session));
// NiFpga_Initialize(); is called before NiFpga_Open, and it runs properlly.
I'm encountering error code -52008 when calling NiFpga_Open()
.NiFpga_Initialize()
is called beforehand and runs properly.
The status
variable gives me the error -52008, which is not defined in the FPGA Interface C API error codes.
So, what does -52008 mean, and how can I resolve it?
Thanks.
04-08-2025 07:29 AM
Something with the NI Platform Services is not right! The error range -52000 to -52031 is assigned to the NI Platform Services layer. NI-PAL is the underlaying driver system that manages everything hardware related for all NI software drivers. This is about accessing physical memory, DMA, Interrupts and PCI handling. PCI in this context is anything PCI related, this also includes the various PCI technologies used inside the chipset to interconnect various peripheral hardware including things like USB, memory management and more.
-52008 has as error message "An unexpected operating system error has occurred"
So either the NI PAL driver framework is not properly installed or damaged or some other part of the software driver architecture has a problem.
Is this on the same machine that you did your LabVIEW development on?
Does it work when you try to load the bitfile in a LabVIEW application?
If it is on a different machine, are you sure you installed the FlexRIO driver and any board specific RIO support driver package?
04-09-2025 02:15 AM
Thank you very much for your response.
Here are the software versions used for both the hardware and the tools that generated the necessary files.
Could you please help me check if everything is compatible?
Thanks!
04-09-2025 02:35 AM
I can't really see real inconsistencies with this setup, except that you seem to have installed pretty much anything that your Software Bundle contains. I doubt that you need even half of that.
One thing that kind of seems slightly suspicious is the real-time firmware version 24.0, while almost everything else is 24.3 (respectively 2024 Q3) or better. I would start trying to see if there is a newer firmware version for your controller and if that doesn't help I would in fact install a later version of DAQmx, both on your development PC and then from there also update the DAQmx installation on your controller. The new DAQmx will also cause updates of the NI PXI Platform Services which is where NI-PAL is located in.
04-09-2025 04:18 AM
Thank you again.
When I use LabVIEW 2024 Q3 and load the bitfile to the target FPGA module, everything works as expected without any issues.
Do you have any suggestions on what might be causing the error when using LabVIEW 2023 Q3, or anything I should check?