National Instruments FP-3000 User Manual

Page 65

Advertising
background image

Chapter 4

Block Reference

© National Instruments Corporation

4-13

FieldPoint FP-3000 User Manual

Function Name

set_status

Function Syntax

vs_discrete set_status(vs_discrete,

status) OR

vs_float set_status(vs_float, status)

Input

Any symbol that is a value status combination

Purpose

This function sets the status of the input parameter
to the input status and returns the input parameter
with the old value and newly set status.

Return value

vs_discrete

or

vs_float

input parameter with

the old value but new status

Function Name

get_status

Function Syntax

unsigned char get_status(vs_discrete)

OR

unsigned char get_status(vs_float)

Input

Any symbol that is a value status combination

Purpose

This function retrieves the status of the input
parameter and returns it.

Return value

Status of the input parameter

Function Name

to_scaled

Function Syntax

vs_float to_scaled( float valueToScale,

float engUnit0,

float engUnit100)

Input

engUnit0

is the low value of the scale range,

engUnit100

is the high value of the scale range,

and

valueToScale

is the floating point value

(implicitly between 0 and 1) that needs to be scaled
(i.e., 0 <=

valueToScale

<= 1)

Advertising