Borrar filtros
Borrar filtros

Calling Functions Using a TCPIP Connection to an Oscilloscope

12 visualizaciones (últimos 30 días)
Benjamin Wollant
Benjamin Wollant el 4 de Ag. de 2016
Editada: JB el 30 de Ag. de 2016
I am currently working with a Tektronix TDS 3054B Oscilloscope over a tcpip interface using tds_tektronix3054B.mdd as the driver. The tcpip connection is over ethernet cables. I recently received a Getting Started Guide using MATLAB with TEKTRONIX over a TCP/IP Connection from Brain Madsen. I have been able to call most of the functions I have tried through tmtool. However, when using the waveform group object's functions and following the inputs of the guide, I get the error message 'An error occurred while executing the function. Subscript indices must either be real positive integers or logicals.' My input is 'channel1' and outputs are Y,X,YUNIT,XUNIT. Do you have any suggestions for solving this error to get this function working? Thank you very much in advance for your time and help,
  1 comentario
JB
JB el 30 de Ag. de 2016
I have a similar problem when using my TDS 3014c (3014B driver). For a while it was working for me. I think the issue is related to my trigger settings but I'm not sure. I'll let you know if I work out this issue.

Iniciar sesión para comentar.

Respuestas (1)

JB
JB el 30 de Ag. de 2016
Editada: JB el 30 de Ag. de 2016
Hi Ben I have figured out a work-around / solution. Instead of adding the OScope as TCPIP interface object, I added it as an NI VISA interface object, even though I'm communicating with the OScope via TCPIP;
NON-Working Code;
scopeIP = X.X.X.X; %change X.X.X.X to a real IP...
tds3kIfObj = tcpip(scopeIP,80);
fopen(tds3kIfObj);
tds3k = icdevice('tektronix_tds3014B.mdd',tds3kIfObj);
Working Code;
scopeIP = X.X.X.X; %change X.X.X.X to a real IP...
tds3kIfObj = visa('ni', sprintf('TCPIP::%s::INSTR',scopeIP));
fopen(tds3kIfObj);
tds3k = icdevice('tektronix_tds3014B.mdd',tds3kIfObj);
Once I created the interface object as an NI VISA device I started getting data when I ran the "readwaveform" function.

Categorías

Más información sobre Instrument Connection and Communication en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by