Why do I receive "??? Error: Catastrophic failure" when I try to drive SCAPS SAMLight using the ACTXSERVER function within MATLAB 7.2 (R2006a)?

6 Ansichten (letzte 30 Tage)
I want to drive the SCAPS SAMLight software from MATLAB. This laser scanner interface software is described on the SCAPS website listed below.
To install SAMLight software demo on my computer I follow these steps:
1. Download the executable:
2. Download the project in C :
3. Unzip and install the executable.
When I excecute the following code:
a = actxserver('SCAPS.ScSamlightClientCtrl');
liste = a.interfaces;
c = a.invoke('_DSamlight_client_ctrl_ocx');
c.get
c.invoke
state_of_sam = c.ScIsRunning()
I get the following result:
ERROR: ??? Error: Catastrophic failure

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 1 Jul. 2022
Bearbeitet: MathWorks Support Team am 23 Jun. 2021
Since the SCAPS.ScSamlightClientCtrl is an ActiveX control and not an ActiveX server,
you can access this program using ACTXCONTROL:
a = actxcontrol('SCAPS.ScSamlightClientCtrl');
liste = a.interfaces;
c = a.invoke('_DSamlight_client_ctrl_ocx');
c.get
c.invoke
state_of_sam = c.ScIsRunning()
For more information, refer to the SCAPS documentation.

Weitere Antworten (0)

Kategorien

Mehr zu Use COM Objects in MATLAB finden Sie in Help Center und File Exchange

Produkte


Version

R2006a

Community Treasure Hunt

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

Start Hunting!

Translated by