>
Sample Application - Automated Incubation Unit
Add an analog temperature sensor

First we create an Analog Input Agent Component. To do this we drag-and-drop the Analog Input Agent icon from the Component Toolbar down onto the Component Listview.

The Analog Input Agent's Property Sheet will appear. Each type of Component has a Property Sheet that lets you configure the properties of that Component. We fill in a meaningful name for the Analog Input Agent and then click to select the PortAD Pin which the thermistor sensor is attached to.

If our sensor had any drift we could specify a calibration offset, but for this example we'll assume the sensor is accurate. Our Analog Input Agent is fully configured. Click OK to complete it. As soon as we click OK, the Analog Input Agent Component is created and begins running on the Target microcontroller. It will take the value on the analog-to-digital Pin (i.e. the readings from the thermistor sensor) and make them available to the rest of the application. Any Component that uses this "Temp Sensor" Analog Input Agent as a Source will get these values.


Next we add a Converter Component to convert the Analog Input Agent's readings into temperature measurements.

 
 
© Copyright Intec Automation Inc.