Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Multiple-Chassis Synchronization

You can synchronize multiple CompactDAQ chassis in a session using one chassis to provide clocking and triggering for all chassis in the session. Clock and trigger sources are attached to terminals on the chassis, itself. All modules on the chassis as well as other connected devices, are synchronized using these signals.

Acquire Synchronized Data Using CompactDAQ Devices

This example shows how to acquire voltage data from two devices, each on a separate CompactDAQ chassis, using a shared trigger and clock to synchronize operations within your session.

Create a data acquisition session and add channels. Add one voltage input channel each from the two NI 9201 devices with IDs 'cDAQ1Mod1' and 'cDAQ2Mod1'.

s = daq.createSession('ni');
addAnalogInputChannel(s,'cDAQ1Mod1', 0,'Voltage');
addAnalogInputChannel(s,'cDAQ2Mod1', 0,'Voltage');

Choose terminal 'PFI0' on 'cDAQ1' as your trigger source and connect it to terminal 'PFI0' on 'cDAQ2'. Make sure the wiring on the hardware runs between these two terminals.

addTriggerConnection(s,'cDAQ1/PFI0','cDAQ2/PFI0','StartTrigger');

Note that you are using the chassis and terminal pair here, not device and terminal pair.

Choose terminal 'PFI1' on 'cDAQ1' as your clock source and connect it to terminal 'PFI1' on 'cDAQ2'. Make sure the wiring on the hardware runs between these terminals.

addClockConnection(s,'cDAQ1/PFI1','cDAQ2/PFI1','ScanClock');

Acquire data and store it in dataIn.

dataIn = startForeground(s); 
Was this topic helpful?