data aquisition toolbox session based interface -- external clocking of analog input possible?

조회 수: 1 (최근 30일)
apparently not, but maybe I'm missing something.
  댓글 수: 1
Eric Keller
Eric Keller 2011년 10월 31일
it would be really nice if the following warning wasn't in every "legacy" help file: "Note You cannot use the legacy interface on 64–bit MATLAB. Use the session-based interface to acquire and generate data."
This pretty much precludes using your favorite search engine to find help on the session based interface

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

답변 (1개)

Manisha
Manisha 2011년 12월 15일
Hi Eric,
Data Acquisition Toolbox MATLAB R2012a prerelease has added new function for triggers and clocks . If you have a valid license you can download the prerelease here
You would need to use
addClockConnection
function to provide your device with an external clock.
You can modify the below code to suit your requirements:
s = daq.createSession('ni');
s.addAnalogInputChannel('Dev4', 0, 'Voltage');
The below command will add a external scan clock connection from an external source to the PFI0 terminal on Dev4. Make sure you connect your external clock to PFI0 physically
s.addClockConnection('External','Dev4/PFI0','ScanClock');
Your acquisition will now use your external clock
s.startForeground();
Hope that helps,
Manisha

카테고리

Help CenterFile Exchange에서 Data Acquisition Toolbox Supported Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by