11-17-2011 10:15 AM
Hi,
I would like to know if it possible to perform an hardware in the loop simulation with a FPGA.
Basically, I have got a dynamical system modeled with the "control design and simulation" toolkit on a host PC and a controller designed and implemented on a NI FPGA (NI PXIe-5641).
Is there a way to execute the controller on the FPGA and the simulated system on a host PC?
Thank you
11-18-2011 05:34 AM
Hello tommpogg,
You have to options depending on the hardware you want to use:
If you want to execute the FPGA code in hardware, just implement the communication with your device, considering the Control Design Loop as a regular While Loop.
However, a better option is to execute the FPGA code without hardware, saving all time you need to spend compiling code. This link has information about that option:
https://decibel.ni.com/content/docs/DOC-19217
After reading this information, do you have any other doubt or question?
11-22-2011 02:15 AM
Thank you for the reply.
I have one more doubt about sampling time: the FPGA samples the input signals at 40MSamples/s, will the Host be able to communicate with the FPGA (retrive and send data) and process the simulation loop at such a speed?