示例#1
0
        public static int daqSet(uint index, uint chn, uint attrType, StructBeamFile pVal)
        {
            int error_code;

            error_code = USCOMM_SetBeam(index, chn, attrType, pVal);
            return(error_code);
        }
示例#2
0
        public static int BeamFile(uint ascanNum, uint chn, StructBeamFile structBeam)
        {
            int  error_code;
            uint attr = DaqAttrType.pA.BeamFormerFile;

            if (ascanNum < ascanNumMin || ascanNum > ascanNumMax)
            {
                error_code = -1;
                return(error_code);
            }

            error_code = DAQ.daqSet(ascanNum, chn, attr, structBeam);
            if (error_code != (int)PDAQ_ERR.GOOD)
            {
                MessageShow.show("Error:Set Beam File failed", "错误:设置Beam File失败");
            }
            return(error_code);
        }
示例#3
0
        public StructBeamFile getStruct()
        {
            StructBeamFile structBeam = new StructBeamFile();

            structBeam.txElementBin = new uint[8];
            structBeam.txDelay      = new float[256];
            structBeam.txIntensify  = new float[256];
            structBeam.rxElementBin = new uint[8];
            structBeam.rxDelay      = new float[256];
            structBeam.rxIntensify  = new float[256];
            structBeam.dac.dac_tofs = new float[32];
            structBeam.dac.dac_amps = new float[32];

            structBeam.beamIndex = this.beamIndex;
            structBeam.txSize    = this.txSize;
            Array.Copy(this.txElementBin, structBeam.txElementBin, this.txElementBin.Length);
            Array.Copy(this.txDelay, structBeam.txDelay, this.txDelay.Length);
            Array.Copy(this.txIntensify, structBeam.txIntensify, this.txIntensify.Length);
            structBeam.rxSize = this.rxSize;
            Array.Copy(this.rxElementBin, structBeam.rxElementBin, this.rxElementBin.Length);
            Array.Copy(this.rxDelay, structBeam.rxDelay, this.rxDelay.Length);
            Array.Copy(this.rxIntensify, structBeam.rxIntensify, this.rxIntensify.Length);
            structBeam.gain              = this.gain;
            structBeam.txEn              = this.txEn;
            structBeam.rxOn              = this.rxOn;
            structBeam.digitalHpf        = this.digitalHpf;
            structBeam.dampOn            = this.dampOn;
            structBeam.dampValue         = this.dampValue;
            structBeam.path              = this.path;
            structBeam.digitalLpf        = this.digitalLpf;
            structBeam.beaOn             = this.beaOn;
            structBeam.dac.dac_on        = this.dac_on;
            structBeam.dac.dac_point_num = this.dac_point_num;
            Array.Copy(this.dac_tofs, structBeam.dac.dac_tofs, this.dac_tofs.Length);
            Array.Copy(this.dac_amps, structBeam.dac.dac_amps, this.dac_amps.Length);
            structBeam.dac.dac_mode = this.dac_mode;

            return(structBeam);
        }
示例#4
0
 private static extern int USCOMM_SetBeam(uint index, uint chn, uint attrType, StructBeamFile pVal);