Analog Output

Send analog output signal to DAC0_OUT pin

  • Library:
  • Simulink Coder Support Package for NXP FRDM-K64F Board

Description

The Analog Output block sends an analog signal to the DAC0_OUT pin that is on the board.

When you provide a value between 0–1, this block outputs an analog signal to the DAC0_OUT pin, such that:

Vout = Vref *[(1+(input*4095))/4096]

Vref is the reference voltage for the DAC that you select from Configuration Parameters > Hardware Implementation pane > DAC > DAC0 reference voltage.

Make sure to use only one Analog Output block within the same model.

Ports

Input

expand all

The block accepts values between 0 and +1.

When you provide a value between 0–1, this block outputs an analog signal to the DAC0_OUT pin, such that:

Vout = Vref *[(1+(input*4095))/4096]

Vref is the reference voltage for the DAC that you select from Configuration Parameters > Hardware Implementation pane > DAC > DAC0 reference voltage.

Data Types: single | double

Parameters

expand all

Specify how often this block reads the value from the input port, in seconds.

When you specify this parameter as-1, Simulink® determines the best sample time for the block based on the block context within the model.

Introduced in R2017a