Esempio n. 1
0
        public AnalyzerForm(SerialPort machine, SerialComm Api)
        {
            InitializeComponent();

            MachineBaudrate = machine.BaudRate;
            MachinePortName = machine.PortName;
            initAnalyzers();

            hub = new eApi.Analyzer.Hub.ComportHub(machine, MachineAnalyzer, ApiAnalyzer, Api);

            this.FormClosing += new FormClosingEventHandler(AnalyzerForm_FormClosing);
        }
Esempio n. 2
0
        public AnalyzerForm(string PortName, int BaudRate, SerialComm Api)
        {
            InitializeComponent();

            addSpfToApi     += new ControlCallback(addSerialPacketFieldApi);
            addSpfToMachine += new ControlCallback(addSerialPacketFieldMachine);

            MachineBaudrate = BaudRate;
            MachinePortName = PortName;
            SerialPort machine = new SerialPort(PortName, BaudRate);

            initAnalyzers();

            hub = new eApi.Analyzer.Hub.ComportHub(machine, MachineAnalyzer, ApiAnalyzer, Api);
        }