How to convert a legacy based interface code to a session based interface?
8 ビュー (過去 30 日間)
古いコメントを表示
Aiswarya Balakrishnan
2017 年 2 月 11 日
編集済み: Sanket Karnik
2017 年 3 月 20 日
function sm() object=daq.createSession('ni'); spec=addDigitalChannel(object,'Dev1','Port1/Line0:3','OutputOnly'); putvalue(spec,0); pattern=[5 6 10 9]; for i=1:25 putvalue(spec,pattern(1)); pause(0.3); putvalue(spec,pattern(2)); pause(0.3); putvalue(spec,pattern(3)); pause(0.3); putvalue(spec,pattern(4)); pause(0.3); end; putvalue(spec,0);
This is a code to run a stepper motor using MATLAB 2013. I need a MATLAB 2015 code for the same.
0 件のコメント
採用された回答
Sanket Karnik
2017 年 2 月 14 日
編集済み: Sanket Karnik
2017 年 3 月 20 日
I understand that you have code written in MATLAB using legacy interface provided by MATLAB Data Acquisition Toolbox and you want to convert that code to session based interface. Please refer the following link to see how to transition your code from legacy interface to session based interface: https://www.mathworks.com/help/daq/transition-your-code-to-session-based-interface.html
You can also refer to these release notes which describe the functions which were removed from legacy interface and their substitutes(if any) in session based interface: https://www.mathworks.com/help/daq/release-notes.html?rntext=putvalue&startrelease=R2015b&endrelease=R2016a&groupby=release&sortby=descending
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Motor Drives についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!