Hi, recently our lab updated server environment to MATLAB 2024a and CST Studio Suite 2024. Previously I can use the following MATLAB code to invoke CST Studio Suite in MATLAB by the following code, but now it comes to an error directly after opening CST Studio Suite window.
cst = actxserver('CSTStudio.application');
mws = invoke(cst, 'NewMWS');
invoke(mws, 'FileNew');
currentpath=pwd;
filename='\\Patch_Antenna.cst';
fullname=[currentpath filename];
invoke(mws, 'SaveAs', fullname, 'True');
invoke(mws, 'DeleteResults');After debugging, the code runs correctly up to the second line. However, it comes to the error while running the third line:
invoke(mws, 'FileNew');
Any other invoke function will comes to the same error as well. But the first invoke is successfully processed. The CST studio suite window is opened, and a new project is created.
mws = invoke(cst, 'NewMWS');
I have checked that there is no special character in MATLAB or CST path, and this problem repeats in multiple different servers with same setting (MATLAB 2024a + CST Studio Suite 2024). I am wondering whether it is MATLAB's problem or CST's problem, hope you could give answer. Thanks.
