LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA C API Interface - NiFpga_Open error: -63180

Hello,

 

- I've compiled a bitfile for my NI9148.

- 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_FPGACharging_Bitfile,
			                NiFpga_FPGACharging_Signature,
			                "//169.254.7.183/RIO0",
			                0,
			                &session));

// NiFpga_Initialize(); is called before NiFpga_Open.

The 'status' variable gives me the error: -63180 which is not defined in the FPGA Interface C API error codes

 

In order to try to find what the problem is I've tried to

- Change the name of the bitfile to an incorrect one, by doing so the error returned was -63101 which is OK because it represents NiFpga_Status_BitfileReadError.

- Change the name of the resource to an incorrect one, by doing so the error returned was -63192 which is OK because it represents NiFpga_Status_InvalidResourceName.

 

So, what does -63180 mean ?

 

Thanks,

Robert.

0 Kudos
Message 1 of 3
(3,006 Views)

Pheee,

 

In the future please do not open multiple threads for the same issue.

Matt J | National Instruments | CLA
0 Kudos
Message 2 of 3
(2,989 Views)

-63180 is defined as "The resource name specified is either a reserved word or an invalid alias.  RIO aliases may contain only alphanumerics, '-', and '_'."

 

Generally the C API documentation should be up to date with all error codes, but if it isn't you can open LabVIEW and under help go to "Explain Error..." and type it in to get the meaning.

 

In your case, I believe your problem is your resource.  Instead of specifying:

"//169.254.7.183/RIO0"

 

try:

"rio://169.254.7.183/RIO0"

 

The rio:// tells NiFpga that you are opening a session to a remote resource.  Otherwise it is trying to check if the string you passed in is an alias and telling you that its not formatted properly.

 

-Michael

 

 

0 Kudos
Message 3 of 3
(2,964 Views)