Engee documentation

GP-LC-4x DI

Getting values from the digital inputs of the RITMeX GP-LC-45 I/O module.

blockType: CFunction

Path in the library:

/RITM/RITMeX GP-LC-4X/GP-LC-4x DI

Description

To work with the block, install/update the support package RITM blocks.

Block GP-LC-4x DI It is used to obtain values from the digital inputs of the RITMeX GP-LC-45 I/O module.

Specifications:

  • The number of channels is `16'.

  • The voltage range is -0.2…​+0.6` In ("zero"), +2.4…​+5.0 In ("unit").

  • The input frequency is 2 MHz.

Ports

Output

# di — generation of the array of samples received from digital inputs
vector

Details

The array size corresponds to the parameter Number of channels in the block.

Data types

Float64.

Complex numbers support

No

Parameters

Main group

# Номер модуля: — unique identification of the module
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8

Details

It is used when more than one I/O module of the same type is installed in a real-time machine.

Values

1 | 2 | 3 | 4 | 5 | 6 | 7 | 8

Default value

1

Program usage name

m_module_idx

Tunable

No

Evaluatable

Yes

# Количество каналов: — selection of the number of digital input channels used
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16

Details
Values

1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16

Default value

1

Program usage name

m_di_amount

Tunable

No

Evaluatable

Yes

# Резисторная подтяжка на питание — switching on the resistor boost to power for all digital inputs

Details
Default value

false (switched off)

Program usage name

m_pullup

Tunable

No

Evaluatable

Yes

# Шаг расчёта, с: — The calculation step is to get the samples from the digital input channels to the real-time application

Details
Default value

-1

Program usage name

m_sample_time

Tunable

No

Evaluatable

Yes