Skip to main content
Skip table of contents

CDRFLEx.get_tool_analog_input

Features

This is a function for load the channel value corresponding to the analog input from 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)

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.