Encoder

Encoder

    Encoder

Library

Basic

Parameters

Encoder_0

NameLabelDescriptionData TypeValid Values

Pin1

Channel A digital pin

Pin2

Channel B digital pin

Type

Mode for encoder

String

'Rising
on
channel
A'
'Change
on
channel
A'
'Change
on
channel
A
and
B'

useReset

Use reset port

Number

0
1

Encoder_1

NameLabelDescriptionData TypeValid Values

use_open_port

Use opened serial port

if this checkbox is checked ON, the block uses the serial communication channel opened by the ArduinoConfiguration block.
If the model is connected to multiple Arduino boards, it should be unchecked, and the actual communication port should be provided as a block parameter.

Number

0
1

com_port

Communication port

String

'COM4'

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

output

1

Port 2

activation

input

1

Port 3

activation

input

useReset

Port 4

explicit

input

useReset