Introduction

How To Use This Document

Assumptions

Error Codes

National Instruments 435X Summary

NI435X Function Tree:	Function Name:

Initialize	NI435X_Init

Application Functions

Getting Started	NI435X_Getting_Started

Getting Started No Accessory	NI435X_Getting_Started_No_Acc

Getting Started Multi	NI435X_Getting_Started_Multi

Getting Started Digital	NI435X_Getting_Started_Digital

Interval Scanning	NI435X_Interval_Scanning

Normal Scanning	NI435X_Normal_Scanning

Normal Scanning No Accessory	NI435X_Normal_Scanning_No_Acc

ReadBack Output 	NI435X_Readback_Output

Configuration

Configure	NI435X_Configure

Set Scan List	NI435X_Set_Scan_List

Set Temperature Units	NI435X_Set_Temperature_Units

Set Channel Mode	NI435X_Set_Channel_Mode

Set Current Source	NI435X_Set_Current_Source

Configure Custom Mode	NI435X_Configure_Custom_Mode

Set Range 	NI435X_Set_Range

Set Powerline Frequency	NI435X_Set_Powerline_Frequency

Set Shunt Value	NI435X_Set_Shunt_Value

Set Auto Zero	NI435X_Set_Auto_Zero

Set Autozero Mode	NI435X_Set_Auto_Zero_Mode

Set Open TC Detection	NI435X_Set_Open_TC_Detection

Set Ground Reference	NI435X_Set_GND_Ref

Set CJC	NI435X_Set_CJC

Set RTD Ice Point	NI435X_Set_RTD_Ice_Point

Set Reading Rate	NI435X_Set_Reading_Rate

Set Number Of Scans	NI435X_Set_Number_Of_Scans

Get Number of Channels	NI435X_Get_Number_Of_Channels

Analog Control

Acquisition Start/Stop	NI435X_Acquisition_StartStop

Check And Read	NI435X_Check_And_Read

Check	NI435X_Check

Read	NI435X_Read

Digital Control

Configure Input Port	NI435X_Configure_Input_Port

Configure Output Port	NI435X_Configure_Output_Port

Configure Digital Lines	NI435X_Configure_Digital_Lines

Write Line	NI435X_Write_Line

Read Line	NI435X_Read_Line

Write Port	NI435X_Write_Port

Read Port	NI435X_Read_Port

Utility Functions

Reset	NI435X_Reset

Self Test	NI435X_Self_Test

Error Query	NI435X_Error_Query

Error Message	NI435X_Error_Message

Revision Query	NI435X_Revision_Query

Close	NI435X_Close


Introduction

This instrument driver provides programming support for National Instruments 435X. It contains functions for opening, configuring, taking measurements from, and closing the instrument.


How To Use This Document

This document is intended to be used as a programming reference manual.  It describes each function in the National Instruments 435X instrument driver.  The functions are listed with a description of the function, C syntax of the function, a description of each parameter, and possible error codes.


Assumptions

The instrument is installed and has been configured as outlined in NI-DAQ online help.  The device number passed to the initialize VI must match the device number of the instrument.


Error Codes

Error codes and warnings are returned as the return value of each instrument

driver function. A program should examine this value after each call to an

instrument driver function to determine if any error occurred.  The general

meaning of the return value is as follows:

Value	Meaning
0	Success
Positive Values	Warnings
Negative Values	Errors

Possible error codes and their meanings are listed with the corresponding

instrument driver function.


National Instruments 435X Summary

Initialize	NI435X_init

Application

Getting Started	NI435X_Getting_Started

Getting Started	NI435X_Getting_Started_No_Acc

Getting Started	NI435X_Getting_Started_Multi

Interval Scanning	NI435X_Interval_Scanning

Normal Scanning	NI435X_Normal_Scanning

Normal Scanning	NI435X_Normal_Scanning_No_Acc

Readback Output	NI435X_readbackOutput

Configuration

Set Scan List	NI435X_Set_Scan_List

Set Temperature Units	NI435X_Set_Temperature_Units

Set Channel Mode	NI435X_Set_Channel_Mode

Configure Custom Mode	NI435X_Configure_Custom_Mode

Set Range	NI435X_Set_Range

Set Powerline Frequency	NI435X_Set_Powerline_Frequency

Set Shunt Value	NI435X_Set_Shunt_Value

Set Auto Zero	NI435X_Set_Auto_Zero

Set Open TC Detection	NI435X_Set_Open_TC_Detection

Set Ground Reference	NI435X_Set_Gnd_Ref

Set CJC	NI435X_Set_CJC

Set RTD Ice Point	NI435X_Set_RTD_Ice_Point

Set Reading Rate	NI435X_Set_Reading_Rate

Set Number Of Scans	NI435X_Set_Number_Of_Scans

Analog Control

Read	NI435X_Read

Acquisition Start/Stop	NI435X_Acquisition_StartStop

Check 	NI435X_Check

Digital Control

Configure Input Port                NI435X_Configure_Input_Port

Configure Output Port	NI435X_Configure_Output_Port

Configure Output Port	NI435X_Configure_Digital_Lines

Write Line	NI435X_Write_Line

Read Line	NI435X_Read_Line

Write Port	NI435X_Write_Port

Read Port	NI435X_Read_Port

Utility Functions

Reset	NI435X_reset

Self Test	NI435X_self_test

Revision Query	NI435X_revision_query

Error Query	NI435X_error_query

Error Message	NI435X_error_message

Close	NI435X_close


NI435X_Getting_Started

ViStatus NI435X_Getting_Started (ViRsrc resourceName, ViChar channelString[],

          ViInt16 mode, ViReal 64 lowLimit, ViReal64 highLimit,

          ViInt32 numberOfScans, ViReal64 scansData[]);

Purpose

This function opens a session to establish communication with the

instrument, runs the Normal Scanning function, and then closes the

session with the instrument. This example requires an accessory

that has an autozero and cold junction channel.

Parameter List

ResourceName

Variable Type       ViRsrc

Specifies the interface and address of the device that is to be

initialized (Instrument Descriptor). The exact grammar to be used in

this control is shown in the notes below.

Default Value:  "DAQ::1"

Notes:

(1) The syntax to use is: DAQ::device number.

DAQ indicates that it is a data acquisition device and the device

number is the number used in the Measurement & Automation Explorer.

channelString

Variable Type       ViChar[]

This control defines the channels in the scan list.

Default Value: "3"

Notes:

(1) The scan list defines the channels that will be read during an

acquisition.  Each scan acquires one sample from each channel in the

scan list.  For example, if the scan list is 2:4 then each scan will

acquire a sample from channels 2,3, and 4.

(2) A colon may be used to express a range of channels.  For example,

1,2,3,4,6,8,9 can be entered as 1:4,6,8:9.

mode

Variable Type       ViInt16

This control selects the type of measurement to be acquired.

Valid settings are documented as "setting: definition: value".

Definition is a #define in the header file; value is its value.

Default Value: Voltage: NI435X_VOLTAGE: 0

Valid Range:

Voltage: NI435X_VOLTAGE: 0

Thermocouple B: NI435X_THERM_B: 1

Thermocouple E: NI435X_THERM_E: 2

Thermocouple J: NI435X_THERM_J: 3

Thermocouple N: NI435X_THERM_K: 4

Thermocouple K: NI435X_THERM_N: 5

Thermocouple R: NI435X_THERM_R: 6

Thermocouple S: NI435X_THERM_S: 7

Thermocouple T: NI435X_THERM_T: 8

RTD ITS-90: NI435X_RTD_ITS_90: 9

RTD American: NI435X_TRD_AMERICAN: 10

RTD DIN 43760: NI435X_RTD_DIN_43760: 11

Resistance: NI435X_RESISTANCE: 12

lowLimit

Variable Type       ViReal64

Configures the lower input limit for measurements.

Default Value: -15V

Valid Range: [-15V; 15V] (Voltage Mode)

 [-50; 250] Thermocouple B

 [-200; 1000] Thermocouple E

 [-210; 1200] Thermocouple J

 [-200; 1372] Thermocouple K

 [-200; 1300] Thermocouple N

 [-50; 1768] Thermocouple R

 [-50; 1768] Thermocouple S

 [-200; 400] Thermocouple T

 0Ohms - 600kOhms (Ohms Mode)

Notes:

(1) Should be specified in the following engineering units:

For Voltage Mode -> volts

For Thermocouples -> Degrees (C, F, K, or R) depending on setting in Set Temperature units

For RTDs -> Degrees (C, F, K, or R) depending on setting in Set Temperature units

For Resistance Mode -> Ohms

highLimit

Variable Type       ViReal64

Configures the upper input limit for measurements.

Default Value: 15V

Valid Range: [-15V; 15V] (Voltage Mode)

 [-50; 250] Thermocouple B

 [-200; 1000] Thermocouple E

 [-210; 1200] Thermocouple J

 [-200; 1372] Thermocouple K

 [-200; 1300] Thermocouple N

 [-50; 1768] Thermocouple R

 [-50; 1768] Thermocouple S

 [-200; 400] Thermocouple T

 0Ohms - 600kOhms (Ohms Mode)

Notes:

(1) Should be specified in the following engineering units:

For Voltage Mode -> volts

For Thermocouples -> Degrees (C, F, K, or R) depending on setting in Set Temperature units

For RTDs -> Degrees (C, F, K, or R) depending on setting in Set Temperature units

For Resistance Mode -> Ohms

