HIL ( hardware-in-the-Loop) test for an existing calculator

5 views (last 30 days)
Hello,
We already have an existing calculator ,what we want to do is to improve the testability of this calculator and the algorithms by adding a communication module allowing to stimulate a real time algorithm queue with data coming from the existing MATLAB models and thus allowing the execution of the algorithms in HIL.
On that note, we would like to know if there is any documentation that could help us to accomplish this.
You will find attached a PDF which shows in detail what we want to achieve.
Sincerely,

Answers (1)

Jack
Jack on 30 Mar 2023
Edited: Jack on 30 Mar 2023
Based on your requirements, it sounds like you want to create a communication module that can send data from MATLAB models to a real-time algorithm queue for Hardware-in-the-Loop (HIL) testing. There are several tools and technologies that you can use to accomplish this, depending on your specific needs and preferences. Here are a few options to consider:
  1. Simulink Real-Time Workshop (RTW) and Speedgoat hardware Simulink RTW is a tool that can generate C code from Simulink models, which can then be compiled and run on real-time hardware such as Speedgoat systems. You can use Simulink RTW to generate code for your MATLAB models and send data to the real-time algorithm queue for HIL testing. The Speedgoat systems provide a range of I/O capabilities and can be customized to meet your specific needs.
  2. MATLAB Coder and a real-time operating system (RTOS) MATLAB Coder is a tool that can generate C code from MATLAB code, which can then be compiled and run on a real-time operating system (RTOS) such as Linux RTAI or FreeRTOS. You can use MATLAB Coder to generate C code for your MATLAB models and send data to the real-time algorithm queue for HIL testing. The RTOS provides a real-time environment for running your code and can handle the I/O operations.
  3. MATLAB Data Acquisition Toolbox and National Instruments hardware MATLAB Data Acquisition Toolbox is a tool that provides a set of functions and drivers for acquiring data from sensors and devices. You can use the toolbox to interface with National Instruments hardware and send data to the real-time algorithm queue for HIL testing. The National Instruments hardware provides a range of I/O capabilities and can be customized to meet your specific needs.
  4. MATLAB Instrument Control Toolbox and hardware devices MATLAB Instrument Control Toolbox is a tool that provides a set of functions and drivers for communicating with hardware devices such as oscilloscopes, power supplies, and signal generators. You can use the toolbox to send data from your MATLAB models to the real-time algorithm queue for HIL testing. The hardware devices provide a range of I/O capabilities and can be customized to meet your specific needs.
In addition to these options, there are also third-party tools and technologies available that can help you accomplish your goals. I would recommend consulting with a MATLAB expert or a systems integrator to help you choose the best approach for your specific needs.

Categories

Find more on Real-Time Simulation and Testing in Help Center and File Exchange

Products


Release

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!