Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You will need to open the Target Inputs and Outputs library and add the Target input, analog block to your network.Image RemovedImage Removed

...

Right-click the Target input, analog block and select Open Sensors Form to edit the sensors.

Input the values as below.Image Removed

...

Since the voltage values were scaled down to adapt to the analog output limitations, it is necessary to multiply these values again once they are received on the analog input side.

Digital Output Sensors

In order to interface a square wave signal with the digital output, you need to convert the data format from float to integer because float values cannot be output to the digital interface.

...

You will find the square wave generator in Control Sources and the Data type, float to integer conversion block in the Signal Routing library.Image RemovedImage RemovedImage Removed

...

Before setting the sensors, look at the square wave by double-clicking the block.

...

For this tutorial, we can leave it as is; a 100 Hz pulsed signal with a duty cycle of 50% is easily recognizable on an oscilloscope.Image Removed

...

Knowing the data format, we will set the DO sensors on the Data type, float to integer block on the y signal.

...

The voltage measured at the output of the simulator is always the supply voltage (5 V or 12 V with a loopback) when the value is 1.Image Removed

...