Simulink Matlab Function DAQ Pulse Generation Instance Class
Ältere Kommentare anzeigen

5 Kommentare
Mario Malic
am 10 Okt. 2022
Hey,
You need to set the frequency of the channel, not the device.
ch.Frequency = 5e-5;
Laura
am 11 Okt. 2022
Mario Malic
am 11 Okt. 2022
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
am 11 Okt. 2022
Antworten (0)
Kategorien
Mehr zu Arduino Hardware finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
