12 cdaqmxitemconfig::readitem, Cdaqmxitemconfig::toitemname – Yokogawa PC-Based MX100 User Manual
Page 657

12-93
IM MX190-01E
MX100 for Exteded API
12
CDAQMXItemConfig::readItem
Syntax
int readItem(int itemNo,char * strItem, int lenItem);
Parameters
itemNo
Specify the setup item.
strItem
Specify the field where the string is to be stored.
lenItem
Specify the byte size of the field where the string is to be stored.
Description
Gets the contents of the specified setup item as a string.
Stores the string in the specified storage destination.
The strings that can be stored are, in general, ASCII strings.
Returns 0 if it does not exist.
Return value
Returns the length of the actual string.
Reference
getClassMXBalanceData getClassMXChConfig getClassMXNetInfo
getClassMXOutputData getClassMXStatus getClassMXSysInfo
CDAQMXItemConfig::toItemName
Syntax
static int toItemName(int itemNo, char * strItem, int
lenItem);
Parameters
itemNo
Specify the setup item.
strItem
Specify the field where the string is to be stored.
lenItem
Specify the byte size of the field where the string is to be stored.
Description
Gets the setup item name of the specified setup item as a string.
Stores the string in the specified storage destination.
The string stored to the field includes the terminator. The return value does not
include the terminator.
Stores an empty string and returns 0 if it does not exist.
The strings that can be stored are, in general, ASCII strings.
Return value
Returns the length of the string.
12.4 Details of the MX100 Class