Digital (ch 1-8, 1 kHz, 4 byte)

The digital output contains a digital interpretation of the observed waveform. The waveform is digitized according to the configured thresholds.

When scaling is used (>1), the High and Low signals can be used as level detectors when the digital output frequency is scaled. This can e.g. be used to capture brief events even when configured to produce a low frequency digital output.

Configuration file fields

This section is autogenerated from the Rule Schema.

Digital, channel 1-8 (1 ms) output.digital_1_8

State output.digital_1_8.state

Type Default Options
integer 1

Disable: 0 Enable: 1

ID Format output.digital_1_8.id_format

ID format of the message

Type Default Options
integer 0

Standard (11-bit): 0 Extended (29-bit): 1

Message ID (hex) output.digital_1_8.id

ID of the message in hex. Example: 00435354.

Type Default
string 01

Trigger method output.digital_1_8.trigger

Transmission trigger method. Push: Signal is periodically transmitted. Poll: Signal is transmitted on request

Type Default Options
integer 0

Push: 0 Poll: 1


Frame layout

Note

The frame layout is defined in the CANmod.input DBC file

The digital frame contains the following information.

Abbreviations used in table:

  • act: Actual digital level

  • hgh: High since previous output

  • low: Low since previous output

Name

Bitpos

Length

Factor

Offset

Min

Max

Unit

Digital 1 act

0

2

1

0

0

2

Digital 1 hgh

2

1

1

0

0

1

Digital 1 low

3

1

1

0

0

1

Digital 2 act

4

2

1

0

0

2

Digital 2 hgh

6

1

1

0

0

1

Digital 2 low

7

1

1

0

0

1

Digital 3 act

8

2

1

0

0

2

Digital 3 hgh

10

1

1

0

0

1

Digital 3 low

11

1

1

0

0

1

Digital 4 act

12

2

1

0

0

2

Digital 4 hgh

14

1

1

0

0

1

Digital 4 low

15

1

1

0

0

1

Digital 5 act

16

2

1

0

0

2

Digital 5 hgh

18

1

1

0

0

1

Digital 5 low

19

1

1

0

0

1

Digital 6 act

20

2

1

0

0

2

Digital 6 hgh

22

1

1

0

0

1

Digital 6 low

23

1

1

0

0

1

Digital 7 act

24

2

1

0

0

2

Digital 7 hgh

26

1

1

0

0

1

Digital 7 low

27

1

1

0

0

1

Digital 8 act

28

2

1

0

0

2

Digital 8 hgh

30

1

1

0

0

1

Digital 8 low

31

1

1

0

0

1

Digital X actual

The Actual signal outputs the most recent digital level.

The signal can take one of the following values:

  • 0: NA / unknown

  • 1: Low

  • 2: High

Digital X high

The High (hgh) signal outputs if at least one high level was detected during the output period (see example below).

The signal can take one of the following values:

  • 0: No (high level not detected)

  • 1: Yes (high level detected)

Digital X low

The Low (low) signal outputs if at least one low level was detected during the output period (see example below).

The signal can take one of the following values:

  • 0: No (low level not detected)

  • 1: Yes (low level detected)

Example

In this example, the digital output is configured to Push and scaled by 5. As a result, a digital output message is generated each 5 ms (1000 kHz / 5 = 200 Hz = 5 ms). Each generated output is based on 5 samples. Below Figure illustrates how a waveform is sampled (and digitized). The Actual, High and Low signals of each output period become:

  • Output period 1

    • Actual: High

    • High: Yes

    • Low: Yes

  • Output period 2

    • Actual: Low

    • High: No

    • Low: Yes

  • Output period 3

    • Actual: Unknown

    • High: Yes

    • Low: No

../../../_images/digital_level_output.png

Example of 3 digital output periods. Each period contains 5 samples. The Actual (most recent) sample is marked.