How to load the simulink model(.slx) into dSpace Configuration desk by only using the matlab command(API Interface) ?
Mostrar comentarios más antiguos
I want to do the dSpace Configuration Desk Automation by using the Matlab .m script.
For this I have opened the Configuration Desk application using Matlab command. But, now I want to add one Simulink model i.e. 'Model.slx' into the application i.e. 'Demo'.
For this I need to use the method Configure() as given command.
CFD.ActCFD.ActiveApplication.Components.ModelTopology.Configure('AddModel'...)
For above command I have the information which is as below,

Here as a second command, I need to give the parameter Array into Configure('AddModel',Parameter_Array)
I have made the parameter array as below,
Array_Model = ["C:\Projects\Project1\Model.slx" "false" " " "true"]
and when I am giving the command as below, I am getting the respective error.
CFD.ActCFD.ActiveApplication.Components.ModelTopology.Configure('AddModel',Array_Model)
Error is as below,
Warning: ActiveX - invalid argument type or value
Error using
Interface.fb8245f9bcefcf70a40e486497c2b0f0426c2b60_ICaComponent/Configure
Invoke Error, Dispatch Exception:
Source: ConfigurationDeskAutomationCore
Description: AutomationError
Import file failed for ModelTopology: Wrong file path
; HResult;
So, if anyone has any Idea about this Please help me.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!