Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

This article is a Private article. Only a writer and users who know the URL can access it.
Please change open range to public in publish setting if you want to share this article with other users.

Simulink ライブラリ carterlib のインストール

0
Posted at

 Simulink ライブラリ

をインストールします.このライブラリには,

  • I2C デバイス AS5601:アブソリュート型 12 bit エンコーダ
  • モータドライバ(DRV8833 など)

を簡便に使用するための Simulink ブロックが含まれます.

image.png

 Download ZIP を選択すると,

  • Carterlib-main.zip

がダウンロードされるので,解凍(展開)してできるフォルダ Carterlib-main(のなかのフォルダ Carterlib-main)を

  • C:\Users\ユーザ名\Documents\MATLAB

にコピペしてください.ファイル構成は

  • MATLAB
    • Carterlib-main
      • slblocks.m
      • README.md
      • carterlib.slx
      • LICENSE.txt

となります.そして,M ファイル

startup.m
% startup.m

addpath('C:\Users\ユーザ名\Documents\MATLAB\Carterlib-main')

をフォルダ

  • $\tt\mbox{C:\Users\ユーザ名\Documents\MATLAB}$

に保存してください.つまり,

  • $\tt\mbox{C:\Users\ユーザ名\Documents\MATLAB\startup.m}$

としてください.なお,roller485lib も使用しているときは,M ファイル

startup.m
% startup.m

addpath('C:\Users\ユーザ名\Documents\MATLAB\Roller485lib-main')
addpath('C:\Users\ユーザ名\Documents\MATLAB\Carterlib-main')

のように,併記してください.そして,MATLAB を再起動すると,Simulink ライブラリ roller485lib が使用できるようになります.コマンドウィンドウで

>> carterlib

と入力すると,Simulink ライブラリ roller485lib が開きます.

image.png

0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?