numberOfScans

Variable Type       ViInt32

Sets the number of scans to read.

Default Value: 10

Valid Range: any ViUInt32

Notes:

(1)	Each scan reads a data point from each channel in the scan list. For example,

reading 5 scans from a 3-channel scan list will acquire 15 samples.

scansData

Variable Type       ViReal64[]

Returns the data points read from the device.

Return Value

Status	Description
0x0	No error (the call was successful).
INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO
Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Getting_Started_No_Acc

ViStatus NI435X_Getting_Started_No_Acc (ViRsrc resourceName, ViChar channelString[],

         ViInt16 mode, ViReal 64 lowLimit, ViReal64 highLimit,

         ViInt32 numberOfScans, ViReal64 scansData[]);

Purpose

This function opens a session to establish communication with the

instrument, runs the Normal Scanning No Accessory function, and then closes the

session with the instrument.  This example will work without an accessory

or an accessory that does not have an autozero or cold junction channel.

Parameter List

ResourceName

Variable Type       ViRsrc

Specifies the interface and address of the device that is to be

initialized (Instrument Descriptor). The exact grammar to be used in

this control is shown in the notes below.

Default Value:  "DAQ::1"

Notes:

(1) The syntax to use is:  DAQ::device number.

DAQ indicates that it is a data acquisition device and the device

number is the number used in the Measurement & Automation Explorer.

channelString

Variable Type       ViChar[]

This control defines the channels in the scan list.

Default Value: "3"

Notes:

(1) The scan list defines the channels that will be read during an

acquisition. Each scan acquires one sample from each channel in the

scan list.  For example, if the scan list is 2:4 then each scan will

acquire a sample from channels 2,3, and 4.

(2) A colon may be used to express a range of channels.  For example,

1,2,3,4,6,8,9 can be entered as 1:4,6,8:9.

      	mode

          	Variable Type       ViInt16

          	This control selects the type of measurement to be acquired.

          	Valid settings are documented as "setting: definition: value".

          	Definition is a #define in the header file; value is its value.

          	Default Value: Voltage: NI435X_VOLTAGE: 0

          	Valid Range:

          	Voltage: NI435X_VOLTAGE: 0

         	 Thermocouple B: NI435X_THERM_B: 1

          	Thermocouple E: NI435X_THERM_E: 2

          	Thermocouple J: NI435X_THERM_J: 3

          	Thermocouple N: NI435X_THERM_K: 4

          	Thermocouple K: NI435X_THERM_N: 5

          	Thermocouple R: NI435X_THERM_R: 6

          	Thermocouple S: NI435X_THERM_S: 7

          	Thermocouple T: NI435X_THERM_T: 8

          	RTD ITS-90: NI435X_RTD_ITS_90: 9

          	RTD American: NI435X_TRD_AMERICAN: 10

         	RTD DIN 43760: NI435X_RTD_DIN_43760: 11

          	Resistance: NI435X_RESISTANCE: 12

 	lowLimit

Variable Type       ViReal64

Configures the lower input limit for measurements.

Default Value: -15V

Valid Range: [-15V; 15V] (Voltage Mode)

 [-50; 250] Thermocouple B

 [-200; 1000] Thermocouple E

 [-210; 1200] Thermocouple J

 [-200; 1372] Thermocouple K

 [-200; 1300] Thermocouple N

 [-50; 1768] Thermocouple  R

 [-50; 1768] Thermocouple  S

 [-200; 400] Thermocouple  T

 0Ohms - 600kOhms (Ohms Mode)

Notes:

(1) Should be specified in the following engineering units:

    For Voltage Mode -> volts

    For Thermocouples -> Degrees (C, F, K, or R) depending on setting in Set Temperature units

For RTDs -> Degrees (C, F, K, or R) depending on  setting in Set Temperature units

For Resistance Mode -> Ohms

highLimit

Variable Type       ViReal64

Configures the upper input limit for measurements.

Default Value: 15V

Valid Range: [-15V; 15V] (Voltage Mode)

 [-50; 250] Thermocouple B

 [-200; 1000] Thermocouple E

 [-210; 1200] Thermocouple J

 [-200; 1372] Thermocouple K

 [-200; 1300] Thermocouple N

 [-50; 1768] Thermocouple  R

 [-50; 1768] Thermocouple  S

 [-200; 400] Thermocouple  T

 0Ohms - 600kOhms (Ohms Mode)

Notes:

(1) Should be specified in the following engineering units:

    For Voltage Mode -> volts

For Thermocouples -> Degrees (C, F, K, or R) depending on setting in Set Temperature units

For RTDs -> Degrees (C, F, K, or R) depending on  setting in Set Temperature units

For Resistance Mode -> Ohms

numberOfScans

          Variable Type       ViInt32

          Sets the number of scans to read.

          Default Value: 10

          Valid Range: any ViUInt32

          Notes:

          (1) Each scan reads a data point from each channel in the scan list.

          For example, reading 5 scans from a 3-channel scan list will acquire

          15 samples

       scansData

         Variable Type       ViReal64[]

          Returns the data points read from the device.

         Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Acquisition_StartStop

ViStatus NI435X_Acquisition_StartStop (ViSession DAQsession, ViInt16 control);

Purpose

This function starts or stops data acquisition depending on the value on the Control.

Notes:

(1)  NI435X Set Scan List must be run prior to this function.

(2)	Every acquisition that is started must also be stopped before either more data is read or

the acquisition is started again.

(3)	Continuous acquisition is started by default unless the number of scans to acquire is set in

NI435X Set Number Of Scans prior to running this function.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate.  The

DAQ session is normally opened with the Initialize function.

Default Value:  None

control

Variable Type       ViInt16

This control selects the type of action.

Valid settings are documented as "setting: definition: value".

Definition is a #define in the header file; value is its value.

Default Value: START: NI435X_START: 0

Valid Range:

START: NI435X_START: 0

STOP: NI435X_STOP: 1

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Check

ViStatus NI435X_Check (ViSession DAQsession,ViInt32 *scansAvailable,ViBoolean *backlog);

Purpose

This function checks for available data.

Notes:

(1)  This function should be run after NI435X Acquisition Start/Stop.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate.  The

DAQ session is normally opened with the Initialize function.

Default Value:  None

scansAvailable

Variable Type       ViInt32 (passed by reference)

Returns the number of scans available in the buffer backlog

Variable Type       ViBoolean (passed by reference)

Indicates that there is unread data in the buffer.

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Normal Scanning

ViStatus NI435X_CheckRead_Data (ViSession DAQsession,

ViChar channelString[],

ViInt16 mode, ViReal64 lowLimit,

ViReal64 highLimit,

ViInt32 numberOfScans,

ViReal64 scansData[]);

Purpose

Sets the channel mode, temperature units, powerline frequency, reading rate

and number of scans; starts the acquisition, and reads the specified number

of scans. This function will configure autozero for all channel modes to auto

and CJC for temperature modes to auto. This function requires an accessory

that supports autozero and CJC.

Notes:

(1) NI435X Initialize must be run prior to this function.

(2) This application function can not be used for measurements in

Thermocouple Custom mode.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate.  The

DAQ session is normally opened with the Initialize function.

Default Value:  None

channelString

Variable Type       ViChar[]

This control defines the channels in the scan list.

Default Value: "3"

Notes:

(1) The scan list defines the channels that will be read during an

acquisition.  Each scan acquires one sample from each channel in the

scan list.  For example, if the scan list is 2:4 then each scan will

acquire a sample from channels 2,3, and 4.

(2) A colon may be used to express a range of channels.  For example,

1,2,3,4,6,8,9 can be entered as 1:4,6,8:9.

mode

Variable Type       ViInt16

This control selects the type of measurement to be acquired.

Valid settings are documented as "setting: definition: value".

Definition is a #define in the header file; value is its value.

Default Value: Voltage: NI435X_VOLTAGE: 0

Valid Range:

Voltage: NI435X_VOLTAGE: 0

Thermocouple B: NI435X_THERM_B: 1

Thermocouple E: NI435X_THERM_E: 2

Thermocouple J: NI435X_THERM_J: 3

Thermocouple N: NI435X_THERM_K: 4

Thermocouple K: NI435X_THERM_N: 5

Thermocouple R: NI435X_THERM_R: 6

Thermocouple S: NI435X_THERM_S: 7

Thermocouple T: NI435X_THERM_T: 8

RTD ITS-90: NI435X_RTD_ITS_90: 9

RTD American: NI435X_TRD_AMERICAN: 10

RTD DIN 43760: NI435X_RTD_DIN_43760: 11

Resistance: NI435X_RESISTANCE: 12

lowLimit

Variable Type       ViReal64

Configures the lower input limit for measurements.

Default Value: -15V

Valid Range: [-15V; 15V] (Voltage Mode)

 [-50; 250] Thermocouple B

 [-200; 1000] Thermocouple E

 [-210; 1200] Thermocouple J

 [-200; 1372] Thermocouple K

 [-200; 1300] Thermocouple N

 [-50; 1768] Thermocouple  R

 [-50; 1768] Thermocouple  S

 [-200; 400] Thermocouple  T

 0Ohms - 600kOhms (Ohms Mode)

Notes:

(1) Should be specified in the following engineering units:

For Voltage Mode -> volts

For Thermocouples -> Degrees (C, F, K, or R) depending on setting in Set Temperature units

