static public void BoardStreamToDevicesApply() { try { ControlObjects.ControlObjectDoEvents(); DataManager.ApplyTrainData(); } catch (Exception) { }; }
static public string GetDevicesDataStream() { string retValue = string.Empty; try { ControlObjects.ControlObjectDoEvents(); for (int i = 0; i < BoardsManager.boardInfo.boardIOCount; i++) { DevicesIOMode initMode = devicesInitMode[i]; if (initMode == DevicesIOMode.DEVICE_ANALOG_OUTPUT || initMode == DevicesIOMode.DEVICE_DIGITAL_OUTPUT) { retValue += (char)i; retValue += (char)deviceValue[i]; } } } catch (Exception) { }; return(retValue); }