I'm trying to optimize a optical with CST Studio Microwave and in order to do this I would like to use a GA and topological optimisation. Both are iterative processes and Matlab has an awesome GA library, so I would like to set down my algorithms in Matlab and let the simulation running in CST (which has a VBA macro editor included), but I can't figure it out how to let Matlab command CST.
There is a well done library (CSTResultReader.dll) to let MatLab extract the files from the simulation once the simulation has already done but I will need to run some thousands of simulation so I would like to automate the process.
What I couldn't figure it out is how run a macro in CST from Matlab.
My intent is building a structure in CST (I did a macro in CST for that), run the simulation in CST, extract the data to Matlab and process it in Matlab. Everything possibly by passing some variables (mainly string) from Matlab to CST.
Can someone help? I've seen the command "invoke" but I couldn't understand which kind of arguments it needs.
Thanks a lot!
-ste-
P.s. This is my first post... Hi to everybody!
"Stefano " <stev...@berkeley.edu> wrote in message
news:ipt2el$dcv$1...@fred.mathworks.com...
You'd probably want to contact the makers of CST to ask them about how to
control CST from other languages. If it has a COM interface then you should
be able to control it using the COM support in MATLAB:
http://www.mathworks.com/help/techdoc/matlab_external/brd4at8.html
If not they may have other suggestions on how to do this. If they're not
familiar with MATLAB, point them to this documentation page which show some
of the main techniques that MATLAB can use to interface with other
applications.
http://www.mathworks.com/help/techdoc/matlab_external/bp_kqh7.html
> P.s. This is my first post... Hi to everybody!
Welcome to CSSM.
--
Steve Lord
sl...@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com