For RTDs -> Degrees (C, F, K, or R) depending on  setting in Set Temperature units

 For Resistance Mode -> Ohms

highLimit

Variable Type       ViReal64

Configures the upper input limit for measurements.

Default Value: 15V

Valid Range: [-15V; 15V] (Voltage Mode)

 [-50; 250] Thermocouple B

 [-200; 1000] Thermocouple E

 [-210; 1200] Thermocouple J

 [-200; 1372] Thermocouple K

 [-200; 1300] Thermocouple N

 [-50; 1768] Thermocouple  R

 [-50; 1768] Thermocouple  S

 [-200; 400] Thermocouple  T

 0Ohms - 600kOhms (Ohms Mode)

Notes:

(1) Should be specified in the following engineering units:

For Voltage Mode -> volts

For Thermocouples -> Degrees (C, F, K, or R) depending on setting in Set Temperature units

For RTDs -> Degrees (C, F, K, or R) depending on  setting in Set Temperature units

For Resistance Mode -> Ohms

numberOfScans

Variable Type       ViInt32

Sets the number of scans to read.

Default Value: 10

Valid Range: any ViUInt32

Notes:

(1)  Each scan reads a data point from each channel in the scan list.

For example, reading 5 scans from a 3-channel scan list will acquire

15 samples.

scansData

Variable Type       ViReal64[]

Returns the data points read from the device.

Return Value

Status	Description
0x0	No error (the call was successful).
INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Normal Scanning_No_Acc

ViStatus NI435X_CheckRead_Data (ViSession DAQsession,

ViChar channelString[],

ViInt16 mode, ViReal64 lowLimit,

ViReal64 highLimit,

ViInt32 numberOfScans,

ViReal64 scansData[]);

Purpose

Sets the channel mode, temperature units, powerline frequency, reading rate

and number of scans; starts the acquisition, and reads the specified number

of scans. This function will not configure autozero and sets CJC to 25 deg C

for temperature modes. This function does not require an accessory that

supports autozero or CJC.

Notes:

(1) NI435X Initialize must be run prior to this function.

(2) This application function can not be used for measurements in

Thermocouple Custom mode.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate.  The

DAQ session is normally opened with the Initialize function.

Default Value:  None

channelString

Variable Type       ViChar[]

This control defines the channels in the scan list.

Default Value: "3"

Notes:

(1) The scan list defines the channels that will be read during an

acquisition.  Each scan acquires one sample from each channel in the

scan list.  For example, if the scan list is 2:4 then each scan will

acquire a sample from channels 2,3, and 4.

(2) A colon may be used to express a range of channels.  For example,

1,2,3,4,6,8,9 can be entered as 1:4,6,8:9.

mode

Variable Type       ViInt16

This control selects the type of measurement to be acquired.

Valid settings are documented as "setting: definition: value".

Definition is a #define in the header file; value is its value.

Default Value: Voltage: NI435X_VOLTAGE: 0

Valid Range:

Voltage: NI435X_VOLTAGE: 0

Thermocouple B: NI435X_THERM_B: 1

Thermocouple E: NI435X_THERM_E: 2

Thermocouple J: NI435X_THERM_J: 3

Thermocouple N: NI435X_THERM_K: 4

Thermocouple K: NI435X_THERM_N: 5

Thermocouple R: NI435X_THERM_R: 6

Thermocouple S: NI435X_THERM_S: 7

Thermocouple T: NI435X_THERM_T: 8

RTD ITS-90: NI435X_RTD_ITS_90: 9

RTD American: NI435X_TRD_AMERICAN: 10

RTD DIN 43760: NI435X_RTD_DIN_43760: 11

Resistance: NI435X_RESISTANCE: 12

lowLimit

Variable Type       ViReal64

Configures the lower input limit for measurements.

Default Value: -15V

Valid Range: [-15V; 15V] (Voltage Mode)

 [-50; 250] Thermocouple B

 [-200; 1000] Thermocouple E

 [-210; 1200] Thermocouple J

 [-200; 1372] Thermocouple K

 [-200; 1300] Thermocouple N

 [-50; 1768] Thermocouple  R

 [-50; 1768] Thermocouple  S

 [-200; 400] Thermocouple  T

 0Ohms - 600kOhms (Ohms Mode)

Notes:

(1) Should be specified in the following engineering units:

For Voltage Mode -> volts

For Thermocouples -> Degrees (C, F, K, or R) depending on setting in Set Temperature units

For RTDs -> Degrees (C, F, K, or R) depending on  setting in Set Temperature units

For Resistance Mode -> Ohms

highLimit

Variable Type       ViReal64

Configures the upper input limit for measurements.

Default Value: 15V

Valid Range: [-15V; 15V] (Voltage Mode)

 [-50; 250] Thermocouple B

 [-200; 1000] Thermocouple E

 [-210; 1200] Thermocouple J

 [-200; 1372] Thermocouple K

 [-200; 1300] Thermocouple N

 [-50; 1768] Thermocouple  R

 [-50; 1768] Thermocouple  S

 [-200; 400] Thermocouple  T

 0Ohms - 600kOhms (Ohms Mode)

Notes:

(1) Should be specified in the following engineering units:

For Voltage Mode -> volts

For Thermocouples -> Degrees (C, F, K, or R) depending on setting in Set Temperature units

For RTDs -> Degrees (C, F, K, or R) depending on  setting in Set Temperature units

For Resistance Mode -> Ohms

numberOfScans

Variable Type       ViInt32

Sets the number of scans to read.

Default Value: 10

Valid Range: any ViUInt32

Notes:

(1)  Each scan reads a data point from each channel in the scan list.

For example, reading 5 scans from a 3-channel scan list will acquire

15 samples.

scansData

Variable Type       ViReal64[]

Returns the data points read from the device.

Return Value

Status	Description
0x0	No error (the call was successful).
INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_close

ViStatus NI435X_close (ViSession DAQsession);

Purpose

Discontinues communication with the instrument, and frees

associated system resources.

Notes:

(1) The instrument must be reinitialized to use it again.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate.  The

DAQ session is normally opened with the Initialize function.

Default Value:  None

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Configure_Custom_Mode

ViStatus NI435X_Configure_Custom_Mode (ViSession DAQsession,

ViReal64 forward[],

ViReal64 reverse[]);

Purpose

This function creates a custom  polynomial fit  for data acquired in

Thermocouple Custom channel mode.

Notes:

(1) NI435X Set Scan List must be run prior to running this function.

(2) Forward Coefficients set the scale for conversion of voltage to

temperature.

(3) Reverse Coefficients set the scale for conversion of temperature to

voltage.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate.  The

DAQ session is normally opened with the Initialize function.

Default Value:  None

forward

Variable Type       ViReal64[]

This array of Forward Coefficients sets the scale for conversion of

voltage to temperature.  Coefficients are listed in ascending order.

Default Value: none

reverse

Variable Type       ViReal64[]

This array of Reverse Coefficients sets the scale for conversion of

temperature to voltage. Coefficients are listed in ascending order.

Default Value: none

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Configure_Input_Port

ViStatus NI435X_Configure_Input_Port (ViSession DAQsession);

Purpose

This function configures and sizes an input port.

Notes:

(1) NI435X Initialize must be run prior to this function.

(2) Port width  is  8 bits for NI4350/4351 (ISA, PCI, PXI, and USB) and 4 bits for NI4350 (PCMCIA)

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate.  The

DAQ session is normally opened with the Initialize function.

Default Value:  None

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Configure_Output_Port

ViStatus NI435X_Configure_Output_Port (ViSession DAQsession);

Purpose

This function configures and sizes an output port.

Notes:

(1) NI435X Initialize must be run prior to this function.

(2) Port width  is 8 bits for NI4350/4351 (ISA, PCI, PXI, and USB) and 4 bits for NI4350 (PCMCIA)

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate.  The

DAQ session is normally opened with the Initialize function.

Default Value:  None

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_error_message

ViStatus NI435X_error_message (ViSession DAQsession,

ViStatus errorCode,

ViChar errorMessage[]);

Purpose

Takes the Status Code returned by the instrument driver functions,

interprets it and returns it as a user readable string.

Notes:

(1)  NI435X Initialize must be executed prior to running this function.

Instructions:

(1)  Select the type of dialog.

(2)  Run this function after a set of instrument driver functions to

report any errors.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate.  The

DAQ session is normally opened with the Initialize function.

Default Value:  None

errorCode

Variable Type       ViStatus

Accepts the Status Code returned from the instrument driver

functions.

Default Value:  0 - VI_SUCCESS

errorMessage

Variable Type       ViChar[]

Returns the interpreted Status Code as a user readable message

string.

Notes:

 (1) The array must contain at least 256 elements ViChar[256].

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_error_query

ViStatus NI435X_error_query (ViSession DAQsession,

ViInt32 *errorCode,

ViChar errorMessage[]);

Purpose

Reads an error code from the instrument's error queue.

Notes:

(1)  NI435X Initialize must be executed prior to running this function.

(2) This instrument does not support an Error Query. This function will

return -1302.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate.  The

DAQ session is normally opened with the Initialize function.

Default Value:  None

errorCode

Variable Type       ViInt32 (passed by reference)

Returns the error code read from the instrument's error queue.

errorMessage

Variable Type       ViChar[]

Returns the error message string read from the instrument's error

message queue.

Notes:

(1) The array must contain at least 256 elements ViChar[256].

Return Value

Status Codes:

Status    Description

