Skip to main content
Skip table of contents

CDRFLEx.set_mode_tool_analog_input

Features

is a function for set the input type for analog input on the robot flange.

The port parameter is only available in the new flange version (v2)

Parameter

Parameter Name

Data Type

Default Value

Description

nCh

int

-

1 : channel 1

2 : channel 2

3 : channel 3 (support M/H model only)

4 : channel 4 (support M/H model only)

eAnalogType

enum.GPIO_ANALOG_TYPE

-

Refer to the Definition of Constant and Enumeration Type

Return

Value

Description

0

Error

1

Success

Example

CPP
Drfl.set_mode_tool_analog_input(1, GPIO_ANALOG_TYPE_CURRENT);
Drfl.set_mode_tool_analog_input(2, GPIO_ANALOG_TYPE_VOLTAGE);
float cur = Drfl.get_tool_analog_input(1);
float vol = Drfl.get_tool_analog_input(2);


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.