Ishraq Ibne Ashraf
and 1 contributors

NAME

Tinkerforge::BrickletIndustrialAnalogOut - Generates configurable DC voltage and current, 0V to 10V and 4mA to 20mA

CONSTANTS

DEVICE_IDENTIFIER

This constant is used to identify a Industrial Analog Out Bricklet.

The get_identity() subroutine and the CALLBACK_ENUMERATE callback of the IP Connection have a device_identifier parameter to specify the Brick's or Bricklet's type.

DEVICE_DISPLAY_NAME

This constant represents the display name of a Industrial Analog Out Bricklet.

FUNCTION_ENABLE

This constant is used with the get_response_expected(), set_response_expected() and set_response_expected_all() subroutines.

FUNCTION_DISABLE

This constant is used with the get_response_expected(), set_response_expected() and set_response_expected_all() subroutines.

FUNCTION_IS_ENABLED

This constant is used with the get_response_expected(), set_response_expected() and set_response_expected_all() subroutines.

FUNCTION_SET_VOLTAGE

This constant is used with the get_response_expected(), set_response_expected() and set_response_expected_all() subroutines.

FUNCTION_GET_VOLTAGE

This constant is used with the get_response_expected(), set_response_expected() and set_response_expected_all() subroutines.

FUNCTION_SET_CURRENT

This constant is used with the get_response_expected(), set_response_expected() and set_response_expected_all() subroutines.

FUNCTION_GET_CURRENT

This constant is used with the get_response_expected(), set_response_expected() and set_response_expected_all() subroutines.

FUNCTION_SET_CONFIGURATION

This constant is used with the get_response_expected(), set_response_expected() and set_response_expected_all() subroutines.

FUNCTION_GET_CONFIGURATION

This constant is used with the get_response_expected(), set_response_expected() and set_response_expected_all() subroutines.

FUNCTION_GET_IDENTITY

This constant is used with the get_response_expected(), set_response_expected() and set_response_expected_all() subroutines.

FUNCTIONS

new()

Creates an object with the unique device ID *uid* and adds it to the IP Connection *ipcon*.

enable()

Enables the output of voltage and current.

The default is disabled.

disable()

Disables the output of voltage and current.

The default is disabled.

is_enabled()

Returns *true* if output of voltage and current is enabled, *false* otherwise.

set_voltage()

Sets the output voltage in mV.

The output voltage and output current are linked. Changing the output voltage also changes the output current.

get_voltage()

Returns the voltage as set by :func:`Set Voltage`.

set_current()

Sets the output current in µA.

The output current and output voltage are linked. Changing the output current also changes the output voltage.

get_current()

Returns the current as set by :func:`Set Current`.

set_configuration()

Configures the voltage and current range.

Possible voltage ranges are:

* 0V to 5V * 0V to 10V (default)

Possible current ranges are:

* 4mA to 20mA (default) * 0mA to 20mA * 0mA to 24mA

The resolution will always be 12 bit. This means, that the precision is higher with a smaller range.

get_configuration()

Returns the configuration as set by :func:`Set Configuration`.

get_identity()

Returns the UID, the UID where the Bricklet is connected to, the position, the hardware and firmware version as well as the device identifier.

The position can be 'a', 'b', 'c' or 'd'.

The device identifier numbers can be found :ref:`here <device_identifier>`. |device_identifier_constant|