Configuring with the CPIAddModule() instruction

To configure a Spectrum within a program, use the CPIAddModule() instruction. A separate instruction is used for each device. The CPIAddModule() instruction overrides settings entered by other means, such as Device Configuration Utility or the CPIStatus table.

 
CPIAddModule(CDMType, CDMSerialNo, CDMDeviceName, CPIAddress)
 

The data logger creates an internal list of CPI modules from each CPIAddModule() instruction. Modules added to the CPI bus will be checked against this list and reconfigured accordingly.

NOTE:

The CPIAddModule() instruction overrides changes made through SURVEYOR, Device Configuration Utility or the CPIStatus table.