Exemplo n.º 1
0
        public Task <CommunicationData> ReadDin()
        {
            var request = DioDefaults.ReadDioInCommand();
            var status  = communication.ProcessCommunicationRequest(request);

            return(status);
        }
Exemplo n.º 2
0
        public Task <CommunicationData> Reset()
        {
            var requestArray = FaultDefaults.ResetCommand();
            var status       = communication.ProcessCommunicationRequest(requestArray);

            return(status);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Set DAC value.
        /// </summary>
        /// <param name="voltage"> Voltage value. </param>
        /// <returns> Returns the value from DAC set request. </returns>
        public Task <CommunicationData> SetDacCommand(float voltage)
        {
            var formattedVoltage = Helper.GetBigEndian(voltage);
            var request          = DacDefaults.SetDacCommand(formattedVoltage);
            var status           = communication.ProcessCommunicationRequest(request);

            return(status);
        }
Exemplo n.º 4
0
        public Task <CommunicationData> ControlCommand(string state)
        {
            var requestArray = HeaterDefaults.SetWaveformControl(state);
            var status       = communication.ProcessCommunicationRequest(requestArray);

            return(status);
        }
Exemplo n.º 5
0
        public Task <CommunicationData> ReadControlState()
        {
            var requestArray = TecDefaults.ReadControlCommand();
            var status       = communication.ProcessCommunicationRequest(requestArray);

            return(status);
        }
Exemplo n.º 6
0
        public Task <CommunicationData> ReadPercentCompleted()
        {
            var requestArray = SnapshotDefaults.ReadPercentCompleted();
            var status       = communication.ProcessCommunicationRequest(requestArray);

            return(status);
        }