Real-time control system with NI USB board?
13 views (last 30 days)
Show older comments
Romuald Kuras
on 7 Apr 2023
Commented: Romuald Kuras
on 8 Apr 2023
Hello!
I have a question related to Matlab and Simulink. I need to create a real time control system. I have a NI-USB-6212 board with BNC connectors and the measuring system works (e.g. when I want to collect data from sensor).
I'm wondering how to make a real-time system. I wanted to try to do it in Simulink and use another computer as the target computer. But I found an information that since 2021 Simulink supports only speedgoat target machines. To be honest - I have financial limits and I would love to use a speedgoat target machine, but I need to find a cheaper solution.
Will it be possible using this NI card I have? For example using older MATLAB version?
The second solution that comes to my mind is to make this control system on a microcontroller, e.g. STM32. In this way I would need to create program in C/C++.
And a third option that could potentially work is to use LabVIEW, but I haven't figured it out yet. I have never worked in LabVIEW.
I must admit that I would prefer to do this control system in MATLAB/Simulink, because I have been working in this environment for several years and I just know it.
Thanks in advance for help.
0 Comments
Accepted Answer
Diego Kuratli
on 7 Apr 2023
The NI-USB-6212 is supported by the Data Acquisiton Toolbox and the NI-DAQmx support package:
It won't be hard real-time, but you can use the Simulink Pacer.
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!