How to load the simulink model(.slx) into dSpace Configuration desk by only using the matlab command(API Interface) ?
Show older comments
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.
Accepted Answer
More Answers (0)
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!