필터 지우기
필터 지우기

Session Based Multiple DAQ Triggering

조회 수: 1 (최근 30일)
Fernando
Fernando 2011년 11월 10일
Hello, I am using the latest 64bit matlab version (2011b) to send and receive a signal on multiple data acquisition devices (4 x NI 6259). I am having some trouble using the session based interface to trigger multiple data acquisition devices using a digital pulse. Does anyone know of any tutorials or examples i can use? Any information or pointer in the right direction would be of great help. Thanks,
Fernando

답변 (1개)

Manisha
Manisha 2011년 12월 15일
Hi Fernando,
DAQ R2012a prerelease has added new functions that you can use to start your acquisition using an external trigger (digital pulse). If you have a valid licence you can download R2012a here.
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 start trigger connection from an external source( i.e. your digital pulse) to the PFI0 terminal on Dev4.
s.addTriggerConnection('External','Dev4/PFI0','StartTrigger');
Your acquisition will now start when the device receives a digital rising edge at PFI0 terminal
s.startForeground();
Hope that helps,
Manisha

카테고리

Help CenterFile Exchange에서 Simultaneous and Synchronized Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by