beautypg.com

S817_getstatusinfo, S817_getexterrinfo – Sensoray 817 User Manual

Page 17

background image

17

is

err[64]

, where

err

is of

EXTERR

type. If

err[0].tick

is 17, then the elements

err[1]

to

err[18]

contain valid error information. If

err[0].tick is 100

, then members

err[1]

to

err[63]

contain error information for the last 63 out of total 100 errors that

were registered for a selected channel.


tick

Timer tick corresponding to the occurance of the error.


ecode

Error code. The error codes returned in

EXTERR

structure are different from those

returned by the API functions. Please record the diagnostics output prior to
contacting the technical support.


reserved[2]

Internal use, do not modify.

S817_GetStatusInfo

ECODE S817_GetStatusInfo (int board, int dsp, SYS_STATUS *sysStat)

Gets status information for a group of 4 channels.


board

Index of the board being addressed (1 ..

SYS_MAXBOARDS

).

dsp

Index of the group of channels being addressed (0 .. 3). Use 0 to obtain status for
channels 1-4, 1 for channels 5-9, etc.

sysStat

Pointer to

SYS_STATUS

structure accepting the data.



S817_GetExtErrInfo

ECODE S817_GetExtErrInfo (int board, int dsp, int errChan, EXTERR *err)

Gets extended error information from the board.


board

Index of the board being addressed (1 ..

SYS_MAXBOARDS

).

dsp

Index of the group of channels being addressed (0 .. 3). Use 0 to obtain status for
channels 1-4, 1 for channels 5-9, etc.

errChan

Index of the requested channel within a group (0..4). For example, to obtain extended
error information for channel 7, set

dsp

to 1 and

errChan

to 2. The value of 4 within

each group selects extended error information of the communication channel
common for four capture channels within one group.