-------------------------------------------------

INSTRUMENT ERRORS:

0xFFFFFAEA     NI435X_WARN_NSUP_ERROR_QUERY

0xFFFFFAE1     NI435X_ERROR_INVALID_SESSION

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_init

ViStatus NI435X_init (ViRsrc resourceName,

ViBoolean IDQuery,

ViBoolean resetDevice,

ViSession *DAQsession);

Purpose

Opens a session to establish communication with the instrument, and

optionally queries and resets the device.

Notes:

(1) Initialize must be called to open a session.

(2) IDQuery will verify the device type.

(3) Reset will reset the instrument to its default values.

Parameter List

resourceName

Variable Type       ViRsrc

Specifies the interface and address of the device that is to be

initialized (Instrument Descriptor). The exact grammar to be used in

this control is shown in the notes below.

Default Value:  "DAQ::1"

Notes:

(1)  The syntax to use is: DAQ::device number.

DAQ indicates that it is a data acquisition device and the device

number is the number used in the Measurement & Automation Explorer.

IDQuery

Variable Type       ViBoolean

Specifies if an ID Query should be performed during the

initialization procedure.  The ID Query will read the device name and

compare the device name to the expect value.

Default Value: True - Perform an ID query

Valid Range:

True - Perform an ID Query

False - Do not perform an ID Query

resetDevice

Variable Type       ViBoolean

Specifies if the instrument should be reset during the initialization

procedure.

Default Value: False - Do not reset the instrument

Valid Range:

True - Reset the instrument

False - Do not reset the instrument

DAQsession

Variable Type       ViSession (passed by reference)

Identifies the desired DAQ session with which to communicate.  The

DAQ session is normally opened with the Initialize Function.

Default Value:  None

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Read

ViStatus NI435X_Read (ViSession DAQsession,

ViInt32 numberOfScans,

ViReal64 timeout,

ViReal64 scansRead[]);

Purpose

Reads the number of measurements specified in Number Of Scans unless a

Timeout occurs.  This function returns measurements from the instrument

based on its current configuration.

Notes:

(1)  NI435X Acquisition Start/Stop should be run prior to this function.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate.  The

DAQ session is normally opened with the Initialize function.

Default Value:  None

numberOfScans

Variable Type       ViInt32

Sets the number of samples to read.

Default Value: 0

Valid Range: and ViInt32

timeout

Variable Type       ViReal64

Sets the maximum amount of time that this function will continue to

acquire data.

Default Value: 1

Valid Range: any ViInt32

scansRead

Variable Type       ViReal64[]

This indicator contains the  array of data read.

Notes:

(1)  If multiple channels are read then the data is interleaved.

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_readbackOutput

ViStatus NI435X_readbackOutput (ViSession DAQsession,

ViInt16 numberofPatterns,

ViInt32 writePattern[],

ViInt32 readPattern[]);

Purpose

This function configures an output port, writes patterns to the port, and

reads back the output pattern.

Notes:

(1) NI435X Initialize must be run prior to this function.

Parameter List

DAQsession

Variable Type       ViSession

Accepts the Instrument Handle returned by the Initialize function to

select the desired instrument driver session.

Default Value:  None

numberofPatterns

Variable Type       ViInt16

Specifies the number of patterns to write and read back.

Default Value: 1

Valid Range: any valid ViInt16.

writePattern

Variable Type       ViInt32[]

Specifies the new state of the lines in the port.

Default Value: 0xFFFFFFFF

Valid Range:   0x0 - 0xFFFFFFFF

readPattern

Variable Type       ViInt32[]

Returns the patterns read back from the port.

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Read_Line

ViStatus NI435X_Read_Line (ViSession DAQsession,

ViInt32 lineNumber,

ViBoolean *lineState);

Purpose

This vi reads the state of one line in a configured port.

Notes:

(1) The port must have been previously configured with either the NI435X Configure Output Port or

NI435X Configure Input Port function.

(2) Either an input or output port can be read.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate.  The

DAQ session is normally opened with the Initialize function.

Default Value:  None

lineNumber

Variable Type       ViInt32

Specifies which line in the port to read.

Default Value: 0

Valid Range:   0 - 7 for NI4350/4351 (ISA, PCI, PXI, and USB) and 4 bits for NI4350 (PCMCIA)

lineState

Variable Type       ViBoolean (passed by reference)

Returns the state of the line.

VI_OFF (0)  - Logical low

VI_ON  (1)  - Logical high

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Read_Port

ViStatus NI435X_Read_Port (ViSession DAQsession,

ViInt32 *pattern,

ViInt32 lineMask);

Purpose

This function reads the current pattern of the port.

Notes:

(1) The port must have been previously configured with

either the NI435X Configure Output Port or NI435X Configure Input Port

function.

(2) Either an input or output port can be read.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate. The DAQ session is normally

opened with the Initialize function.

Default Value:  None

pattern

Variable Type       ViInt32 (passed by reference)

Returns the current pattern of the port.

lineMask

Variable Type       ViInt32

Specifies which lines in the port to read.

Default Value: 0xFF

Valid Range: 0x0 - 0xFF

Notes:

(1)	To read bit n in the port, set bit n in the Line Mask to 1. To read the

entire port, set the Line Mask to 0xFF (-1).

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_reset

ViStatus NI435X_reset (ViSession DAQsession);

Purpose

Resets the instrument to a known state.

Notes:

(1)	NI435X Initialize must be executed prior to running this function.

Resets the instrument to a known state.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate. The DAQ session is normally

opened with the Initialize function.

Default Value:  None

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_revision_query

ViStatus NI435X_revision_query (ViSession DAQsession,

ViChar instrumentDriverRevision[],

ViChar firmwareRevision[]);

Purpose

This function queries the current instrument firmware revision and

instrument driver revision.

Notes:

(1)  NI435X Initialize must be executed prior to running this function.

(2)This instrument does not support a Revision Query. This function will

return  error -1304.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate.  The

DAQ session is normally opened with the Initialize.vi.

Default Value:  None

instrumentDriverRevision

Variable Type       ViChar[]

Returns the Instrument Driver Software Revision.

Notes:

(1) The array must contain at least 256 elements ViChar[256].

firmwareRevision

Variable Type       ViChar[]

Indicates the revision of the instrument firmware. The version and

corresponding capabilities are controlled by the instrument

manufacturer.

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_self_test

ViStatus NI435X_self_test (ViSession DAQsession,

ViInt16 *selfTestResult,

ViChar selfTestMessage[]);

Purpose

Runs the instrument's self test routine and returns the test result(s).

Notes:

(1) NI435X Initialize must be executed prior to running this function.

(2) This instrument does not support a Self-Test; this function will

return warning -1303.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate.  The

DAQ session is normally opened with the Initialize function.

Default Value:  None

selfTestResult

Variable Type       ViInt16 (passed by reference)

Indicates whether an error occurred from the self-test.

selfTestMessage

Variable Type       ViChar[]

The instruments response from the self-test.

Notes:

(1) The array must contain at least 256 elements ViChar[256].

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Set_Auto_Zero

ViStatus NI435X_Set_Auto_Zero (ViSession DAQsession,

ViBoolean autoZero);

Purpose

This function sets auto zero for all channels.

Notes:

(1)  NI435X Initialize should be run prior to this function.

(2) Auto Zero can be set only if the accessory connected to the device

has an auto zero channel.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate.  The

DAQ session is normally opened with the Initialize function.

Default Value:  None

autoZero

Variable Type       ViBoolean

This is a boolean control that sets auto zero.

Valid settings are documented as "setting: definition: value".

Definition is a #define in the header file; value is its value.

Default value: Off: NI435X_OFF: 0

Valid Range:

Off: NI435X_OFF: 0

On: NI435X_ON: 1

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Set_Channel_Mode

ViStatus NI435X_Set_Channel_Mode (ViSession DAQsession,

ViChar channelString[],

ViInt16 mode);

Purpose

This function sets the measurement mode.

Notes:

(1) NI435X Set Scan List must be run prior to running this function.

(2) NI435X Configure Custom Mode must be run prior to setting a channel

to thermocouple custom.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate.  The

DAQ session is normally opened with the Initialize function.

Default Value:  None

channelString

Variable Type       ViChar[]

This control defines the channels in the scan list.

Default Value: "0"

Notes:

(1) A colon may be used to express a range of channels.  For example,

1,2,3,4,6,8,9 can be entered as 1:4,6,8:9.

mode

Variable Type       ViInt16

This control selects the type of measurement to be acquired.

Valid settings are documented as "setting: definition: value".

Definition is a #define in the header file; value is its value.

Default Value: Voltage: NI435X_VOLTAGE: 0

Valid Range:

Voltage: NI435X_VOLTAGE: 0

Thermocouple B: NI435X_THERM_B: 1

Thermocouple E: NI435X_THERM_E: 2

Thermocouple J: NI435X_THERM_J: 3

Thermocouple N: NI435X_THERM_K: 4

Thermocouple K: NI435X_THERM_N: 5

Thermocouple R: NI435X_THERM_R: 6

Thermocouple S: NI435X_THERM_S: 7

Thermocouple T: NI435X_THERM_T: 8

RTD ITS-90: NI435X_RTD_ITS_90: 9

RTD American: NI435X_TRD_AMERICAN: 10

RTD DIN 43760: NI435X_RTD_DIN_43760: 11

Resistance: NI435X_RESISTANCE: 12

