Test & Measurement tool (tmtool): calling two or more channels in readwaveform
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I've connected a Tektronix oscilloscope over USB connections (DPO4104 and TDS2012B). I need to export data by the two channels of the TDS 2012B and when I connect the DPO4104 I need to get data for the 4 channels. But I can't do it. I select the readwaveform function but I don´t know how to call all channels.
My question is: How can I call two or more channels in the readwaveform function? I've been trying this:
Input argument(s): 'channel1', 'channel2', 'channel3', 'channel4'.
I hope that you can help me.
0 comentarios
Respuesta aceptada
Walter Roberson
el 4 de Mzo. de 2011
Sorry, no, only a single channel at a time is supported (I read the Tek tds2014 instrument control driver source to check.)
0 comentarios
Más respuestas (2)
Ankit Desai
el 1 de Abr. de 2011
If you don't mind writing a little MATLAB code, you can open the MATLAB Instrument Driver in midedit tool and add your own, custom readwaveform function that does what you want.
1. midedit('tektronix_tds2014.mdd')
2. Navigate to Waveform>readwaveform
3. Look at the SCPI commands used to read waveform from one channel
4. Add your own function by right clicking "Waveform" node
5. Add the SCPI commands for the function you want
Hope this helps.
-Ankit
Helga
el 2 de En. de 2012
I tried to write a new function for the driver, but it didn't work because it seems that this function
_fprintf(interface,['DATA:SOURCE ' trueSource]);_
doesn't allow two or more channels.
This is the code I wrote for more channels:
_fprintf(interface,['DATA:SOURCE ' trueSource ', ' trueSource2]);_
But when I check with query(interface, 'DATA:SOU?') I only see the first channel.
Has anybody solved this problem already?
Ver también
Categorías
Más información sobre Instrument Connection and Communication en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!