pisn_sendexcepstruc

This function is the same as pisn_sendexceptions except it allows you to pass a structure instead of the long list of parameters.

C format

int32 pisn_sendexcepstruc(

int32 pt,

char type,

PI_EXCEPT PIPTR * excpt,

int 32 PIPTR * count);

Returns

>0

System error

0

Success

-1

Point does not exist

-8

Time is after the current time or less than 0

-9

Illegal status or integer value

Arguments

pt (passed)

Point number

type (passed)

PI point type (R, I, or D)

excpt (passed, returned)

This is the structure which replaced the long list of parameters in pisn_sendexceptions. Refer to that documentation for further information.

count (returned)

Number of values sent to PI: 0, 1, or 2

Usage Notes

The PI_EXCEPT structure is defined in the header file piapi.h as follows:

typedef struct

{

float newval;

int32 newstat;

int32 newtime;

float oldval;

int32 oldstat;

int32 oldtime;

float prevval;

int32 prevstat;

int32 prevtime;

float excdeveng;

int32 excmin;

int32 excmax;

} PI_EXCEPT;

Enabling Operational Intelligence