Thermocouple Custom: NI435X_THERM_CUSTOM: 13

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Set_CJC

ViStatus NI435X_Set_CJC (ViSession DAQsession,

ViChar channelString[],

ViInt16 mode,

ViReal64 value);

Purpose

This function sets cold junction compensation.

Notes:

(1)  NI435X Set Scan List must be run prior to running this function.

(2) Mode can be set to "Auto" only if an accessory is connected to the device.

(3) The Value control is not read unless Mode is set to "Manual".

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate.  The

DAQ session is normally opened with the Initialize function.

Default Value:  None

channelString

Variable Type       ViChar[]

This control defines the channels in the scan list.

Default Value: "0"

Notes:

(1)	A colon may be used to express a range of channels.  For example, 1,2,3,4,6,8,9 can be

entered as 1:4,6,8:9.

mode

Variable Type       ViInt16

This control selects the cold junction compensation type.

Valid settings are documented as "setting: definition: value".

Definition is a #define in the header file; value is its value.

Default Value: Manual: NI435X_MANUAL: 1

Valid Range:

Auto: NI435X_AUTO: 0

Manual: NI435X_MANUAL: 1

Notes:

(1)  CJC is allowed to be Auto only if there is an accessory

connected to the device.

value

Variable Type       ViReal64

Sets manual value for CJC in deg C.

Default value: 25 deg C.

Valid Range: 0 - 55 deg C

Notes:

(1)  The CJC temperature reference error ranges from ±0.2 to 0.5 deg C ( 0 to 55 deg C).

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Set_Gnd_Ref

ViStatus NI435X_Set_GND_Ref (ViSession DAQsession,

  ViChar channelString[],

  ViInt16 groundReference);

Purpose

This function sets the ground reference.

Default: "0"

Notes:

(1)  NI435X Set Channel Mode must be run prior to this function.

(2) Ground reference is set with the following conditions:

1. Ground Ref can be "On" only for Voltage or Thermocouple channels

2. Ground Ref can not be "On" for channels 0 and 1 if either TBX-68T,

 CB-27T or PSH32-TC6  is connected to the device.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate.  The

DAQ session is normally opened with the Initialize function.

Default Value:  None

channelString

Variable Type       ViChar[]

This control defines the channels in the scan list.

Default Value: "0"

Notes:

(1)	A colon may be used to express a range of channels.  For example, 1,2,3,4,6,8,9 can be

entered as 1:4,6,8:9.

groundReference

Variable Type       ViInt16

This control selects the ground reference options.

Valid settings are documented as "setting: definition: value".

Definition is a #define in the header file; value is its value.

Default Value: Off: NI435X_OFF: 0

Valid Range:

Off: NI435X_OFF: 0

On: NI435X_ON: 1

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Set_Number_Of_Scans

ViStatus NI435X_Set_Number_Of_Scans (ViSession DAQsession,

ViInt32 numberOfScans);

Purpose

This function sets the buffer size in scans.

Notes:

(1) NI435X Set Scan List must be run prior to this function.

(2)  If Number of Scans is set to 0, the buffer size will have a default value of 1000.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate.  The

DAQ session is normally opened with the Initialize function.

Default Value:  None

numberOfScans

Variable Type       ViInt32

Sets the number of scans to acquire.

Default value:0

Valid Range: any ViUInt32

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Set_Open_TC_Detection

ViStatus NI435X_Set_Open_TC_Detection (ViSession DAQsession,

ViChar channelString[],

ViInt16 OTCDetection);

Purpose

This function sets the open thermocouple detection.

Notes:

(1)  NI435X Set Channel Mode must be run prior to this function.

(2) Open Thermocouple Detection  can be set with the following conditions:

1. Open TC can be "On" only for Voltage or Thermocouple channels

2. Open TC can not be "On" for channels 0 and 1 if either

TBX-68T, CB-27T or PSH32-TC6  is connected to the device.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate.  The

DAQ session is normally opened with the Initialize function.

Default Value:  None

channelString

Variable Type       ViChar[]

This control defines the channels in the scan list.

Default Value: "0"

Notes:

(1)	A colon may be used to express a range of channels.  For example, 1,2,3,4,6,8,9 can be

entered as 1:4,6,8:9.

OTCDetection

Variable Type       ViInt16

This control selects the open thermocouple detection mode.

Valid settings are documented as "setting: definition: value".

Definition is a #define in the header file; value is its value.

Default Value: Off: NI435X_OFF: 0

Valid Range:

Off: NI435X_OFF: 0

On: NI435X_ON: 1

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Set_Powerline_Frequency

ViStatus NI435X_Set_Powerline_Frequency (ViSession DAQsession,

          ViInt16 powerlineFrequency);

Purpose

This function sets the powerline frequency.

Notes:

(1) NI435X Set Scan List must be run prior to running this function.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate.  The

DAQ session is normally opened with the Initialize function.

Default Value:  None

powerlineFrequency

Variable Type       ViInt16

This control selects the powerline frequency.

Valid settings are documented as "setting: definition: value".

Definition is a #define in the header file; value is its value.

Default Value: 60 Hz: NI435X_60HZ: 0

Valid Range:

50 Hz: NI435X_50HZ: 0

60 Hz: NI435X_60HZ: 1

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Set_Range

ViStatus NI435X_Set_Range (ViSession DAQsession,

ViChar channelString[],

ViReal64 lowLimits[],

ViReal64 highLimits[]);

Purpose

This function sets the measurement range.

Notes:

(1)  NI435X Set Scan List must be run prior to this function.

(2)  The units for the range are based on the mode set by NI435X Set Channel Mode.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate. The DAQ session is normally

opened with the Initialize function.

Default Value:  None

channelString

Variable Type       ViChar[]

This control defines the channels in the scan list.

Default Value: "0"

Notes:

(1)	A colon may be used to express a range of channels.  For example, 1,2,3,4,6,8,9 can be

entered as 1:4,6,8:9.

lowLimits

Variable Type       ViReal64[]

Configures the lower input limit for measurements.

Default Value: -15V

Valid Range: [-15V; 15V] (Voltage Mode)

 [-50; 250] Thermocouple B

 [-200; 1000] Thermocouple E

 [-210; 1200] Thermocouple J

 [-200; 1372] Thermocouple K

 [-200; 1300] Thermocouple N

 [-50; 1768] Thermocouple  R

 [-50; 1768] Thermocouple  S

 [-200; 400] Thermocouple  T

 0Ohms - 600kOhms (Ohms Mode)

Notes:

(1) Should be specified in the following engineering units:

For Voltage Mode -> volts

For Thermocouples -> Degrees (C, F, K, or R) depending on setting in Set Temperature units

For RTDs -> Degrees (C, F, K, or R) depending on  setting in Set Temperature units

    For Resistance Mode -> Ohms

highLimits

Variable Type       ViReal64[]

Configures the upper input limit for measurements.

Default Value: 15V

Valid Range: [-15V; 15V] (Voltage Mode)

 [-50; 250] Thermocouple B

 [-200; 1000] Thermocouple E

 [-210; 1200] Thermocouple J

 [-200; 1372] Thermocouple K

 [-200; 1300] Thermocouple N

 [-50; 1768] Thermocouple  R

 [-50; 1768] Thermocouple  S

 [-200; 400] Thermocouple  T

 0Ohms - 600kOhms (Ohms Mode)

Notes:

(1) Should be specified in the following engineering units:

For Voltage Mode -> volts

For Thermocouples -> Degrees (C, F, K, or R) depending on setting in Set Temperature units

For RTDs -> Degrees (C, F, K, or R) depending on  setting in Set Temperature units

For Resistance Mode -> Ohms

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Set_Reading_Rate

ViStatus NI435X_Set_Reading_Rate (ViSession DAQsession,

ViInt16 readingRate);

Purpose

This function sets the data acquisition rate.

Notes:

(1)  NI435X Set Powerline Frequency must be run prior to this vi.

(2) Specifications for the acquisition rate are given in the following syntax:

Rate:PLF:single channel rate:multiple channel rate

Fast:50Hz:50samples/s:8.8samples/s

Fast:60Hz:60samples/s:9.7samples/s

Slow:50Hz:10samples/s:2.8samples/s

Slow:60Hz:10samples/s:2.8samples/s

Note: the reading rate of a single channel is 60/50/10 Hz only if Auto Zero mode

Is set to “Auto Zero at start” or Auto Zero is set to Off.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate. The DAQ session is normally

opened with the Initialize function.

Default Value:  None

readingRate

Variable Type       ViInt16

This control selects the reading rate.

Valid settings are documented as "setting: definition: value".

Definition is a #define in the header file; value is its value.

Default Value: Fast: NI435X_FAST: 0

Valid Range:

Fast: NI435X_FAST: 0

Slow: NI435X_SLOW: 1

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Set_RTD_Ice_Point

ViStatus NI435X_Set_RTD_Ice_Point (ViSession DAQsession,

ViChar channelString[],

ViReal64 icePoint);

Purpose

This function sets the ice point of RTDs.

Notes:

 (1) NI435X Set Scan List should be run prior to this function.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate. The DAQ session is normally

opened with the Initialize function.

Default Value:  None

channelString

Variable Type       ViChar[]

This control defines the channels in the scan list.

Default Value: "0"

Notes:

(1)	A colon may be used to express a range of channels.  For example, 1,2,3,4,6,8,9 can be

entered as 1:4,6,8:9.

