示例#1
0
 public DaqSetInputType(DaqClient parent, int ch, bool icp, DaqInputType acdc)
     : base(parent, DaqCmdType.DAQ_IN_TYPE)
 {
     ChannelIndex = ch;
     IcpEnable    = icp;
     AcDc         = acdc;
 }
示例#2
0
    public NCCScript()
    {
        Visa  = new VisaConnection();
        USBId = "USB0::2391::10759::MY52600381::0::INSTR";

        ModuleIp    = "192.168.0.11";
        AsyncLine   = 3200;
        AsyncFMax   = 3200;
        ICP         = true;
        Sensitivity = 7.87f;
        InputType   = DaqInputType.AC;
        Receiver    = new ReceiverDaq5509(ModuleIp);

        Items.Add(new TableItem(20, 30));
        Items.Add(new TableItem(40, 30));
        Items.Add(new TableItem(60, 30));
        Items.Add(new TableItem(80, 30));
    }
示例#3
0
        public Daq5509Receiver(string moduleIp, RobinChannel[] channels, int PacketCountFor1Sec = 16)
        {
            this.moduleIp  = moduleIp;
            this.InputType = DaqInputType.AC;
            this.channels  = channels;
            //this.TimeTrigger = new SimpleTimeTrigger(TimeSpan.FromSeconds(TSIAgentTrig.Properties.Settings.Default.CmsTimeTriggerPeriod));
            this.PacketCountFor1Sec = PacketCountFor1Sec;

            scaleFactors = new float[channels.Length];
            foreach (var channel in channels)
            {
                scaleFactors[channel.PhysicalIndex] = channel.ScaleFactorByDisplayUnit();//channel.ScaleFactor;//db.GetChannel(ch + 1).ScaleFactor;
            }
            if (!Enum.TryParse <DaqSamplingRate>("_" + (channels[0].AsyncFMax * 2.56), out nSamplingRate))
            {
                nSamplingRate = DaqSamplingRate._8192;
            }
        }
示例#4
0
文件: DaqClient.cs 项目: lsw8724/NCC
 public void SetInputType(int iCh, bool icp = true, DaqInputType acdc = DaqInputType.AC)
 {
     DoCommand(new DaqSetInputType(this, iCh, icp, acdc));
 }