private static void Adam6060Demo(string ipAdam6060) { var adam6060 = new Adam6060(ipAdam6060); var isConnected = adam6060.Connect(); if (isConnected) { var firmwareVersion = adam6060.GetFirmWareVersion(); adam6060.WriteOutputChannel(0, true); var inputChannels = adam6060.ReadInputChannels(); var outputChannels = adam6060.ReadOutputChannels(); adam6060.Disconnect(); Console.WriteLine("Start Adam6060 demo"); Console.WriteLine("Adam6060 connected: " + true); Console.WriteLine("Adam606 firmware:" + firmwareVersion); Console.WriteLine("Adam6060 Input channels: " + string.Join(", ", inputChannels)); Console.WriteLine("Adam6060 Output channels:" + string.Join(", ", outputChannels)); Console.WriteLine("End Adam6060 demo"); } else { Console.WriteLine("No connection to Adam6060 :-("); } Console.WriteLine(); }