Exemplo n.º 1
0
 static public void BoardStreamToDevicesApply()
 {
     try
     {
         ControlObjects.ControlObjectDoEvents();
         DataManager.ApplyTrainData();
     }
     catch (Exception) { };
 }
Exemplo n.º 2
0
        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);
        }