icePoint

Variable Type       ViReal64

This control selects the RTD ice point resistance.

Default Value: 100 Ohms

Valid Range: 0 Ohms to 600kOhms

Notes:

(1) The RTD ice point value is rounded to the nearest integer.

Floating point representation of this value is left for future

development.

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Interval_Scanning

ViStatus NI435X_Set_Scan_Interval (ViSession DAQsession,

ViChar channelString[],

ViInt16 mode, ViReal64 lowLimit,

ViReal64 highLimit,

ViInt32 scanInterval,

ViInt32 numberOfScans,

ViReal64 scansData[]);

Purpose

This function sets the channel mode, temperature units, powerline

frequency, reading rate and number of scans. It then reads the specified

number of scans with a delay of 'Scan Interval' seconds between

acquisitions.

Notes:

(1) NI435X Initialize must be run prior to this function.

(2) This application function can not be used for measurements in

Thermocouple Custom mode.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate.  The

DAQ session is normally opened with the Initialize function.

Default Value:  None

channelString

Variable Type       ViChar[]

This control defines the channels in the scan list.

Default Value: "2"

Notes:

(1) The scan list defines the channels that will be read during an

acquisition.  Each scan acquires one sample from each channel in the

scan list.  For example, if the scan list is 2:4 then each scan will

acquire a sample from channels 2,3, and 4.

(2) A colon may be used to express a range of channels.  For example,

1,2,3,4,6,8,9 can be entered as 1:4,6,8:9.

mode

Variable Type       ViInt16

This control selects the type of measurement to be acquired.

Valid settings are documented as "setting: definition: value".

Definition is a #define in the header file; value is its value.

Default Value: Voltage: NI435X_VOLTAGE: 0

Valid Range:

Voltage: NI435X_VOLTAGE: 0

Thermocouple B: NI435X_THERM_B: 1

Thermocouple E: NI435X_THERM_E: 2

Thermocouple J: NI435X_THERM_J: 3

Thermocouple N: NI435X_THERM_K: 4

Thermocouple K: NI435X_THERM_N: 5

Thermocouple R: NI435X_THERM_R: 6

Thermocouple S: NI435X_THERM_S: 7

Thermocouple T: NI435X_THERM_T: 8

RTD ITS-90: NI435X_RTD_ITS_90: 9

RTD American: NI435X_TRD_AMERICAN: 10

RTD DIN 43760: NI435X_RTD_DIN_43760: 11

Resistance: NI435X_RESISTANCE: 12

lowLimit

Variable Type       ViReal64

Configures the lower input limit for measurements.

Default Value: -15V

Valid Range: [-15V; 15V] (Voltage Mode)

 [-50; 250] Thermocouple B

 [-200; 1000] Thermocouple E

 [-210; 1200] Thermocouple J

 [-200; 1372] Thermocouple K

 [-200; 1300] Thermocouple N

 [-50; 1768] Thermocouple  R

 [-50; 1768] Thermocouple  S

 [-200; 400] Thermocouple  T

 0Ohms - 600kOhms (Ohms Mode)

Notes:

(1) Should be specified in the following engineering units:

For Voltage Mode -> volts

For Thermocouples -> Degrees (C, F, K, or R) depending on setting in Set Temperature units

For RTDs -> Degrees (C, F, K, or R) depending on  setting in Set Temperature units

For Resistance Mode -> Ohms

highLimit

Variable Type       ViReal64

Configures the upper input limit for measurements.

Default Value: 15V

Valid Range: [-15V; 15V] (Voltage Mode)

 [-50; 250] Thermocouple B

 [-200; 1000] Thermocouple E

 [-210; 1200] Thermocouple J

 [-200; 1372] Thermocouple K

 [-200; 1300] Thermocouple N

 [-50; 1768] Thermocouple  R

 [-50; 1768] Thermocouple  S

 [-200; 400] Thermocouple  T

 0Ohms - 600kOhms (Ohms Mode)

Notes:

(1) Should be specified in the following engineering units:

For Voltage Mode -> volts

For Thermocouples -> Degrees (C, F, K, or R) depending on setting in Set Temperature units

For RTDs -> Degrees (C, F, K, or R) depending on  setting in Set Temperature units

For Resistance Mode -> Ohms

scanInterval

Variable Type       ViInt32

Sets the time interval (in ms) between the acquisition of each scan.

Default Value: 500 ms

Valid Range: any ViUInt32

numberOfScans

Variable Type       ViInt32

Sets the number of scans to read.

Default Value: 100

Valid Range: any ViUInt32

Notes:

(1)  Each scan reads a data point from each channel in the scan list.

For example, reading 5 scans from a 3-channel scan list will acquire

15 samples.

scansData

Variable Type       ViReal64[]

Returns data acquired from the device.

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Set_Scan_List

ViStatus NI435X_Set_Scan_List (ViSession DAQsession,

ViChar channelString[]);

Purpose

This function configures the channel scan list.

Default Value: "0"

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate.  The

DAQ session is normally opened with the Initialize function.

Default Value:  None

channelString

Variable Type       ViChar[]

This control defines the channels in the scan list.

Default Value: "0"

Notes:

(1) The scan list defines the channels that will be read during an

acquisition.  Each scan acquires one sample from each channel in the

scan list.  For example, if the scan list is 2:4 then each scan will

acquire a sample from channels 2,3, and 4.

(2)	A colon may be used to express a range of channels.  For example, 1,2,3,4,6,8,9 can be

entered as 1:4,6,8:9.

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Set_Shunt_Value

ViStatus NI435X_Set_Shunt_Value (ViSession DAQsession,

            ViChar channelString[],

            ViReal64 shuntResistance);

Purpose

This function sets the value of the shunt resistance

Notes:

(1) NI435X Set Scan List must be run prior to running this function.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate.  The DAQ session is normally

opened with the Initialize function.

Default Value:  None

channelString

Variable Type       ViChar[]

This control defines the channels in the scan list.

Default Value: "0"

Notes:

(1)	A colon may be used to express a range of channels. For example, 1,2,3,4,6,8,9 can be

entered as 1:4,6,8:9.

shuntResistance

Variable Type       ViReal64

This control selects the shunt resistance.

Default Value:  249 Ohms

Valid Range: 0 Ohms to 600 kOhms

Notes:

(1) The Shunt Resistance value is rounded to the nearest integer.

Floating point representation of this value is left for future

development.

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Set_Temperature_Units

ViStatus NI435X_Set_Temperature_Units (ViSession DAQsession,

      ViChar channelString[],

      ViInt16 units);

Purpose

This function sets the temperature units for temperature measurements.

Notes:

(1) NI435X Set Scan List must be run prior to running this function.

(2) Temperature units should be set for the channels configured for

thermocouples or RTDs.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate. The DAQ session is normally

opened with the Initialize function.

Default Value:  None

channelString

Variable Type       ViChar[]

This control defines the channels in the scan list.

Default Value: "0"

Notes:

(1)	A colon may be used to express a range of channels.  For example, 1,2,3,4,6,8,9 can be

entered as 1:4,6,8:9.

units

Variable Type       ViInt16

This control selects the temperature units.

Valid settings are documented as "setting: definition: value".

Definition is a #define in the header file; value is its value.

Default Value: deg C: 0

Valid Range:

Deg C: NI435X_DEG_C: 0

Deg F: NI435X_DEG_F: 1

Deg K: NI435X_DEG_K: 2

Deg R: NI435X_DEG_R: 3

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Write_Line

ViStatus NI435X_Write_Line (ViSession DAQsession,

ViInt32 lineNumber,

ViBoolean lineState);

Purpose

This vi sets the state of one line in an output port.

Notes:

(1) The port must have been previously configured with

the NI435X Configure Output Port vi or the line must have

been configured with NI435X Configure Digital Lines.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate. The DAQ session is normally

opened with the Initialize function.

Default Value:  None

lineNumber

Variable Type       ViInt32

Specifies which line in the port to update.

Default Value: 0

Valid Range: 0 - 7 for NI4350/4351 (ISA, PCI, PXI, and USB) and 4 bits for NI4350 (PCMCIA)

lineState

Variable Type       ViBoolean

Sets the state of the line.

Valid settings are documented as "setting: definition: value".

Definition is a #define in the header file; value is its value.

Default Value: Off: NI435X_OFF: 0 -  logical low

Valid Range:

Off: NI435X_OFF: 0 -  logical low

On: NI435X_ON: 1 -  logical high

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Write_Port

ViStatus NI435X_Write_Port (ViSession DAQsession,

ViInt32 pattern,

ViInt32 lineMask);

Purpose

This function writes a pattern to an output port.

Notes:

(1) The port must have been previously configured as output with

the NI435X Configure Output Port function or the line must have

been configured with NI435X Configure Digital Lines.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate.  The

DAQ session is normally opened with the Initialize function.

Default Value:  None

pattern

Variable Type       ViInt32

Specifies the new state of the lines in the port.

Default Value: none

Valid Range:   0x0 - 0xFF

lineMask

Variable Type       ViInt32

Specifies which lines in the port to update.

Default Value: 0xFF

Valid Range: 0x0 - 0xFF

Notes:

(1)	To update bit n in the port, set bit n in the Line Mask to 1.

To update the entire port, set the Line Mask to 0xFF (-1).

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Configure_Digital_Lines

ViStatus NI435X_Configure_Input_Port (ViSession DAQsession, ViInt32 lineMask);

