wiki menu  

Osciloskop Rigol DS1062CA (DS1302CA)

Dvoukanálový digitální osciloskop. Vzorkovací frekvence až 2GSa/s, šířka pásma až 60 MHz (s dokoupenou licencí 300 MHz).

Osciloskop Rigol DS1062CA

Vlastnosti

  • Kanály: 2
  • Rychlost vzorkování: od 13 Sa/s do 2 GSa/s
  • Režim vzorkování: Normal, average (2, 4, 8, 16, 32, 64, 128, 256), peak detect
  • Matematika: A+B, A-B, A×B, FFT (Fast Fourier Transform)
  • FFT okno: Rectangle, Hanning, Hamming, Blackman
  • Max. vstupní napětí: 300 V (RMS) CAT I
  • Časová základna: 1 ns/Div. to 50 s/Div. (kroky 1 - 2 - 5)
  • Paměť: 10 kpts (1 kanál), 5 kpts (2 kanál)
  • A/D: Rozlišení 8 bitů, vzorkování na obou kanálech synchronně
  • Citlivost (V/div): od 2 mV/Div do 10 V/Div
  • Posunutí: ±10 Div. (2 mV – 10 V)
  • Trigger: kanál 1, kanál 2, Ext, Ext/5, AC Line
  • Kurzory: Manual, Track and Auto Measure modes
  • Automatické měření: Vpp, Vamp, Vmax, Vmin, Vtop, Vbase, Vavg, Vrms, Preshoot, Overshoot, Frequency, Period, Rise Time, Fall time, Positive, Width, Negative Width, Positive Duty Cycle, Negative Duty Cycle, Delay1-2 (rise), Delay1-2(fall)
  • Více ve stručném přehledu parametrů nebo v uživatelském manuálu

Vzdálené ovládání

RS-232 / USB (USB-TMC, SCPI/VISA kompatibilní). Skript pro vyčtení celé paměti pomocí EEZ Studio:

DS1062CA.js
const NUM_CHANNELS = instrument.properties.channels.length;

connection.acquire();

var displayedChannels = [];

connection.command(`:KEY:LOCK ENABle`);

for (var iChannel = 1; iChannel <= NUM_CHANNELS; ++iChannel) { //figure out active channels (MATH, DIGI and FFT not supported yet)
    var displayed = await connection.query(`:CHANnel${iChannel}:DISPlay?`);
    if (displayed) {
        displayedChannels.push(iChannel);
    }
}

if (displayedChannels.length > 0) {
    connection.command(`:STOP`); //measurement has to be stopped, otherwise only contents of screen can be read
    //connection.command(`:WAVeform:POINTs:MODE NORMal`); //read only contents of screen (600 points)
    connection.command(`:WAVeform:POINTs:MODE MAXimum`); //read whole memory (5k/10K)
    
    var timeScale = parseFloat(await connection.query(`:TIMebase:SCALe?`));

    for (var iDisplayedChannel = 0; iDisplayedChannel < displayedChannels.length; ++iDisplayedChannel) {
        var iChannel = displayedChannels[iDisplayedChannel];
        var samplingRate = await connection.query(`:ACQuire:SAMPlingrate? CHANnel${iChannel}`);
        
        var channelScale = parseFloat(await connection.query(`:CHANnel${iChannel}:SCALe?`));
        var channelOffset = parseFloat(await connection.query(`:CHANnel${iChannel}:OFFSet?`));
        
        var color = instrument.properties.channels[iChannel - 1].color;
        var colorInverse = instrument.properties.channels[iChannel - 1].colorInverse;
        var label = `Channel ${iChannel}`;
       
        var description = `Channel: ${iChannel}, Sampling rate: ${samplingRate}, Timebase: ${timeScale}s, Vertical scale: ${channelScale} V, Offset: ${channelOffset} V`;
        notify.info(description);

        var data = [];
        //var waveform = await connection.query(`:WAVeform:DATA? CHANnel${iChannel}`); //reads contents of screen
        var waveform = await connection.query(`:WAVeform:MEMORYDATA? CHANnel${iChannel}`);  //reads contents of screen/memory, undocumented in prog. manual
        data.push(waveform.data);
        waveform.deleteLog();
         
        channelScaleResized=10*channelScale/250; //data mangling for proper display of data - oscilloscope provides data in very strange format 0-199, inverted 
        pixelHalfWidth=8*channelScale/200/2;
        channelOffsetResized=-4*channelScale-channelOffset;//+pixelHalfWidth;
        samplingRateResized=samplingRate/2;
        for (var i=0; i < data[0].length; ++i) {
            data[0][i]=199-data[0][i]; //invert data
        }
        //console.log(pixelHalfWidth);
        
        session.addChart({
            description,
            data,
            samplingRate: samplingRateResized,
            offset: channelOffsetResized,
            scale: channelScaleResized,
            format: 2,
            unit: "Voltage",
            color,
            colorInverse,
            label
        });
    }
    
    
    connection.command(`:RUN`);
}

connection.command(`:KEY:LOCK DISable`);
connection.release();

Ukázka výstupu skriptu:

 
vybaveni/elektrodilna/pristroje/osciloskop-rigol-ds1062ca.txt · Poslední úprava: 12.04.2023 15:22 autor: msboss