ValidateRangeTable

IVI Library

Ivi_ValidateRangeTable

Usage

ViStatus Ivi_ValidateRangeTable(IviRangeTablePtr Range Table);

Purpose

This function validates a range table. If you pass VI_NULL for the Range Table parameter, the function returns VI_SUCCESS. If you specify a non-NULL range table, the function returns an error if the range table type is not valid or the number of entries is zero.

The valid range table types are the following:

IVI_VAL_DISCRETE 0IVI_VAL_RANGED 1
IVI_VAL_COERCED 2

A range table has zero entries if the first entry has the following value in the cmdString field:

IVI_RANGE_TABLE_END_STRING ((ViString)(-1))

Parameters

Name Type Description
Range Table IviRangeTablePtr

Specify the address of the range table you want to validate.

You can pass VI_NULL for this parameter.

Return Value

Returns the type of the ViReal64 value you specify.

(0)IVI_VAL_TYPE_NORMAL-normal value
(1)IVI_VAL_TYPE_NAN-Not a Number (NaN)
(2)IVI_VAL_TYPE_PINF-positive infinity
(3)IVI_VAL_TYPE_NINF-negative infinity

Related Topic

IVI Status Codes