Specify start trigger source terminal
StartTriggerTerminal property specifies
a synchronization trigger connection to start the NI-XNET channel
on the connected source terminal.
To configure an NI-XNET CAN module (such as NI 9862) to start
acquisition on an external signal triggering event provided at an
external chassis terminal, set the CAN channel
to the appropriate terminal name. Form the property value character
vector by combining the chassis name from the NI MAX utility and the
trigger terminal name; for example,
NI-XNET CAN channel
Configure a NI-XNET CAN module start trigger on terminal
ch1 = canChannel('NI','CAN1') ch1.StartTriggerTerminal = '/cDAQ3/PFI0' start(ch1) % Acquisition begins on hardware trigger
With a hardware triggering configuration, the
represents the absolute time the CAN channel acquisition was triggered.
Timestamp of the received CAN messages is
relative to the trigger moment.
ch1.InitialTimestamp messages = receive(ch1,Inf); messages(1).Timestamp