CASP UDIO Host Example Project
This project demonstrates how to create a CASP model on host computer for exchanging UDIO data with the target. This example project is developed to communicate with Arduino Uno target from example ‘control_led_udio_target_uno’ . The model does the following
· Reads A0 value from the target as a UDI 32-bit integer data at byte index 0 and plots the trend.
· Vary the frequency of the on-board LED by sending a 32-bit floating point value at byte index 0 of UDO.
· Vary the PWM magnitude of pin-3 on the board by sending a 32-bit integer value at byte index 4 of UDO.
Getting Started
1. Ensure, the board is connected to the computer.
2. Open the project. The model looks similar to below figure.

3. Double click on the serial port block ‘serial0’ and set the serial port to which the board is connected.
4. Click Run button to start simulation. Simulation panel should show a plot similar to below figure.
