Table of Contents

Name

cp_type - AccelNET CPtypes

General Information

valid CPtype values

CPilim


inside limits

if (X >= LimLo) && (X <= LimHi)
mask = 1;

else mask = 0;

CPelim


at either limit

if (X == LimLo) || (X == LimHi)
mask = 1;

else mask = 0;

CPalim


equal to a single limit

if (X == LimLo)
mask = 1;

else mask = 0;

CPdblim


inside database limits

if (X >= Dpnt->PhyMin) && (X <= Dpnt->PhyMax)
mask = 1;

else mask = 0;

CPmask

set mask equal to binary database value

mask = X;

- most useful w/ Ldisp datatype

CPerror

check parameter error code

if (DATA.status = 0)
mask = 0;

else mask = 1;

CPilim2

inside of limit w/more info

if (X < LimLo)
else mask = 1;
mask = 1;

else if (X > LimHi)
mask = 2;

else mask = 0;

CPdblim2

inside of database limit w/more info

if (X < Dpnt->PhyMin)
mask = 1;

else if (X > Dpnt->PhyMax)
mask = 2;

else mask = 0;

NOTE: This test is smart enough to recognize Lin and NLin datatypes and process them correctly even though the rule is simplified in the description given here.

Manual page revision

$Id: cp_type.7,v 1.1 2001/09/05 04:44:31 kitchen Exp $


Table of Contents