addDigitalChannel
(Not recommended) Add digital channel
This session
object function is not recommended. Use DataAcquisition
object functions instead. See Version History.
Syntax
Description
addDigitalChannel(
adds one or more digital channels to the session s
,deviceID
,channelID
,measurementType
)s
, on the device
represented by deviceID
, with the specified port and single-line
combination and channel measurement type.
Tips
Before adding digital channels, create a session using
daq.createSession
.Change the
Direction
property value of bidirectional channels before you read or write digital data.To input and output decimal or hexadecimal values, use these conversion functions:
creates and displays the digital channels assigned to ch
= addDigitalChannel(s
,deviceID
,channelID
,measurementType
)ch
.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2012bSee Also
Functions
removeChannel
|startForeground
|startBackground
|inputSingleScan
|outputSingleScan
|daq.createSession
|decimalToBinaryVector
|binaryVectorToDecimal
|hexToBinaryVector
|binaryVectorToHex