I/O Widgets

I/O Widgets allow you to control and monitor the input and output from each channel.

When using these widgets, ensure the mode for the channel the widget will be assigned has been changed to I/O. After selecting the module in question from the Module Tab, each channel’s mode can be independently set.

I/O Monitor

Widgets → Create Widget → I/O Monitor

I/O Monitor Types

Analog Input

With the analog input widget you are able to monitor and display the analog input of a channel. Analog input are values from a temperature probe, humidity sensor, tank level sensor, or many other types of sensors.

Styles

You have many options to style your widget. The available styles are: Default Text, Plain Text, Dial, and Gauge.

Here’s an example of the Analog Input Gauge style:

Light Level Analog Input Gauge

Digital Input

Monitor, by regular interval polling, the On/Off state of a channel input.

Digital Input (Real-Time)

Monitor the On/Off state of a channel input. A state change pushes an update to the server.

Pulse Count

Count incoming digital pulses

Digital Output

Monitor, by regular interval polling, the On/Off state of a channel output.

Digital Output (Real-Time)

Monitor the On/Off state of a channel ouput. A state change pushes an update to the server.

Pulse Count Control

Widgets → Create Widget → Pulse Count Control

Pulse Count Types

  • Set Fixed Count – Creates a widget that sets the counter to a preset value.
  • Set Variable Count – Creates a widget that allows the user to dynamically set the counter value.

Digital Output Control

Widgets → Create Widget → Digital Output Control

  • Digital Output Control – Creates an on/off widget for setting the digital state of a channel.

Digital Output Pulse

Widgets → Create Widget → Digital Output Pulse

Digital Output Pulse Types

  • Current State Toggle – Creates a widget to toggle the current state for a set amount of time.
  • Negative Toggle – Creates a widget to send a negative pulse.
  • Positive Toggle – Creates a widget to send a positive pulse.

When creating each of the above widgets, the width of the pulse can be set in milliseconds or microseconds.

Serial Out

Widgets → Create Widget → Serial Out

Serial Out Types

  • Send Fixed Message – Creates a widget to send a set serial message.
  • Send Variable Message – Creates a widget that allows the user to dynamically set a serial message to send.

Baud Rate Settings

When creating a widget it is important the widget and circuit talking to widget are using the same baud rate. The widget can be set to use any of the below baud rates.

  • 300
  • 600
  • 1200
  • 2400
  • 4800
  • 9600
  • 19200

Signal Settings

  • True – Select to leave the signal non-inverted
  • Inverted – Select to invert the signal

Pacing

This is the delay between sending individual bytes. Increasing the pacing, gives a microcontroller more time to process each incoming byte.

The pacing can be set between:

  • 0 – 2550μs

Encoding Special Characters

To encode special characters that cannot normally be typed into the browser, use URL encoding. For example, To include a carriage return and line feed in a serial message use %0D%0A. A complete list of URL character codes can be found here:

http://www.w3schools.com/TAGS/ref_urlencode.asp

Variable Value Control

Widgets → Create Widget → Variable Value Control

Variable Value Types

  • Set Fixed Value – Create a widget to send a predetermined variable value to the IO-204
  • Set Selectable Value – Create a widget that allows you to dynamical set a value to send to the IO-204

Variable Size

When creating the widget, you will be prompted to select a size for the variable. This will limit the range of your variable.

  • Variable 1 (4 BYTES) – for variables between 0 – 4,294,967,295
  • Variable 2 (4 BYTES) – for variables between 0 – 4,294,967,295

Variable Value

This specification corresponds to the channel the variable will be sent to.

  • A – Channel 1
  • B – Channel 2
  • C – Channel 3
  • D – Channel 4