log Class

Function

C++

int GetModuleId();

Python

def GetModuleId()

Returns

Type

unsigned int

Value

ID of the module

Remarks

このPythonメソッドは予約されています。

Function

C++

WMX3APIFUNC GetInputData(unsigned char* buff, int buffSize, int* dataSize);

Python

def GetInputData(buff, buffSize, dataSize)

Returns

Type

int

Value

error code

Remarks

このPythonメソッドは予約されています。

Function

C++

WMX3APIFUNC SetInputData(int moduleId, unsigned char* data, int dataSize);

Python

def SetInputData(moduleId, data, dataSize)

Returns

Type

int

Value

error code

Remarks

このPythonメソッドは予約されています。

Function

C++

static WMX3APIFUNC ErrorToString(int errCode, char *pString, unsigned int size);

Python

def ErrorToString(errCode)

Returns

Type

string

Value

error string

Remarks

Function

C++

static WMX3APIFUNC ErrorToString(int errCode, wchar_t *pString, unsigned int size);

Python

Returns

Type

Value

Remarks

Function

C++

static WMX3APIFUNC ApiLogToString(unsigned char *pLogData, unsigned int logDataSize, char *pString, unsigned int size);

Python

def ApiLogToString(pLogData, logDataSize)

Returns

Type

string

Value

API log string

Remarks

Function

C++

static WMX3APIFUNC ApiLogToString(unsigned char *pLogData, unsigned int logDataSize, wchar_t *pString, unsigned int size);

Python

Returns

Type

Value

Remarks

Function

C++

static WMX3APIFUNC GetLibVersion(int *pMajorVersion, int *pMinorVersion, int *pRevisionVersion, int *pFixVersion);

Python

def GetLibVersion()

Returns

Type

tuple

Value

  • 0 : int - error code

  • 1 : int - MajorVersion

  • 2 : int - MinorVersion

  • 3 : int - RevisionVersion

  • 4 : int - FixVersion

Remarks

Function

C++

bool IsDeviceValid();

Python

def IsDeviceValid()

Returns

Type

bool

Value

Whether the device is alive

Remarks

Function

C++

WMX3APIFUNC GetVersion(int *pMajorVersion, int *pMinorVersion, int *pRevisionVersion, int *pFixVersion);

Python

def GetVersion()

Returns

Type

tuple

Value

  • 0 : int - error code

  • 1 : int - MajorVersion

  • 2 : int - MinorVersion

  • 3 : int - RevisionVersion

  • 4 : int - FixVersion

Remarks

Function

C++

WMX3APIFUNC StartLog(unsigned int channel);

Python

def StartLog(channel)

Returns

Type

int

Value

error code

Remarks

Function

C++

WMX3APIFUNC StopLog(unsigned int channel);

Python

def StopLog(channel)

Returns

Type

int

Value

error code

Remarks

Function

C++

WMX3APIFUNC ResetLog(unsigned int channel);

Python

def ResetLog(channel)

Returns

Type

int

Value

error code

Remarks

Function

C++

WMX3APIFUNC SetLogHeader(unsigned int channel, char **ppLine, unsigned int numLines);

Python

def SetLogHeader(channel, pLogHeader)

Returns

Type

int

Value

error code

Remarks

Function

C++

WMX3APIFUNC SetLog(unsigned int channel, unsigned int moduleId, void *data, unsigned int dataSize);

Python

Returns

Type

Value

Remarks

Function

C++

WMX3APIFUNC SetLog(unsigned int channel, LogInput* input);

Python

def SetLog(channel, input)

Returns

Type

int

Value

error code

Remarks

Function

C++

WMX3APIFUNC SetLogOption(unsigned int channel, LogChannelOptions *pOption);

Python

def SetLogOption(channel, pOption)

Returns

Type

int

Value

error code

Remarks

Function

C++

WMX3APIFUNC GetLogOption(unsigned int channel, LogChannelOptions *pOption);

Python

def GetLogOption(channel)

Returns

Type

tuple

Value

  • 0 : int - error code

  • 1 : LogChannelOptions - data

Remarks

Function

C++

WMX3APIFUNC SetLogFilePath(unsigned int channel, LogFilePathA *pPath);

Python

def SetLogFilePath(channel, pPath)

