Show/Hide Toolbars

Irinos Measurement System

Navigation: MscDll Reference Guide > API (programming interface) > Static transfer channels

MSC_ReadStatic

Scroll Prev Top Next More

This function reads new data from a static data transfer channel.

 

Definition


MSC_STATUS
MSC_ReadStatic(
    MSC_HANDLE Handle,
    unsigned char OpCode,
    unsigned long BufferSize,
    void* Buffer,
    unsigned long* DataCount
);

 

Parameter


Handle

Device-Handle, which has been returned by a previous call of the function MSC_OpenDevice.

Opcode

Opcode for the static channel:
opcRS for reading static measurement values.
opcRHS for reading the hardware status.
opcBIO for exchanging Bit I/O data.

BufferSize

Size of the destination buffer ("Buffer") in bytes.

Buffer

Destination buffer. Data will be copied into this buffer. Its size must be at least "BufferSize".

DataCount

Number of bytes, which have been received recently. 0 if no new data has been received.

 

Return value


If successful, MSC_STATUS_SUCCESS will be returned. In case of an error, an error code will be returned.

 

Comments


A static measurement channel needs to be initialized with the function MSC_SetupStaticChannel. The opcode for Msc_ReadStatic is the same as it has been used for MSC_SetupStaticChannel.

 

See also


MSC_OpenDevice

MSC_SetupStaticChannel