Table 4-5. function operators – National Instruments FP-3000 User Manual

Page 63

Advertising
background image

Chapter 4

Block Reference

© National Instruments Corporation

4-11

FieldPoint FP-3000 User Manual

Function Descriptions

Table 4-5. Function Operators

Class of Operation

Operation

Operators

Math

Square Root

sqrt(<op1>)

Exponential

e<op1>

Logarithm (base e)

log(<op1>)

Absolute Value

abs(<x>)

Status

Status checking
is good cascade status
is bad status
is good non-cascade status
is uncertain

is_good(<op1>)
is_bad(<op1>)
is_gnc(<op1>)
is_unc(<op1>)

Status manipulator

set_status(<op1>, <stat>)

Status retriever

get_status(<op1>)

Value manipulation

Fraction to engineering unit
value converter

to_scaled (<value>, <op1>, <op2>)

Engineering unit value to
fraction and value

to_unity (<value>, <op1>, <op2>)

Function Name

is_bad

Function Syntax

Uint32 is_bad(vs_float F) OR

Uint32 is_bad(vs_discrete D)

Input

Any symbol that is a value status combination

Purpose

This function checks to see if the quality of status
of the input parameter is Bad. If it is, the function
returns TRUE, otherwise it returns FALSE.

Return value

Unsigned 32-bit integer TRUE (value 1) or
FALSE (value 0)

Advertising