Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA undefined error - reporting BUG found

Hi,

for several days I was programming my FlexRIO FPGA. After one of my tries to compile the FPGA, there was this unspecified error,

which I was unable to repair.

 

Error says:

 

An internal software error in the LabVIEW FPGA Module has occurred while generating code.  Please contact National Instruments technical support at ni.com/support.
Exception 61055 at: v\source\FPGA\CodeGenerator.cpp:274 - LVExcept. Err=1, File=\FPGA\DFIR\Utils\FoldingOps.cpp, Line=1393, Detail='' thrown during 'FpgaConstantFolderTransform'.

 

There is absolutely no sign, where the error is coming from.

Even Google doesn't know this error yet, so I am posting this.

 

The problem is the conversion of REAL constant to FXP in the FPGA code.

Seems like a nice BUG.

 

FPGA unable to convert constant Pi to FXP type

Neo
Hardware-designer, inventor, freak...
FEI, VSB Technical University Ostrava
Message 1 of 4
(4,785 Views)

Hi NeoGHOST,

 

Thank you for reporting it.

Indeed, I can confirm that is an unexpected behavior, I have created a CAR( Corrective Action Request) that will notify NI R&D team.

As a work-around, I would suggest to do the convertion on Windows using exactly the same function and simply copy/paste the constant in fixed point that represents the desired value.

 

Best regards,

IR

0 Kudos
Message 2 of 4
(4,756 Views)

Hi,

thanks,

as a solution I have just typed a 3,141592... in the constant, and it works fine. 🙂

 

The biggest problem was to find, where the problem is.

There was no sign pointing to place or block with error.

There was only undefined error "somewhere in the code"...

 

Best regards,

NeoGHOST

 

 

Neo
Hardware-designer, inventor, freak...
FEI, VSB Technical University Ostrava
0 Kudos
Message 3 of 4
(4,749 Views)

Hello,

I got the same message from the compiler, but in my case it causes enumeration functions index array.
If this function will restore constants, the code works ... will compile ...

 

Where is bug?

 

Thanks.

RomanZ

0 Kudos
Message 4 of 4
(4,405 Views)