Calling Functions Using a TCPIP Connection to an Oscilloscope
8 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
JB
2016 年 8 月 30 日
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.
回答 (1 件)
JB
2016 年 8 月 30 日
編集済み: JB
2016 年 8 月 30 日
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.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!