04-24-2019 08:42 AM
Hi,
I have a Simulink model (robotic control algorithm) that is currently running with a fixed time step. Now I want to connect it to the force measured signals that are being acquired with a NI 9237 module in Labview to control the system in "real-time".
- I have seen that one option is to use the Model Interface Tool. However, I am using several functions from the Robotics Toolbox from Matlab inside my Simulink blocks so I am not sure if they will be compatible for a proper generation of the .dll file.
- Another option that I am contemplating is, to transform the Simulink model into Matlab code and import it into the MathScript available in Labview which will allow me to interact with the measured signals. Probably, this will generate the same issue as before because as said, I am using functions from a Toolbox.
- One more option could be to generate C code from Simulink and to import it into Labview.
Apparently, there could be a lot of solutions to solve this problem but I am looking for the "Best Practice", something that has already been tested and worked.
My Labview version is 2014 and my Matlab version is 2018b.
Thanks in advance for your help!
04-24-2019 10:05 AM
I don't know if this is appropriate, but LabVIEW has a Control and Simulation Module (I've never used it). Might this be an appropriate "substitute" for Simulink, avoiding the problems of integrating LabVIEW and Matlab?
Bob Schor
04-24-2019 10:36 AM
It could be a feasible solution if the Simulink model only contains the control logic but it also includes several functions from the Robotics Toolbox (Matlab) that I am using to do some kinematics calculation of a robot model that I have already defined in Matlab.
Thanks!