필터 지우기
필터 지우기

I want to be able to retreive data from an actxserver API

조회 수: 1 (최근 30일)
Tim Moriarty
Tim Moriarty 2015년 11월 20일
답변: Robert Snoeberger 2015년 11월 20일
h = actxserver('progid.Name.API.Extractor');
%Below is the data stream identifier within the API
%Go and get all the data for the passed ID
id = 12345
c = APIGetExtract(h, id);
%The below error is generated with this code
Undefined function 'APIGetExtract' for input arguments of type 'COM.progid_Name_API_Extractor'.
I would like to know the correct code to be able to retreive the data of id = 12345 from h above. The API is being recognized however I do not know the correct function to retrieve the specific data from the API.

채택된 답변

Robert Snoeberger
Robert Snoeberger 2015년 11월 20일
It looks like APIGetExtract is not the correct name of the method. You should see the documentation about getting method information for a COM object [1].

추가 답변 (0개)

카테고리

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