pipt_pointtypex

This function returns a data type code for the passed point number. This function is similar to pipt_pointtype, but provides additional point type possibilities.

Visual Basic format

Declare Function pipt_pointtypex Lib "piapi32.dll" (
ByVal PtNum&,
typeX&) As Long

C format

int32 PIPROC pipt_pointtypex(

int32 ptnum,

PIvaluetype PIPTR *typex);

Returns

>0

System error

Success

-1 

Point not found

 

Arguments

ptnum (passed)

PI point number.

typex (modified)

Point type code. See Usage Notes.

Usage Notes

The data type PIvaluetype is defined in the extended PI-API include file piapix.h.

This function should be used instead of pipt_pointtype if your application will be handling string points. Function pipt_pointtype returns a data type for ā€˜Iā€™ for string points, which is incorrect.

Data type codes returned by this function allow you to tell the difference between scaled and full precision real points. Scaled real points are of data type PI_Type_float16. Full precision real points are of type PI_Type_float32.

A table listing the returned PIvaluetype codes for the corresponding PI point types is given below.


Pivaluetype

PI 3 point type

PI 2 point type

PI_Type_float64

Float64

N/A

PI_Type_float32

Float32

R and F

PI_Type_float16

Float16

R

PI_Type_int32

Int32

N/A

PI_Type_int16

Int16

I

PI_Type_digital

Digital

D

PI_Type_PItimestamp

Time stamp

N/A

PI_Type_PIstring

String

N/A

PI_Type_blob

Blob

N/A

Enabling Operational Intelligence