private void IntValue_MatPortConnect(object sender, MatPortConnectEventArgs e)
 {
     IntValue.Value = new MatData(typeof(int), (int)ConstantValue);
 }
Exemple #2
0
        private void DutyOut_MatPortConnect(object sender, MatPortConnectEventArgs e)
        {
            SendCommand((int)MotorCommand.DutyOut_DL_State, (int)ModulePortState.LookByHost);

            if (e.ConnectTo.IsHardwarePort)
                SendCommand((int)MotorCommand.DutyOut_DL_ConnectToHardwarePort, ((MatDataInputPort)e.ConnectTo).HardwarePortAdress);
        }
 private void DoubleValue_MatPortConnect(object sender, MatPortConnectEventArgs e)
 {
     DoubleValue.Value = new MatData(typeof(double), ConstantValue);
 }
Exemple #4
0
 protected void RaiseMatPortConnectEvent(MatPortConnectEventArgs e)
 {
     MatPortConnect?.Invoke(this, e);
     IsConnecting = true;
 }