Controlling ActiveX from real-time simulink model
Afficher commentaires plus anciens
Hello!
So I am trying to do something a little strange...
For a test my company needs to do, we want to do a hardware loop test to validate that our simulink model and sensor will respond as expected. We using a piezo controller that can be sent voltages through an activex session. I've written a function that takes the handle from the activexcontrol and a variable and sets the voltage. I want to have the simulink model run this function with the handle and the specified voltage at every step in the simulation.
The problem is that the function needs a handle, and I don't know how to get a handle into the simulink workspace, or the simulink data into the matlab workspace to run the function and send the data to the activex controls to set the voltage in the device. Is there any way to do this in real time while the simulation is running?
Thank you
1 commentaire
Tim Barrett
le 3 Mar 2019
Réponses (0)
Catégories
En savoir plus sur ActiveX dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!