Poseidon2
– Family manual
HW group
www.HW-group.com
67 / 104
Using Poseidon2 units in your applications
PosDamIO
– Command line control
Poseidon Damocles I/O is a command-line utility for Windows and Linux that lets you control
Poseidon and Damocles units over the XML interface.
Calling the program can print out the
sensors, inputs and outputs states, but also set an output to a log. 1 or 0.
The PosDamIO utility is intended for applications and scripts that need a simple way of controlling or
reading remote sensors, digital inputs and digital outputs. You can modify the utility to suit your needs
– it is included in the HWg SDK.
Basic functions
Dump the states of sensors, digital
inputs and outputs to the screen, or
to a file
Set the state of an output with a
command-line command
Read the state of an input and set
the ErrorLevel return value
accordingly
Download or upload the values.xml
file containing the current readings
Download or upload the setup.xml
file containing device configuration
for easy device cloning
Features
Windows and Linux version
Source code included in the HWg
SDK
All communication with the device
takes place over the XML interface
Before uploading, the utility transforms the XML file to the format required by the
device (see product manual)
Conclusion:
PosDamIO is a free command-line utility that enables simple control of Poseidon units from within
batch files. Its source code is freely available in the HWg SDK package.
For detailed information, see:
AN29: PosDamIO controls outputs through the command line.