Also see
scan.background() (on page 11-313)
Scanning and triggering (on page 5-23)
scan.add()
This function adds channels to the scan list.
Usage
scan.add("channelList")
scan.add("channelList", "dmmConfig")
scan.add("channelList", width)
Details
Use this function to add channels and channel patterns to the present scan list. If the scan list does
not exist, it also creates a scan list. See scan.create() for information about creating a scan list.
Channels and channel patterns added using this command are added to the end of the present list
(appended) in the same order as specified in the channel list. In addition, the added channels are
scanned in the order specified in channelList. Specifying multiple channels adds multiple steps to
the scan.
The configuration of each channel or channel pattern, which is associated with dmm.setconfig()
and dmm.getconfig(), is used unless the optional dmmConfig parameter is specified. Specifying
the dmmConfig parameter temporarily overrides the configuration associated with the channel or
channel pattern. Specifying dmmConfig does not modify the assigned configuration of a channel or
channel pattern.
The scan list of channels (or channel patterns) is not updated if an error occurs during processing of
the function. However, steps that were already added to the scan list are updated even if an error is
detected, because each channel is added as a separate step when you add multiple channels to
channelList.
For digital I/O or totalizer channels, each created scan step instructs the scan to read the selected
channel and then save the value into the specified reading buffer. If you do not specify a reading
buffer, the channel is read but the value is not saved.