Rückgabewerte (MSC_STATUS)

<< Click to Display Table of Contents >>

Navigation:  MscDll Referenzhandbuch > Programmierschnittstelle >

Rückgabewerte (MSC_STATUS)

Die Funktionsaufrufe der MscDll haben stets den Rückgabewert MSC_STATUS. Dieser gibt Aufschluss darüber, ob ein Funktionsaufruf erfolgreich ausgeführt wurde, oder was gegebenenfalls die Ursache für die Nicht-Ausführung war. Der Rückgabewert ist wie folgt definiert:

Rückgabewert

Hex-Wert

Beschreibung

MSC_STATUS_SUCCESS

0x00000000

no error detected

MSC_STATUS_FAILED

0xF0000001

general error

MSC_STATUS_INVALID_HANDLE

0xF0000002

call an invalid handle

MSC_STATUS_INVALID_PARAMS

0xF0000003

invalid parameter

MSC_STATUS_NO_RESOURCES

0xF0000004

no resources for creation

MSC_STATUS_NO_DEVICES

0xF0000005

no device found

MSC_STATUS_NOT_INITIALIZED

0xF0000006

member not initialzed

MSC_STATUS_ALREADY_INITIALIZED

0xF0000007

interface is already initialized, repeated call

MSC_STATUS_INVALID_OBJECT_TYPE

0xF0000008

handle identifies an invalid object type, handle is invalid for this function call

MSC_STATUS_INVALID_CHANNEL_TYPE

0xF0000009

channel does not have the correct type for this function

MSC_STATUS_FUNCTION_NOT_ALLOWED

0xF0000100

function not allowed at this time

MSC_STATUS_NO_DATA_AVAILABLE

0xF0000200

no data available

MSC_STATUS_NO_MORE_DATA

0xF0000400

no more data

MSC_STATUS_BUFFER_TO_SHORT

0xF0000401

buffer too short

 

Für die HighLevel-Funktionen sind folgende zusätzlichen Fehlercodes definiert:

Rückgabewert

Hex-Wert

Beschreibung

MSC_STATUS_INVALID_RESPONSE

0xF8000000

Received an invalid / unexpected response from the Irinos system. Get in touch with support.

MSC_STATUS_STRINGGEN_FAILED

0xF8000001

Internal failure generating a string. Get in touch with support.

MSC_STATUS_INVALID_CHANNELNO

0xF8000100

Invalid measurement channel number. Make sure that physical measurement channel exists.

MSC_STATUS_INVALID_CHANNELLIST

0xF8000101

Channel list for dynamic measurement is not allowed. Can only occur, if Irinos system setup has been changed without restart of the measurement software.

MSC_STATUS_INVALID_NIOBYTES

0xF8000200

Invalid number of bytes for Bit I/O.

MSC_STATUS_DYN_NO_INVALID

0xF8000500

Invalid dynamic measurement number.

MSC_STATUS_DYN_NO_CHANNELS

0xF8000501

No measurement channels have been added to dynamic measurement. Use IRHL_DynReset and IRHL_DynAddMeasChannel before starting a new dynamic measurement.

MSC_STATUS_DYN_CHANNEL_NOTUSED

0xF8000502

Reading dynamic measurement values failed, because the measurement channel is not part of the dynamic measurement.

MSC_STATUS_DYN_TOO_MANY_CHANNELS

0xF8000503

Too many measurement channels used for dynamic measurement.

MSC_STATUS_DYN_FAILED_DEFINE

0xF8000504

Internal: Failed to define dynamic measurement.

MSC_STATUS_DYN_FAILED_TRIGGER_DEFINE

0xF8000520

Internal: Failed to define trigger for dynamic measurement.

MSC_STATUS_DYN_FAILED_TRIGGER_ACTIVATE

0xF8000521

Internal: Failed to activate trigger for dynamic measurement.

MSC_STATUS_DYN_FAILED_TRIGGER_INACTIVATE

0xF8000522

Internal: Failed to inactivate trigger for dynamic measurement.