From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA overmapped error: optimization problem

Hi, 

 

I've been trying to implement a PID loop on a labview FPGA board, and my VI won't compile because it's overmapped (see the link below). I'm trying to trigger the PID loop on an external trigger and read the setpoint from the host VI. It seems like the problem is having a control for the gains on the front panel (since it compiles if I replace the control with a constant), but I tried implementing a FIFO for the PID values and was getting the same error. I'm not sure what I can do to optimize my code. Would someone be able to take a look at the attached code? 

 

Thanks!

 

 

http://digital.ni.com/public.nsf/allkb/060BA89FE3A0119E48256E850048FFFE?OpenDocument

 

0 Kudos
Message 1 of 3
(2,195 Views)

Hi atirone,

 

the main problem here is NI's decision to use SGL values for the PID implementation.

 

Create your own PID function using FXP values. This should free a lot FPGA resources!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,194 Views)

What GerdW said.

 

This white paper by Xilinx shows that it's usually a 5x to 10x improvement moving to FXP.

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