Start of trail End of trail navigation bar

Table of Contents

t_analog_input_configuration

Enumerated type for representing analog input configurations for the quanser.hardware.hil.set_analog_input_configuration method or hil_set_analog_input_configuration function.

Syntax

        enumeration t_analog_input_configuration
    

Description

The t_analog_input_configuration enumeration is used as an argument to the quanser.hardware.hil.set_analog_input_configuration to represent an analog input configuration.

The values of the enumeration are:

Name

Value

Description

ANALOG_INPUT_RSE_CONFIGURATION

0

A single-ended ground-referenced (RSE) input.

ANALOG_INPUT_NRSE_CONFIGURATION

1

Single-ended non-referenced input (NRSE).

ANALOG_INPUT_DIFF_CONFIGURATION

2

Differential input (DIFF).

ANALOG_INPUT_PDIFF_CONFIGURATION

3

Pseudo-differential input (PDIFF), where the positive input is connected to the signal and the negative input is connected to the negative terminal of the sensor and a ground-referencing resistor. The negative input is not intended to carry a signal but only provide a DC reference point.

Parameters

This function has no parameters.

Outputs

int32

Get the numeric value of an enumeration element by casting it to an int32. For example:

int32(t_analog_input_configuration.ANALOG_INPUT_DIFF_CONFIGURATION)

which yields 2.

char

Get the name of an enumeration element by casting it to a char. For example:

char(t_analog_input_configuration.ANALOG_INPUT_DIFF_CONFIGURATION)

which yields 'ANALOG_INPUT_DIFF_CONFIGURATION'.

Examples

        board.set_analog_input_configuration(0, t_analog_input_configuration.ANALOG_INPUT_DIFF_CONFIGURATION);
    

See Also

 

navigation bar