MATLAB: Failed to initialize the RTIOStream library during FPGA-in-the-loop simulation

fpga in the loopHDL CoderHDL Verifierrtiostream

Hello, I tried to use HDL coder and HDL verifier to connect the matlab with my FPGA. I did the FPGA-in-the-loop simulation as the tutorial PID Controller, but during simulation, it prompted 'Failed to initialize the RTIOStream library'. How can I solve this problem?
I use JTAG to connect my FPGA board. I pass the FPGA Turnkey test and I am able to load my Verilog/VHDL code to the board and successfully run the program. However, it does not work when trying co-simulation with Simulink and FPGA.
Is the problem because that I only use JTAG for connection? Do I need to use Ethernet for connection as well?
Hope anyone can help me. Thanks a lot!

Best Answer

When you test the board, you need to check "include FPGA Board in the test" checkbox to do a full test. Otherwise, it will not try to run the simulation.
When you get error message "Failed to initialize the RTIOStream library" in simulation, can you tell if there's error message printed at the MATLAB console at the same time? Sometimes the error message is printed there.
It would be helpful if you can provide more information regarding your FPGA board.