Returns

Type

int

Value

error code

Remarks

Function

C++

WMX3APIFUNC GetLogFilePath(unsigned int channel, LogFilePathA *pPath);

Python

def GetLogFilePath(channel)

Returns

Type

tuple

Value

  • 0 : int - error code

  • 1 : LogFilePath - data

Remarks

Function

C++

WMX3APIFUNC SetLogFilePath(unsigned int channel, LogFilePathW *pPath);

Python

Returns

Type

Value

Remarks

Function

C++

WMX3APIFUNC GetLogFilePath(unsigned int channel, LogFilePathW *pPath);

Python

Returns

Type

Value

Remarks

Function

C++

WMX3APIFUNC GetLogStatus(unsigned int channel, LogStatus *pStatus);

Python

def GetLogStatus(channel)

Returns

Type

tuple

Value

  • 0 : int - error code

  • 1 : LogStatus - status

Remarks

Function

C++

WMX3APIFUNC GetDetailLogStatus(unsigned int channel, DetailLogStatus *pStatus);

Python

def GetDetailLogStatus(channel)

Returns

Type

tuple

Value

  • 0 : int - error code

  • 1 : DetailLogStatus - data

Remarks

Function

C++

WMX3APIFUNC SetLog(unsigned int channel, char *pPath, unsigned int milliseconds, unsigned int samplePeriodInCycles, AxisSelection *pAxisSelection, LogOptions *pOptions,unsigned int mode, unsigned int burstWriteLines = 4, unsigned int scale = 9);

Python

  • def SetLog(channel, pPath, milliseconds, samplePeriodInCycles, pAxisSelection, pOptions, mode)

  • def SetLog(channel, pPath, milliseconds, samplePeriodInCycles, pAxisSelection, pOptions, mode, burstWriteLines)

  • SetLog(channel, pPath, milliseconds, samplePeriodInCycles, pAxisSelection, pOptions,mode, burstWriteLines, scale)

Returns

Type

int

Value

error code

Remarks

Function

C++

WMX3APIFUNC SetLog(unsigned int channel, wchar_t *pPath, unsigned int milliseconds, unsigned int samplePeriodInCycles, AxisSelection *pAxisSelection, LogOptions *pOptions,unsigned int mode, unsigned int burstWriteLines = 4, unsigned int scale = 9);

Python

Returns

Type

Value

Remarks

Function

C++

WMX3APIFUNC SetIOLog(unsigned int channel, IOAddress *pInputIOAddress, unsigned int inputSize, IOAddress *pOutputIOAddress, unsigned int outputSize);

Python

def SetIOLog(channel, pInputIOAddress, inputSize, pOutputIOAddress, outputSize)

Returns

Type

int

Value

error code

Remarks

Function

C++

WMX3APIFUNC SetIOLogFormat(unsigned int channel, IOLogFormat *pInputIOLogFormat, unsigned int inputIOFormatCount, IOLogFormat *pOutputIOLogFormat, unsigned int outputIOFormatCount);

Python

def SetIOLogFormat(channel, pInputIOLogFormat, inputIOFormatCount, pOutputIOLogFormat, outputIOFormatCount)

Returns

Type

int

Value

error code

Remarks

Function

C++

WMX3APIFUNC SetMLog(unsigned int channel, MAddress *pMAddress, unsigned int size);

Python

def SetMLog(channel, pMAddress, size)

Returns

Type

int

Value

error code

Remarks

Function

C++

WMX3APIFUNC SetMLogFormat(unsigned int channel, MLogFormat *pMLogFormat, unsigned int mFormatCount);

Python

def SetMLogFormat(channel, pMLogFormat, mFormatCount)

Returns

Type

int

Value

error code

Remarks

Function

C++

WMX3APIFUNC OpenMemoryLogBuffer(unsigned int channel);

Python

def OpenMemoryLogBuffer(channel)

Returns

Type

int

Value

error code

Remarks

Function

C++

WMX3APIFUNC CloseMemoryLogBuffer(unsigned int channel);

Python

def CloseMemoryLogBuffer(channel)

Returns

Type

int

Value

error code

Remarks

Function

C++

WMX3APIFUNC SetMemoryLog(unsigned int channel, AxisSelection *pAxisSelection, MemoryLogOptions *pOption);

