C# example for using the RS422 device
9 public static void RsS422()
22 Console.WriteLine(rs422.GetType().ToString());
25 Console.WriteLine(
"Number of inputs: " + rs422.NumberOfInputs.ToString());
28 Console.WriteLine(
"Number of outputs: " + rs422.NumberOfOutputs.ToString());
31 Console.WriteLine(
"Input state: 0x" + rs422.Input.ToString(
"x"));
34 Console.WriteLine(
"State of bit 0: " + rs422.GetBit(0).ToString());
39 rs422.SetBit(0,
true);
46 catch (System.Exception e)
48 Console.WriteLine(e.Message);
51 Console.WriteLine(
"\nPress enter to proceed...");