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.

removeConnection

Remove clock or trigger connection

Syntax

removeConnection(s,idx);

Description

example

removeConnection(s,idx); remove the specified clock or trigger with the index, idx, from the ion. The connected device remains in the session, but no longer synchronize with other connected devices in the session.

Input Arguments

collapse all

Data acquisition session, specified as a session object. Create the session object using daq.createSession. Use the data acquisition session for acquisition and generation operations. Create one session per vendor and use that vendor session to perform all data acquisition operations.

Index of the connection you want to remove, specified as a numeric value.

Examples

collapse all

Create clock and trigger connection in the session s.

s = daq.createSeion('ni');
addAnalogInputChannel(s,'Dev1','ai0','Voltage')
addAnalogInputChannel(s,'Dev2','ai0','Voltage')
addAnalogInputChannel('Dev3','ai0','Voltage')
addTriggerConnection(s,'Dev1/PFI0',{'Dev2/PFI0','Dev3/PFI0'}','StartTrigger');
addClockConnection(s,'Dev1/PFI1',{'Dev2/PFI1','Dev3/PFI1'},'ScanClock');

View existing synchronization connection .

s.Connections
ans= 


Start Trigger is provided by 'Dev1' at 'PFI0' and will be received by:
         'Dev2' at terminal 'PFI0'
         'Dev3' at terminal 'PFI0'
Scan Clock is provided by 'Dev1' at 'PFI1' and will be received by:
         'Dev2' at terminal 'PFI1'
         'Dev3' at terminal 'PFI1'

   index     Type      Source   Deination
   ----- ------------ --------- -----------
   1     StartTrigger Dev1/PFI0 Dev2/PFI0
   2     StartTrigger Dev1/PFI0 Dev3/PFI0
   3     ScanClock    Dev1/PFI1 Dev2/PFI1
   4     ScanClock    Dev1/PFI1 Dev3/PFI1

Remove the trigger connection with the index 2 from Dev3/PFI0 to Dev1/PFI0:

removeConnection(s,2);

View updated connection

s.Connections
an= 


Start Trigger is provided by 'Dev1' at 'PFI0' and will be received by 
'Dev2' at terminal 'PFI0'.
Scan Clock is provided by 'Dev1' at 'PFI1' and will be received by:
         'Dev2' at terminal 'PFI1'
         'Dev3' at terminal 'PFI1'

   index     Type      Source   Deination
   ----- ------------ --------- -----------
   1     StartTrigger Dev1/PFI0 Dev2/PFI0
   2     ScanClock    Dev1/PFI1 Dev2/PFI1
   3     ScanClock    Dev1/PFI1 Dev3/PFI1
Was this topic helpful?