Python

def SetMemoryLog(channel, pAxisSelection, pOption)

Returns

Type

int

Value

error code

Remarks

Function

C++

WMX3APIFUNC SetMemoryIOLog(unsigned int channel, IOAddress *pInputIOAddress, unsigned int inputSize, IOAddress *pOutputIOAddress, unsigned int outputSize);

Python

def SetMemoryIOLog(channel, pInputIOAddress, inputSize, pOutputIOAddress, outputSize)

Returns

Type

int

Value

error code

Remarks

Function

C++

WMX3APIFUNC SetMemoryMLog(unsigned int channel, MAddress *pMAddress, unsigned int size);

Python

def SetMemoryMLog(channel, pMAddress, size)

Returns

Type

int

Value

error code

Remarks

Function

C++

WMX3APIFUNC StartMemoryLog(unsigned int channel);

Python

def StartMemoryLog(channel)

Returns

Type

int

Value

error code

Remarks

Function

C++

WMX3APIFUNC StopMemoryLog(unsigned int channel);

Python

def StopMemoryLog(channel)

Returns

Type

int

Value

error code

Remarks

Function

C++

WMX3APIFUNC GetMemoryLogStatus(unsigned int channel, MemoryLogStatus *pStatus);

Python

def GetMemoryLogStatus(channel)

Returns

Type

tuple

Value

  • 0 : int - error code

  • 1 : MemoryLogStatus - status

Remarks

Function

C++

WMX3APIFUNC GetMemoryLogData(unsigned int channel, MemoryLogData *pData);

Python

def GetMemoryLogData(channel)

Returns

Type

tuple

Value

  • 0 : int - error code

  • 1 : MemoryLogData - data

Remarks

Function

C++

WMX3APIFUNC SetApiLog(char *pPath, ApiLogOptions *pOptions = NULL, unsigned int buffSize = 16777216);

Python

  • def SetApiLog(pPath)

  • def SetApiLog(pPath, pOptions)

  • SetApiLog(pPath, pOptions, buffSize)

Returns

Type

int

Value

error code

Remarks

Function

C++

WMX3APIFUNC SetApiLog(wchar_t *pPath, ApiLogOptions *pOptions = NULL, unsigned int buffSize = 16777216);

Python

Returns

Type

Value

Remarks

Function

C++

WMX3APIFUNC StartApiLog();

Python

def StartApiLog()

Returns

Type

int

Value

error code

Remarks

Function

C++

WMX3APIFUNC StopApiLog();

Python

def StopApiLog()

Returns

Type

int

Value

error code

Remarks

Function

C++

WMX3APIFUNC GetApiLogStatus(ApiLogStatus* pStatus);

Python

def GetApiLogStatus()

Returns

Type

tuple

Value

  • 0 : int - error code

  • 1 : ApiLogStatus - status

Remarks

Function

C++

WMX3APIFUNC OpenApiLogFile(char *pPath, FILE **ppFile);

Python

def OpenApiLogFile(pPath)

Returns

Type

tuple

Value

  • 0 : int - error code

  • 1 : file object - API log file

Remarks

Function

C++

WMX3APIFUNC OpenApiLogFile(wchar_t *pPath, FILE **ppFile);

Python

Returns

Type

Value

Remarks

Function

C++

WMX3APIFUNC GetApiLogData(FILE* pFile, unsigned char* pDataBuff, unsigned int buffSize);

Python

def GetApiLogData(pFile, buffSize)

Returns

Type

tuple

Value

  • 0 : int - error code

  • 1 : list(int) - the extracted raw data

Remarks

Function

C++

WMX3APIFUNC GetApiLogData(FILE* pFile, unsigned char* pDataBuff, unsigned int buffSize, ApiLogInfo* pApiLogInfo = NULL);

Python

def GetApiLogData_ApiLogInfo(pFile, buffSize)

Returns

Type

tuple

Value

  • 0 : int - error code

  • 1 : list(int) - the extracted raw data

  • 2 : ApiLogInfo - additional info

Remarks

Function

C++

WMX3APIFUNC CloseApiLogFile(FILE* pFile);

Python

def CloseApiLogFile(pFile);

Returns

Type

int

Value

error code

Remarks