Real-time control system with NI USB board?

12 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

Diego Kuratli
Diego Kuratli il 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.
  1 Commento
Romuald Kuras
Romuald Kuras il 8 Apr 2023
Thank you very much. I had never heard of the Simulink Pacer before. I will try it.

Accedi per commentare.

Più risposte (0)

Prodotti


Release

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by