Raptor-Dev-Input-&-Output

From NewEagleWiki
Jump to navigation Jump to search

New Eagle > Products Wiki > Raptor Platform > Raptor-Dev > Raptor-Dev Library > Raptor-Dev Input & Output Library

Raptor™ Input and Output

The blocks in this subsystem are access ECU hardware resources such as Analog Inputs and PWM Outputs.

Blocks

Block Description Appearance
Analog Input

This block reads the value of an analog input. An analog input is typically a voltage input on an input pin to the module. This block outputs the raw analog to digital converter counts. The scaling factor to convert from counts to engineering units may be different for different inputs, sensors or modules. The Full ADC Count indicated on the block represents a guideline for the maximum expected ADC count based on the underlying hardware - values above this threshold may not correspond linearly to those within the range.

Analog Input block
Analog Input block
Analog Output

This block is used to control the state of an analog output.

Analog Input block
Analog Input block
Digital Input

This block reads the value of a digital input.

Digital Input block
Digital Input block
Digital Output

This block sets the state of the selected digital output.

Digital Output block
Digital Output block
Frequency Input Block

This block reads the value of a frequency input. Some modules also support duty cycle measurement through this input.

Frequency Input block
Frequency Input block
H-Bridge Output Block

This block sets the state of the selected H-bridge output. An H-Bridge output is an output which uses 2 pins where either pin can be connected to V+ or V-. This type of output is typically used to drive DC motors which must move in both directions.

H-Bridge Output block
H-Bridge Output block
Internal Measurement

This block reads the value of an an internal measurement. An internal measurement is a measured value which is internal to the control module.

Internal Measurement block
Internal Measurement block
Output Status

This block shows the status of the selected output. On modules which support output diagnostics this block can show if an output is shorted or shutdown do to over current.

Output Status block
Output Status block
PWM Output

This block sets the state of the selected PWM output. PWM (pulse width modulation) is typically used similar to an analog output.

PWM Output Block
PWM Output Block
Set Input Option

This block allows the range, filter and pull up/down of input blocks to be changed dynamically within a model. The option is changed when the block is executed. Until this block executes with a valid input for the first time the options of the input will be the value set in the input block. This block is target dependant. Place this block in a model with a target definition block and then enter the block's help again for more specific help.

Set Input Option block
Set Input Option block