private bool SetSomeIntegrationTime(SpectraCyberIntegrationTimeEnum time, char identifier)
        {
            string Command = "!" + identifier + "00" + SpectraCyberIntegrationTimeEnumHelper.GetValue(time);

            SpectraCyberRequest Request = new SpectraCyberRequest(
                SpectraCyberCommandTypeEnum.CHANGE_SETTING,
                Command,
                false,
                4
                );

            SpectraCyberResponse Response = new SpectraCyberResponse();

            SendCommand(Request, ref Response);

            return(Response.RequestSuccessful);
        }
Esempio n. 2
0
 public void TestSpectraCyberIntegratioinTimeEnumHelper()
 {
     Assert.AreEqual('0', SpectraCyberIntegrationTimeEnumHelper.GetValue(_time_1));
     Assert.AreEqual('1', SpectraCyberIntegrationTimeEnumHelper.GetValue(_time_2));
     Assert.AreEqual('2', SpectraCyberIntegrationTimeEnumHelper.GetValue(_time_3));
 }