Effacer les filtres
Effacer les filtres

Controlling an instrument in real time

2 vues (au cours des 30 derniers jours)
Marko Severin
Marko Severin le 9 Déc 2016
Réponse apportée : X W le 22 Juil 2017
Hi guys, I would like to controll a fast power supply from simulink in real time. The power supply is connected via TCP/IP and uses SCPI commands for communication. Right now I'm using the "To Instrument" and "Querry Instruments" blocks from Simulink. I'm feeding the "To Instrument" block with a sine wave block (just for testing) and things seem to be working. I only need help with timing.
I would like to send the power supply commands exactly 10 (or 20) times per second. How do I achieve that? Any what if I want to send commands 100.000 times per seconds? How will I know that simulink isn't catching up with real time?
Any help on this topic is more than welcomed, Regards, Marko

Réponses (1)

X W
X W le 22 Juil 2017
Hi Marko, have you figured out how to do what you wanted in your question? I am needing the same thing and have searched everywhere. Many thanks for any help, code or tips.

Catégories

En savoir plus sur Direct Interface Communication in Simulink dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by