public void SyncSamplingRate() { if (highLevelSerialPort.IsPortOpen()) { this.Invoke(new DoActionCrossThread(DoSyncSamplingRateWithDevice)); } }