How to use actxserver create serveral independent COM Object?

조회 수: 1 (최근 30일)
圣浪
圣浪 2022년 12월 6일
답변: Mario Malic 2022년 12월 6일
oMaxwell = actxserver('Ansoft.ElectronicsDesktop')
eg. I want to run this code twice to create two independent application desktop, so that I can open two different Projects.

답변 (1개)

Mario Malic
Mario Malic 2022년 12월 6일
Try to save both of the application handles.
oMaxwell1 = actxserver('Ansoft.ElectronicsDesktop');
oMaxwell2 = actxserver('Ansoft.ElectronicsDesktop');
See if you get both instances visible:
oMaxwell1.Visible = true;
oMaxwell2.Visible = true;

카테고리

Help CenterFile Exchange에서 Use COM Objects in MATLAB에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by