Purpose

This function configures each line in a digital individually (each line can be either an input or output).

Notes:

(1) NI435X Initialize must be run prior to this function.

(2) Port width  is  8 bits for NI4350/4351 (ISA, PCI, PXI, and USB) and 4 bits for NI4350 (PCMCIA)

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate. The DAQ session is normally

opened with the Initialize function.

Default Value:  None

lineMask

Variable Type       ViInt32

Specifies the direction for each line in the port.

Default Value: 0 (All lines input)

Valid Range: 0x0 to 0xFFFFFFFF

Notes:

(1) To configure bit n in the port as output , set bit n in the Line Mask to 1.  To configure bit n in the port as input, set bin n in the Line Mask to 0.

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Getting_Started_Multi

ViStatus NI435X_Getting_Started_Multi (ViRsrc resourceName, ViInt32 numberOfScans,

  ViInt16 powerlineFreq, ViInt16 readingRate,

  ViUInt16 channelGroups, ViChar *channelStrings[],

  ViInt16 modes[], ViReal 64 lowLimits[],

  ViReal64 highLimits[], ViReal64 scansData[]);

Purpose

Initializes the instrument, sets the channel mode, temperature units, powerline frequency, reading rate, and number of scans for each channel group; starts the acquisition, reads the specified number of scans, and closes the instrument.  This function will configure autozero for all channels to auto and CJC for temperature modes to auto.  This function requires an accessory that supports autozero and CJC.

Parameter List

resourceName

Variable Type       ViRsrc

Specifies the interface and address of the device that is to be

initialized (Instrument Descriptor). The exact grammar to be used in

this control is shown in the notes below.

Default Value:  "DAQ::1"

Notes:

 (1)  The syntax to use is:

DAQ::device number.

DAQ indicates that it is a data acquisition device and the device

number is the number used in the Measurement & Automation Explorer.

numberOfScans

Variable Type       ViInt32

Sets the number of scans to read.

Default Value: 10

Valid Range: any ViUInt32

Notes:

(1)  Each scan reads a data point from each channel in the scan list.

For example, reading 5 scans from a 3-channel scan list will acquire 15 samples.

powerlineFreq

Variable Type       ViInt16

This control selects the powerline frequency.

Valid settings are documented as "setting: definition: value".

Definition is a #define in the header file; value is its value.

Default Value: 60 Hz: NI435X_60HZ: 0

Valid Range:

50 Hz: NI435X_50HZ: 0

60 Hz: NI435X_60HZ: 1

readingRate

Variable Type       ViInt16

This control selects the reading rate.

Valid settings are documented as "setting: definition: value".

Definition is a #define in the header file; value is its value.

Default Value: Fast: NI435X_FAST: 0

Valid Range:

Fast: NI435X_FAST: 0

Slow: NI435X_SLOW: 1

channelGroups

Variable Type       ViUInt16

This control selects the number of channel groups.  Each channel group maintains its unique mode, and limit values.

Default Value: 1

Valid Range:  Any valid ViUInt16

channelStrings

Variable Type       ViChar *[]

An array of channel strings; each string defines the channels in the channel group.

Default Value: None

Notes:

(1)	The scan list defines the channels that will be read during an acquisition.

Each scan acquires one sample from each channel in the scan list.  For example,

if the scan list is 2:4 then each scan will acquire a sample from channels 2,3, and 4.

(2)	A colon may be used to express a range of channels.  For example,1,2,3,4,6,8,9 can be

entered as 1:4,6,8:9.

modes

Variable Type       ViInt16[]

An array of modes; each entry selects the type of measurement to be acquired for that channel group.

Valid settings are documented as "setting: definition: value".

Definition is a #define in the header file; value is its value.

Default Value: None

Valid Range: (for each entry)

Voltage: NI435X_VOLTAGE: 0

Thermocouple B: NI435X_THERM_B: 1

Thermocouple E: NI435X_THERM_E: 2

Thermocouple J: NI435X_THERM_J: 3

Thermocouple N: NI435X_THERM_K: 4

Thermocouple K: NI435X_THERM_N: 5

Thermocouple R: NI435X_THERM_R: 6

Thermocouple S: NI435X_THERM_S: 7

Thermocouple T: NI435X_THERM_T: 8

RTD ITS-90: NI435X_RTD_ITS_90: 9

RTD American: NI435X_TRD_AMERICAN: 10

RTD DIN 43760: NI435X_RTD_DIN_43760: 11

Resistance: NI435X_RESISTANCE: 12

lowLimits

Variable Type       ViReal64[]

An array of limits; each entry configures the lower input limit for measurements in the channel group.

Default Value: None

Valid Range: [-15V; 15V] (Voltage Mode)

 [-50; 250] Thermocouple B

 [-200; 1000] Thermocouple E

 [-210; 1200] Thermocouple J

 [-200; 1372] Thermocouple K

 [-200; 1300] Thermocouple N

 [-50; 1768] Thermocouple  R

 [-50; 1768] Thermocouple  S

 [-200; 400] Thermocouple  T

 0Ohms - 600kOhms (Ohms Mode)

Notes:

(1) Should be specified in the following engineering units:

For Voltage Mode -> volts

For Thermocouples -> Degrees (C, F, K, or R) depending on setting in Set Temperature units

For RTDs -> Degrees (C, F, K, or R) depending on  setting in Set Temperature units

For Resistance Mode -> Ohms

highLimits

Variable Type       ViReal64[]

An array of limits; each entry configures the lower input limit for measurements in the channel group.

Default Value: None

Valid Range: [-15V; 15V] (Voltage Mode)

 [-50; 250] Thermocouple B

 [-200; 1000] Thermocouple E

 [-210; 1200] Thermocouple J

 [-200; 1372] Thermocouple K

 [-200; 1300] Thermocouple N

 [-50; 1768] Thermocouple  R

 [-50; 1768] Thermocouple  S

 [-200; 400] Thermocouple  T

 0Ohms - 600kOhms (Ohms Mode)

Notes:

(1) Should be specified in the following engineering units:

For Voltage Mode -> volts

For Thermocouples -> Degrees (C, F, K, or R) depending on setting in Set Temperature units

For RTDs -> Degrees (C, F, K, or R) depending on  setting in Set Temperature units

For Resistance Mode -> Ohms

scansData

          Variable Type       ViReal64[]

          Returns the data points read from the device.

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Configure

ViStatus NI435X_Configure (ViSession DAQ_Session, ViInt32 numberOfScans,

ViInt16 powerlineFreq, ViInt16 readingRate,

ViUInt16 Number_Of_Transducer_Groups,

Char *Channel_List[], ViInt16 modes[], ViReal64 lowLimits[],

ViReal64 highLimits[]);

Purpose

High Level configuration function.  Configures the most common application settings.

Note:

This function is not supported in Visual Basic.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate. The DAQ session is normally

opened with the Initialize function.

Default Value:  None

numberOfScans

          Variable Type       ViInt32

          Sets the number of scans to read.

          Default Value: 100

          Valid Range: any ViUInt32

          Notes:

          (1)  Each scan reads a data point from each channel in the scan list.

          For example, reading 5 scans from a 3-channel scan list will acquire 15 samples.

powerlineFreq

Variable Type       ViInt16

This control selects the powerline frequency.

Valid settings are documented as "setting: definition: value".

Definition is a #define in the header file; value is its value.

Default Value: 60 Hz: NI435X_60HZ: 0

Valid Range:

50 Hz: NI435X_50HZ: 0

60 Hz: NI435X_60HZ: 1

readingRate

Variable Type       ViInt16

This control selects the reading rate.

Valid settings are documented as "setting: definition: value".

Definition is a #define in the header file; value is its value.

Default Value: Fast: NI435X_FAST: 0

Valid Range:

Fast: NI435X_FAST: 0

Slow: NI435X_SLOW: 1

Number Of Transducer Groups

Variable Type       ViUInt16

Specifies the number of transducer groups.  Each transducer group maintains its own channel list, mode, and limit values.

Default Value: 1

Valid Range: Any valid ViUInt16

Channel List[]

          Variable Type       Char []

An array of channel strings; each string defines the channels in the channel group.

          Default Value: None

          Notes:

          (1) The scan list defines the channels that will be read during an

          acquisition.  Each scan acquires one sample from each channel in the

          scan list.  For example, if the scan list is 2:4 then each scan will

          acquire a sample from channels 2,3, and 4.

(3)	A colon may be used to express a range of channels.  For example, 1,2,3,4,6,8,9 can be

entered as 1:4,6,8:9.

        Modes[]

          Variable Type       ViInt16[]

An array of modes; each entry selects the type of measurement to be acquired for that channel group.

          Valid settings are documented as "setting: definition: value".

          Definition is a #define in the header file; value is its value.

          Default Value: None

          Valid Range: (for each entry)

          Voltage: NI435X_VOLTAGE: 0

          Thermocouple B: NI435X_THERM_B: 1

          Thermocouple E: NI435X_THERM_E: 2

          Thermocouple J: NI435X_THERM_J: 3

          Thermocouple N: NI435X_THERM_K: 4

          Thermocouple K: NI435X_THERM_N: 5

          Thermocouple R: NI435X_THERM_R: 6

          Thermocouple S: NI435X_THERM_S: 7

          Thermocouple T: NI435X_THERM_T: 8

          RTD ITS-90: NI435X_RTD_ITS_90: 9

          RTD American: NI435X_TRD_AMERICAN: 10

          RTD DIN 43760: NI435X_RTD_DIN_43760: 11

          Resistance: NI435X_RESISTANCE: 12

