We have a DAQ board from Measurement Computing which has analog and digital outputs and inputs. It is written as a warning on it that one shouldn't plug an output channel back to the board as an input. Why is that so? But as far as I know we can do this with an Arduino board (?)
Here is the device: http://www.mccdaq.com/PDFs/manuals/USB-1616HS-BNC.pdf