Example #1
0
 private void IntValue_MatPortConnect(object sender, MatPortConnectEventArgs e)
 {
     IntValue.Value = new MatData(typeof(int), (int)ConstantValue);
 }
Example #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);
        }
Example #3
0
 private void DoubleValue_MatPortConnect(object sender, MatPortConnectEventArgs e)
 {
     DoubleValue.Value = new MatData(typeof(double), ConstantValue);
 }
Example #4
0
 protected void RaiseMatPortConnectEvent(MatPortConnectEventArgs e)
 {
     MatPortConnect?.Invoke(this, e);
     IsConnecting = true;
 }