public static ConnectedReadClient CreateAndConnect(AmsNetId id, int port, TimeSpan readCycle)
        {
            var connectedClient = new ConnectedReadClient(readCycle);

            connectedClient.client.Connect(id.ToString(), port);
            return(connectedClient);
        }
예제 #2
0
 public ReadableBoolValue(UnconnectedAddressBase <bool> address, ConnectedReadClient connectedReadClient)
     : base(address, connectedReadClient)
 {
 }
예제 #3
0
 public ReadableDoubleArray2DValue(UnconnectedAddressBase <double[, ]> address, ConnectedReadClient connectedReadClient)
     : base(address, connectedReadClient)
 {
 }
예제 #4
0
 public ReadableValue(UnconnectedAddressBase <T> address, ConnectedReadClient connectedReadClient)
 {
     this.connectedReadClient = connectedReadClient;
     this.InitialAddress      = address;
     connectedReadClient.RegisterForCyclicReading(this);
 }
예제 #5
0
 public ReadableStringValue(UnconnectedAddressBase <string> address, ConnectedReadClient connectedReadClient)
     : base(address, connectedReadClient)
 {
 }