お問い合わせ

テクトロニクス担当者とライブ・チャット: 午前6時~午後4時30分 PST

-

- 1-800-833-9200

全社でリモートワークをしております。 お問い合わせは右記お問い合わせ窓口(Web)をご利用ください。

ダウンロード

マニュアル、データシート、ソフトウェアなどのダウンロード:

ダウンロード・タイプ
型名またはキーワード

How do I get a waveform in Matlab with the IVI-COM driver?

質問:

How do I get a waveform in Matlab with the IVI-COM driver?

回答:

Here is some sample Matlab code. Note the IVI-COM driver and Shared components must already be installed.:


%To establish communication with the oscilloscope, you create a MATLAB COM
%object that represents an instance of the driver.
h = actxserver('TekScope.TekScope.1');
%Next, you need to initialize the driver.
invoke(h,'Initialize','GPIB0::1::INSTR',false,false,'');
hscope = get(h,'IviScope');
%Read the identification information by first getting the Identity interface and thenreading the properties of this interfaces.
hid = get(hscope,'Identity');
ms = get(hscope,'Measurements');
ms1 = get(ms,'Item',get(ms,'Name',1));
invoke(ms,'Initiate');
A = get(hscope,'Acquisition');
recordLength = get(A,'RecordLength');
data = zeros(recordLength,1);
disp('Fetching waveform');
timeout = 1000; % In milliseconds
data = zeros(recordLength,1);
initX = 0;
Xinc = 0;
[status,data,initX,Xinc] = invoke(ms1,'ReadWaveform', timeout, data, initX, Xinc);
t = initX:Xinc:initX+(Xinc*(recordLength-1));
plot(t,data)


FAQの該当製品:

製品シリーズなし

製品:

FAQ ID 52576

すべてのFAQを表示 »