Example #1
0
        private uint Wait_to_fill_PreTrigger()
        {
            uint errorCode = Drv.spcm_dwSetParam_i64(H_Device, Regs.SPC_M2CMD, Regs.M2CMD_CARD_WAITPREFULL);

            Communication_LOG += "Wait to Fill PreTrigger:\n" + errorCode.ToString() + "\n";
            return(errorCode);
        }
Example #2
0
        private uint Start_Card()
        {
            uint errorCode = Drv.spcm_dwSetParam_i64(H_Device, Regs.SPC_M2CMD, Regs.M2CMD_CARD_START);

            Communication_LOG += "Start Card:\n" + errorCode.ToString() + "\n";
            return(errorCode);
        }
Example #3
0
        private uint Force_Trigger_after_time(long max_wait_time_in_ms)
        {
            uint errorCode = Drv.spcm_dwSetParam_i64(H_Device, Regs.SPC_TIMEOUT, max_wait_time_in_ms);

            Communication_LOG += "Set max Wait_Time:\n" + errorCode.ToString() + "\n";
            return(errorCode);
        }
Example #4
0
        private uint Adopt_Settings()
        {
            uint errorCode = Drv.spcm_dwSetParam_i64(H_Device, Regs.SPC_M2CMD, Regs.M2CMD_CARD_WRITESETUP);

            Communication_LOG += "Addopt parameter:\n" + errorCode.ToString() + "\n";
            return(errorCode);
        }
Example #5
0
        private uint Activate_Chanel_0()
        {
            uint errorCode = Drv.spcm_dwSetParam_i64(H_Device, Regs.SPC_CHENABLE, Regs.CHANNEL0);

            Communication_LOG += "Activate Channel 0:\n" + errorCode.ToString() + "\n";
            return(errorCode);
        }
Example #6
0
        private uint Set_Samples_PostTrigger(long postTriggerCount)
        {
            uint errorCode = Drv.spcm_dwSetParam_i64(H_Device, Regs.SPC_POSTTRIGGER, postTriggerCount);

            Communication_LOG += "Set Post Trigger Sample Count:\n" + errorCode.ToString() + "\n";
            return(errorCode);
        }
Example #7
0
        private uint Set_Sample_Count(long sampleCount)
        {
            uint errorCode = Drv.spcm_dwSetParam_i64(H_Device, Regs.SPC_MEMSIZE, sampleCount);

            Communication_LOG += "Set Sample Count:\n" + errorCode.ToString() + "\n";
            return(errorCode);
        }
Example #8
0
        private uint Trigger_Rising()
        {
            uint errorCode = Drv.spcm_dwSetParam_i64(H_Device, Regs.SPC_TRIG_CH0_MODE, Regs.SPC_TM_POS);

            Communication_LOG += "Trigger Set rising:\n" + errorCode.ToString() + "\n";
            return(errorCode);
        }
Example #9
0
        private uint Trigger_Level(long value)
        {
            uint errorCode = Drv.spcm_dwSetParam_i64(H_Device, Regs.SPC_TRIG_CH0_LEVEL0, value);

            Communication_LOG += "Trigger Level:\n" + errorCode.ToString() + "\n";
            return(errorCode);
        }
Example #10
0
        private uint Setting_for_Single_Measurment()
        {
            uint errorCode = Drv.spcm_dwSetParam_i64(H_Device, Regs.SPC_CARDMODE, Regs.SPC_REC_STD_SINGLE);

            Communication_LOG += "Set single measurement:\n" + errorCode.ToString() + "\n";
            return(errorCode);
        }
Example #11
0
        private uint Trigger_3()
        {
            uint errorCode = Drv.spcm_dwSetParam_i64(H_Device, Regs.SPC_TRIG_CH_ORMASK1, 0);                     //aus

            Communication_LOG += "Trigger Set 3:\n" + errorCode.ToString() + "\n";
            return(errorCode);
        }
Example #12
0
        private uint Set_Range()
        {
            uint errorCode = Drv.spcm_dwSetParam_i64(H_Device, Regs.SPC_AMP0, Range);

            Communication_LOG += "Range to +/- " + Range.ToString() + "mV:\n" + errorCode.ToString() + "\n";
            return(errorCode);
        }
Example #13
0
        private uint Set_Frequency()
        {
            uint errorCode = Drv.spcm_dwSetParam_i64(H_Device, Regs.SPC_SAMPLERATE, Frequency);

            Communication_LOG += "Frequency to " + Frequency.ToString() + "Hz:\n" + errorCode.ToString() + "\n";
            return(errorCode);
        }
Example #14
0
        private uint Diff_Channel_0to1()
        {
            uint errorCode = Drv.spcm_dwSetParam_i64(H_Device, Regs.SPC_DIFF0, 1);

            Communication_LOG += "Diff. Channel 0 to 1:\n" + errorCode.ToString() + "\n";
            return(errorCode);
        }
Example #15
0
        private uint Input_1MOhm_Channel_1()
        {
            uint errorCode = Drv.spcm_dwSetParam_i64(H_Device, Regs.SPC_50OHM1, 0);

            Communication_LOG += "Input 1MOhm Channel 1:\n" + errorCode.ToString() + "\n";
            return(errorCode);
        }
Example #16
0
        private uint WaitTime_for_Trigger_inf()
        {
            uint errorCode = Drv.spcm_dwSetParam_i64(H_Device, Regs.SPC_TIMEOUT, 0); //unendlich

            Communication_LOG += "Set Infinite Wait Time for Trigger:\n" + errorCode.ToString() + "\n";
            return(errorCode);
        }
Example #17
0
        //********************************************************************************************************************
        //                                       Lokale Spectrum Einzelbefehle
        //********************************************************************************************************************

        #region Spectrum_Commands

        private uint Reset()
        {
            uint errorCode = Drv.spcm_dwSetParam_i64(H_Device, Regs.SPC_M2CMD, Regs.M2CMD_CARD_RESET);

            Communication_LOG += "RESET:\n" + errorCode.ToString() + "\n";
            return(errorCode);
        }
Example #18
0
        private uint Wait_for_all_samples()
        {
            uint errorCode = Drv.spcm_dwSetParam_i64(H_Device, Regs.SPC_M2CMD, Regs.M2CMD_CARD_WAITREADY);

            Communication_LOG += "Wait for all samples:\n" + errorCode.ToString() + "\n";
            return(errorCode);
        }
Example #19
0
        private uint Force_Trigger()
        {
            uint errorCode = Drv.spcm_dwSetParam_i64(H_Device, Regs.SPC_M2CMD, Regs.M2CMD_CARD_FORCETRIGGER);

            Communication_LOG += "Foruce Trigger:\n" + errorCode.ToString() + "\n";
            return(errorCode);
        }
Example #20
0
        private uint Did_Trigger_Event_occured()
        {
            //263 is Rückgabewert wenn kein Trigger gefunden wird
            uint errorCode = Drv.spcm_dwSetParam_i64(H_Device, Regs.SPC_M2CMD, Regs.M2CMD_CARD_WAITTRIGGER);

            Communication_LOG += "Trigger found:\n" + errorCode.ToString() + "\n";
            return(errorCode);
        }
Example #21
0
        public void SetParam(int register, long value)
        {
            var errorCode = Drv.spcm_dwSetParam_i64(handle, register, value);

            HandleError(handle, errorCode);
        }