MPISqNodeMonitorConfigInfo

Definition

typedef struct MPISqNodeMonitorConfigInfo{
  MPISqNodeDriveMonitorDataType    type;
  int32_t                             value;
  const char                       *description;
} MPISqNodeMonitorConfigInfo;

Change History: Added in the 03.04.00.

Description

MPISqNodeMonitorConfigInfo is a structure that contains information about the configurable monitor field data. This structure is useful for determining the monitor selection type, its selection value, and a brief text description. The monitor field data is SynqNet drive-specific. Not all drives support monitors.

NOTE: SynqNet RMBs (Remote Motion Blocks) or I/O nodes do not support monitors.

type Monitor field data is selected by an index (MPISqNodeDriveMonitorDataTypeINDEX) or a drive address (MPISqNodeDriveMonitorDataTypeADDRESS).
value Monitor index or drive address to select the monitor field data.
*description A string to describe the monitor field data.

Sample Code

MPISqNodeDriveMonitorInfo monInfo;

returnValue =
mpiSqNodeDriveMonitorInfo(sqNode,
driveIndex,
&monInfo); printf("\nMonitor Configurations:\n");
if(monInfo.configCount) {
for(i = 0; i < monInfo.configCount; i++) {
if(monInfo.configInfo[i].type == MPISqNodeDriveMonitorDataTypeINDEX) {
printf(" Index %d", monInfo.configInfo[i].value);
}
else {
printf("\r\r Drive address 0x%x", monInfo.configInfo[i].value);
}
printf(" %s\n",monInfo.configInfo[i].description);
}
}
else {
printf("Monitors are not Configurable.\n");
}

See Also

MPISqNodeDriveMonitorDataType | MPISqNodeDriveMonitorInfo | mpiSqNodeDriveMonitorInfo | MPISqNodeMonitorValueIndex