removeclock

Remove clock from device interface

Description

example

removeclock(d,idx) removes the specified clock from the DataAcquisition interface. If the DataAcquisition has clocks with indices higher than the clock being removed, they are renumbered to fill the empty gaps left by the removal.

Examples

collapse all

Remove a clock from a DataAcquisition interface.

d = daq("ni");
% :
Cidx = addclock(d,"ScanClock","Dev1/PFI0","Dev2/PFI0");
% :
removeclock(d,Cidx);

Input Arguments

collapse all

DataAcquisition interface, specified as a DataAcquisition object, created using the daq function.

Example: d = daq()

Clock index, specified as a numeric scalar or vector. Removing a clock shifts down the indices of remaining higher clocks.

Example: 1

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64

See Also

Functions

Introduced in R2020a