ProcUnit::GetSystemData

Gets system data

int GetSystemData(
   TCHAR        *dataIdent0,
   TCHAR        *dataIdent1,
   ANYTYPE      *data
);

Parameters
*dataIdent0
Obtained data type information 0
*dataIdent1
Obtained data type information 1
*data
Retrieved information

Return Value
Returns 0 when the system data is successfully obtained.
Otherwise returns a non-zero value.

Description
Gets the value of the system data of the specified setting type number.
You can specify the following values for the setting type number.
Data identification name 0
Table: ProcUnit::GetSystemData - Data identification name 0
CameraControl
Camera delay setting
UdpNormal
Communication - Ethernet setting
SerialNormal
Communication - Serial setting
ParallelIO
Communication - Parallel setting
Configuration
Language setting/Startup setting
Logging
Logging setting
Data identification name 1
Table: ProcUnit::GetSystemData - Data identification name 1
CameraControl (Camera delay setting)
cameraDelay0
STEP-camera 0 delay
cameraDelay1
STEP-camera 1 delay
cameraDelay2
STEP-camera 2 delay
cameraDelay3
STEP-camera 3 delay
UdpNormal (Communication - Ethernet setting)
portNo
Port number
enableDhcp
Get an IP address automatically (ON/OFF)
ipAddress
IP Address
subnetMask
Subnet mask
defaultGateway
Default gateway
SerialNormal (Communication - Serial setting)
rsMode
Communication type (RS-232C/RS-422)
baudRate
Baud rate (2400/4800/9600/19200/38400/576000/115200)
byteSize
Data length (7/8)
parity
Parity (none/odd/even)
stopBits
Stop bit (1/2)
softFlow
Flow control (none/Xon/Xoff)
delimiter
Delimiter (CR/LF/CR+LF)
timeout
Timeout
ParallelIO (Communication - Parallel setting)
polarity
Output polarity
handshake
Output control
cycleTime
Output cycle
riseTime
Startup time
outputTime
Time to output
timeout
Timeout
delayCount
Delay count
orOutMode
OR one-shot
Configuration (Language setting/Startup setting)
language
Language
jpn: Japanese mode
eng: English mode
InitialSceneNo
Startup scene number
initialSceneGroupNo
Startup scene group number
Logging (Logging setting)
imageLogging
Image logging
0: Logging not executed
1: Logging only at NG
2: Logging all
dataLogging
Data Logging
0: Logging not executed
1: Logging only at NG
2: Logging all
imageLoggingDirectory
Destination folder to save image logging
dataLoggingDirectory
Destination folder to save data logging

Example
    int Sample::MeasureProc(ProcUnit *ptrProcUnit)
    {
        ANYTYPE data;

        // Get the destination directory for logging

        ptrProcUnit->GetSystemData(_T("Logging"), _T("dataLoggingDirectory"), &data);
    }