cbSetConfigString()

Sets the configuration or device information as a null-terminated string.

Function Prototype

C/C++:

int cbSetConfigString(int InfoType, int BoardNum, int DevNum, int ConfigItem, char *ConfigVal, int* maxConfigLen)

Visual Basic:

Function cbSetConfigString(ByVal InfoType, ByVal BoardNum&, ByVal DevNum&, ByVal ConfigItem&, ByVal ConfigVal$, ByRef maxConfigLen&) As Long

Arguments

InfoType

The configuration information for each board is grouped into different categories. This argument specifies which category you want. Always set this argument to BOARDINFO.

BoardNum

The number associated with the board when it was installed with InstaCal or created with cbCreateDaqDevice(). BoardNum may be 0 to 99.

DevNum

The location in the device memory (specified by ConfigItem) at which to start writing.

ConfigItem

The type of information (or memory area) to write to the device. Set it to one of the constants listed in the "ConfigItem argument values" section below.

ConfigVal

Pointer to the user-allocated buffer containing the string to copy to the device's memory.

maxConfigLen

Pointer to the value specifying the number of bytes to be written to the device from ConfigVal.

Returns

ConfigItem argument values

ConfigItemDescription
BIUSERDEVIDWrites a user-configured string of up to maxConfigLen character/bytes to an Ethernet, Bluetooth, or USB device.

DevNum is ignored.