added data collection for digital outputs