Simulink Matlab Function DAQ Pulse Generation Instance Class

조회 수: 7 (최근 30일)
Laura
Laura 2022년 10월 10일
댓글: Laura 2022년 10월 11일
  댓글 수: 5
Mario Malic
Mario Malic 2022년 10월 11일
The InitialDelay property does not exist for your output channel ch. Here is a function that can show you what properties are available for your channel in the table.
DisplayProperties(ch);
function objectTable = DisplayProperties(object)
% Get fields, their values and put them in UITable
fields = fieldnames(object);
propVals = cell(length(fields), 1);
for ii = 1:length(fields)
propVals{ii,1} = object.(fields{ii,1});
end
objectTable = table(fields, propVals);
uiFig = uifigure();
uitable(uiFig, "Data", objectTable);
end
Laura
Laura 2022년 10월 11일
Great! Thank you Mario, I was looking for that type of function to check the available properties.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Arduino Hardware에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by