AnsweredAssumed Answered

Faster acquisition on DSO-X-3034A

Question asked by madjikh on Apr 23, 2019
Hey there

 

I create an interface on Matlab Gui in order to display the values read on two scope DSO-X-3034A. I acquire the 4 analog channel of my two scope and i recorder on txt file. 
For doing that, i use this matlab code for one value 
objOSC = visa('NI', 'USB0::0x0957::0x17A4::MY50513072::0::INSTR');fopen(objOSC);

fprintf(objOSC,':MEASURE:VAV? CHANnel1'); % Lecture du chan1
Value = str2double((fscanf(objOSC)));

fclose(objOSC)
The problem with that code is when i want to display 8 values on my interface Matlab, it takes to long time and when I open my txt file I observed that I have 1 point every 3s. I would like 1 point every 500ms. 

 

My script looks like something like this: 

 

objOSC1 = visa('NI', 'USB0::0x0957::0x17A4::MY50513072::0::INSTR');
objOSC2 = visa('NI', 'USB0::0x0957::0x17A4::MY50513084::0::INSTR');

 

while (Push_button == 1)

   fprintf(objOSC1,':MEASURE:VAV? CHANnel1');
   Value1 = str2double((fscanf(objOSC)));

     ............. 

    fprintf(objOSC1,':MEASURE:VAV? CHANnel4');
   Value4 = str2double((fscanf(objOSC)));

 

  fprintf(objOSC2,':MEASURE:VAV? CHANnel1');
   Value5 = str2double((fscanf(objOSC)));

     ............. 

    fprintf(objOSC2,':MEASURE:VAV? CHANnel4');
   Value8 = str2double((fscanf(objOSC)));

 

  Diplay on the 8 Edit box of interface Matlab   
  Recorder on a txt file
end

 

Is there a way to aqcuire 4 channels in same time in order to read faster on the scope ?   

 

Thank you for help

Outcomes