lowLimits[]

Variable Type       ViReal64[]

An array of limits; each entry configures the lower input limit for measurements in the channel group.

Default Value: None

Valid Range: [-15V; 15V] (Voltage Mode)

 [-50; 250] Thermocouple B

 [-200; 1000] Thermocouple E

 [-210; 1200] Thermocouple J

 [-200; 1372] Thermocouple K

 [-200; 1300] Thermocouple N

 [-50; 1768] Thermocouple  R

 [-50; 1768] Thermocouple  S

 [-200; 400] Thermocouple  T

 0Ohms - 600kOhms (Ohms Mode)

Notes:

(1) Should be specified in the following engineering units:

For Voltage Mode -> volts

For Thermocouples -> Degrees (C, F, K, or R) depending on setting in Set Temperature units

For RTDs -> Degrees (C, F, K, or R) depending on  setting in Set Temperature units

For Resistance Mode -> Ohms

highLimits[]

Variable Type       ViReal64[]

An array of limits; each entry configures the lower input limit for measurements in the channel group.

Default Value: None

Valid Range: [-15V; 15V] (Voltage Mode)

 [-50; 250] Thermocouple B

 [-200; 1000] Thermocouple E

 [-210; 1200] Thermocouple J

 [-200; 1372] Thermocouple K

 [-200; 1300] Thermocouple N

 [-50; 1768] Thermocouple  R

 [-50; 1768] Thermocouple  S

 [-200; 400] Thermocouple  T

 0Ohms - 600kOhms (Ohms Mode)

Notes:

(1) Should be specified in the following engineering units:

For Voltage Mode -> volts

For Thermocouples -> Degrees (C, F, K, or R) depending on setting in Set Temperature units

For RTDs -> Degrees (C, F, K, or R) depending on  setting in Set Temperature units

For Resistance Mode -> Ohms

Return Value

Status	Description
0x0	No error (the call was successful).

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Set_Current_Source

ViStatus NI435X_Set_Current_Source (ViSession DAQ_Session, ViChar channel_String[],

 ViInt16 current_Source);

Purpose

This vi sets the current source to be used with resistance and RTD measurements.

Notes:

(1) NI435X Initialize must be run prior to this vi.

(2) The default current source is 25 uA.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate. The DAQ session is normally

opened with the Initialize function.

Default Value:  None

channel_String[]

          Variable Type       ViChar

This control defines the channels in the scan list.

Default Value: "0"

Notes:

(1)	A colon may be used to express a range of channels.  For example, 1,2,3,4,6,8,9 can be

entered as 1:4,6,8:9.

current Source

          Variable Type       ViInt16

This control selects the current source.

Valid settings are documented as "setting: definition: value".

Definition is a #define in the header file; value is its value.

Default Value: 25 uA:  (NI435X_25uA: 0)

Valid Range:

25 uA: NI435X_25uA: 0

1 mA: NI435X_1 mA : 1

INSTRUMENT ERRORS:

0XffFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Set_Auto_Zero_Mode

ViStatus NI435X_Set_Auto_Zero_Mode (ViSession DAQ_Session, ViInt16 Auto_Zero_Mode);

Purpose

This function sets auto zero mode.

Auto Zero must be turned on with Set Auto Zero for the mode to be active.

Notes:

(1)  NI435X Initialize should be run prior to this function.

(2)   Auto Zero must be turned on with Set Auto Zero for the mode to be active.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate.  The

DAQ session is normally opened with the Initialize function.

Default Value:  None

Auto Zero Mode

          Variable Type       ViInt16

          This control sets auto zero mode.

          Modes:

a)	Auto zero for each scan

- make an auto zero measurement at the beginning of each scan. This will slow down the scan rate.

b)	Auto zero at start

- make an auto zero measurement once, at the beginning of the scan only.

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Check_And_Read

ViStatus NI435X_Check_And_Read (ViSession DAQ_Session, ViReal64 Timeout,

              ViInt32 *Scans_Read, ViReal64 Scans_Buffer[]);

Purpose

Reads the number of measurements available unless a Timeout occurs.  This function returns measurements from the instrument based on its current configuration.

Notes:

(1)  NI435X Acquisition Start/Stop should be run prior to this function.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate. The DAQ session is normally

opened with the Initialize function.

Default Value:  None

Timeout

          Variable Type       ViReal64

Sets the maximum amount of time (in seconds) that this function will continue to acquire data.

Default Value: -1.00 (auto time limit)

Valid Range: -1.00 to 65536.00

          Scans Read

          Variable Type       ViInt32

          Returns the number of scans available in the buffer.

          Scans Buffer[]

          Variable Type       ViReal64

          This indicator contains the  array of data read.

          Notes:

 (1)  If multiple channels are read then the data is interleaved.

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Getting_Started_Digital

ViStatus NI435X_Getting_Started_Digital (ViRsrc resourceName, ViUInt32 Output_Line,

   ViUInt32 Write_Pattern,ViUInt32 *Read_Pattern);

Purpose

This function opens a session to establish communication with the instrument, configures the lines as input or output based on the output line mask, updates all the output lines with the write pattern, reads all the lines and closes the instrument.

Parameter List

resourceName

          	Variable Type       ViRsrc

          	Specifies the interface and address of the device that is to be initialized (Instrument Descriptor).

The exact grammar to be used in this control is shown in the notes below.

          	Default Value:  "DAQ::1"

          	Notes:

          	(1)  The syntax to use is: DAQ::device number.

DAQ indicates that it is a data acquisition device and the device number is the number used in the Measurement & Automation Explorer.

Output Line Mask

          	Variable Type       ViUInt32

Specifies the digital output lines.

Default Value: 0x0 (All digital lines input)

Valid Range:   0x0 - 0xFFFFFFFF

Notes:

(1)	To configure bit n in the port as output, set bit n to 1.

To configure bit n in the port as input, set bin n to 0.

(2)	The NI 435x for PCMCIA has 4 digital lines;

All other NI 4350 devices have 8 digital lines.

Bits that do not have a corresponding digital line will be ignored

Write Pattern

          	Variable Type       ViUInt32

Specifies the new state of the lines in the port.

Default Value: 0xFFFFFFFF (all digital lines high)

Valid Range:   0x0 - 0xFFFFFFFF

Notes:

(1)	To set digital line n high, set bit n to 1.

To set digital line n low, set bin n to 0.

(2) The bits corresponding to digital input lines will be ignored.

(3) The NI 435x for PCMCIA has 4 digital lines; all other NI 4350 devices have 8 digital lines.  Bits that do not have a corresponding digital line will be ignored

Read Pattern

          	Variable Type       ViUInt32

Returns the patterns read back from the port.

Notes:

(1) If bit n is 1, digital line n is high.  If bin n is 0, digital line n is low.

(2) The NI 435x for PCMCIA has 4 digital lines; all other NI 4350 devices have 8 digital lines.  Bits that do not have a corresponding digital line will returned as 0.

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.


NI435X_Get_Number_Of_Channels

ViStatus NI435X_Get_Number_Of_Channels (ViRsrc resourceName, ViUInt32 *Number_Of_Channels);

Purpose

Returns the number of channels in the configured scan list.

Notes:

(1)  NI435X Set Scan List must be called prior to calling this function.

Parameter List

DAQsession

Variable Type       ViSession

Identifies the desired DAQ session with which to communicate.  The

DAQ session is normally opened with the Initialize function.

Default Value:  None

Number Of Channels

          Variable Type       ViInt32

The number of channels in the configured scan list.

INSTRUMENT ERRORS:

0xFFFFFB39	NI435X_ERROR_FAIL_ID_QUERY
0xFFFFFAEB	NI435X_ERROR_PARSING
0xFFFFFAEA	NI435X_WARN_NSUP_ERROR_QUERY
0xFFFFFAE9	NI435X_WARN_NSUP_SELF_TEST
0xFFFFFAE8	NI435X_WARN_NSUP_REV_QUERY
0xFFFFFAE7	NI435X_ERROR_SETTINGS
0xFFFFFAE6	NI435X_ERROR_PARAMETER2
0xFFFFFAE5	NI435X_ERROR_PARAMETER3
0xFFFFFAE4	NI435X_ERROR_PARAMETER4
0xFFFFFAE3	NI435X_ERROR_INVALID_SESSION
0xFFFFFAE2	NI435X_ERROR_MAX_SESSIONS
0xFFFFFAE1	NI435X_ERROR_UNKNOWN_STATUS
0xFFFFFAE0	NI435X_ERROR_MEMORY
0xFFFFFADF	NI435X_ERROR_INVALID_OTC
0xFFFFFADE	NI435X_ERROR_INVALID_GND_REF
0xFFFFFADD	NI435X_ERROR_NO_CJC
0xFFFFFADC	NI435X_ERROR_NO_AUTO_ZERO
0xFFFFFADB	NI435X_ERROR_INVALID_CHAN_MODE
0xFFFFFADA	NI435X_ERROR_INVALID_CHANNEL
0xFFFFFAD9	NI435X_ERROR_CUSTOM_MODE
0xFFFFFAD8	NI435X_WARN_AUTO_ZERO

Note:

(1) Any error occurring in this function that is not contained in the

list above can be found by using the error message function to look

up the error code and to display the corresponding error message.