Exemplo n.º 1
0
        public ModuleConfig_HL3002()
        {
            DeviceName = EnumDeviceName.HL3002;
            for (int i = 0; i < 4; i++)
            {
                ModuleSubInfoList.Add(new ModuleConfig_16()
                {
                    IOType = EnumModuleIoType.IN,
                });
            }
            InputTypeDic.Clear();
            AccuracyDic.Clear();

            InputTypeDic.Add(0x00, "Normal");
            InputTypeDic.Add(0x01, "4-20mA");
            InputTypeDic.Add(0x02, "0-20mA");
            for (byte i = 3; i < 11; i++)
            {
                InputTypeDic.Add(i, $"Reserved{i}");
            }

            AccuracyDic.Add(0x0A, "10bits sampling");
            AccuracyDic.Add(0x0C, "12bits sampling");
            AccuracyDic.Add(0x10, "16bits sampling");
        }
Exemplo n.º 2
0
        public ModuleConfig_HL3001()
        {
            DeviceName = EnumDeviceName.HL3001;
            for (int i = 0; i < 4; i++)
            {
                ModuleSubInfoList.Add(new ConfigSubInfo.ModuleConfig_16()
                {
                    IOType = EnumModuleIoType.IN,
                });
            }

            //下面是给Upload时候准备的初始化
            InputTypeDic.Clear();
            AccuracyDic.Clear();

            InputTypeDic.Add(0x00, "Normal");
            InputTypeDic.Add(0x01, "0-10V");
            InputTypeDic.Add(0x02, "0-5V");
            for (byte i = 3; i < 11; i++)
            {
                InputTypeDic.Add(i, $"Reserved{i}");
            }

            AccuracyDic.Add(0x0A, "10bits sampling");
            AccuracyDic.Add(0x0C, "12bits sampling");
            AccuracyDic.Add(0x10, "16bits sampling");
        }
Exemplo n.º 3
0
 public ModuleConfig_HL2003()
 {
     DeviceName = EnumDeviceName.HL2003;
     ModuleSubInfoList.Add(new ConfigSubInfo.ModuleConfig_8()
     {
         IOType = EnumModuleIoType.OUT,
     });
 }
Exemplo n.º 4
0
 public ModuleConfig_HL5001()
 {
     DeviceName = EnumDeviceName.HL5001;
     ModuleSubInfoList.Add(new ModuleConfig_32()
     {
         IOType = EnumModuleIoType.IN,
     });
     ModuleSubInfoList.Add(new ModuleConfig_32()
     {
         IOType = EnumModuleIoType.IN,
     });
 }
Exemplo n.º 5
0
 public ModuleConfig_HL1001()
 {
     DeviceName = EnumDeviceName.HL1001;
     ModuleSubInfoList.Add(new ConfigSubInfo.ModuleConfig_8()
     {
         IOType = EnumModuleIoType.IN,
     });
     TypeDic.Clear();
     for (int i = 0; i < TypeList.Count(); i++)
     {
         TypeDic.Add(TypeList[i], TypeStringList[i]);
     }
 }
Exemplo n.º 6
0
        public ModuleConfig_HL5002()
        {
            DeviceName = EnumDeviceName.HL5002;
            ModuleSubInfoList.Add(new ModuleConfig_32()
            {
                IOType = EnumModuleIoType.IN,
            });

            ModuleSubInfoList.Add(new ModuleConfig_16()
            {
                IOType = EnumModuleIoType.OUT,
            });
            ResolutionDic.Clear();
            RevolutionDic.Clear();
            ResolutionDic.Add(0, "Normal");
            RevolutionDic.Add(0, "Normal");
            for (byte i = 1; i < 17; i++)
            {
                ResolutionDic.Add(i, $"{i}bits");
                RevolutionDic.Add(i, $"{i}bits");
            }
        }
Exemplo n.º 7
0
        public ModuleConfig_HL4001()
        {
            DeviceName = EnumDeviceName.HL4001;
            for (int i = 0; i < 4; i++)
            {
                ModuleSubInfoList.Add(new ModuleConfig_16()
                {
                    IOType = EnumModuleIoType.OUT,
                });
            }
            OutputTypeDic.Clear();
            AccuracyDic.Clear();
            OutputTypeDic.Add(0x00, "Normal");
            OutputTypeDic.Add(0x01, "0-10V");
            OutputTypeDic.Add(0x02, "0-5V");
            for (byte i = 3; i < 11; i++)
            {
                OutputTypeDic.Add(i, $"Reserved{i}");
            }

            AccuracyDic.Add(0x0A, "10bits sampling");
            AccuracyDic.Add(0x0C, "12bits sampling");
            AccuracyDic.Add(0x10, "16bits sampling");
        }