RTW-EC Tutorial (Japanese) demo files

by

 

"RTW-EC Tutorial (Japanese)" Demo files. 「RTW-ECを用いた組み込み制御プログラム開発 チュートリアル」の例題ファイルです。

my_dataobject.m
% mptIuWFNg`t@C

% ͐MFerror
error = mpt.Signal;
error.DataType = 'single';							% f[^^CvFsingle
error.RTWInfo.StorageClass = 'ImportedExtern';		% Xg[WNXFO[oQ

% o͐MFvoltage
voltage = mpt.Signal;
voltage.DataType = 'single';						% f[^^CvFsingle
voltage.RTWInfo.CustomStorageClass = 'Global';		% Xg[WNXFO[o`

% ϕFUnit Delay
sum = mpt.Signal;
sum.DataType = 'single';							% f[^^CvFsingle
sum.RTWInfo.CustomStorageClass = 'Global';			% Xg[WNXFO[o`

% FUnit Delay1
diff = mpt.Signal;
diff.DataType = 'single';							% f[^^CvFsingle
diff.RTWInfo.CustomStorageClass = 'Global';			% Xg[WNXFO[o`

% QCFKp
Kp = mpt.Parameter;
Kp.Value = 1.53;									% lF1.53
Kp.DataType = 'single';								% f[^^CvFsingle
Kp.RTWInfo.CustomStorageClass = 'Struct';			% Xg[WNXFO[o\̒`
Kp.RTWInfo.CustomAttributes.StructName = 'pid';		% \̖Fpid

% ϕQCFKi
Ki = mpt.Parameter;
Ki.Value = 0.387;									% lF0.387
Ki.DataType = 'single';								% f[^^CvFsingle
Ki.RTWInfo.CustomStorageClass = 'Struct';			% Xg[WNXFO[o\̒`
Ki.RTWInfo.CustomAttributes.StructName = 'pid';		% \̖Fpid

% QCFKd
Kd = mpt.Parameter;
Kd.Value = 8.1e-3;									% lF8.1e-3
Kd.DataType = 'single';								% f[^^CvFsingle
Kd.RTWInfo.CustomStorageClass = 'Struct';			% Xg[WNXFO[o\̒`
Kd.RTWInfo.CustomAttributes.StructName = 'pid';		% \̖Fpid

Contact us