Running Simio from Matlab using .NET

2 views (last 30 days)
Esmarie Scholtz
Esmarie Scholtz on 7 Oct 2013
I am trying to run a Simio model from MATLAB for my Master's. I know this can be done because my predecessor did this.
My problem is that she used an ID to get hold of IExperiments and I cannot find the appropriate ID for my case.
NET.addAssembly('C:\Program Files (x86)\Simio\SimioDLL.dll'); simproj = SimioAPI.SimioProjectFactory.LoadProject('C:\Users\bloodsc.spfx'); %load simio IProject xp = ToArray(simproj.xnafFlwJhE);%expose array of IExperiments in Simio
She can then Reset(xp(1)) and Run(xp(1)).
Can you please tell me how to find the ID for the experiments object?
Or, alternatively, how to call the experiments object from MATLAB so that it can be Reset() and Run()?

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!