91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

用matlab讀取和轉(zhuǎn)換wfm格式波形文件的代碼,適用于安捷倫E443x等系列矢量信號發(fā)生器。

資源截圖

代碼片段和文件信息

function?[out_descript?outdata?timedata]?=?wfm_ascii_dpo(fname?data_start?data_stop)

%?Converts?TSD5/6/7k?and?DPO7k/70k?.wfm?file?to?ASCII?format?
%?with?time?array
%
%?data_start?and?data_stop?input?arguments?are?optional
%?and?can?be?used?to?read?parts?of?file
%
%?To?do:?implement?fast?frame?pixel?maps
%

out?=?[];
if?nargin==0????????
????fname=‘‘;
end

if?isempty(fname)
????[filenamepname]=uigetfile({‘*.wfm‘?‘Tektronix?Waveform?Files?(*.wfm)‘;‘*.*‘?‘All?Files?(*.*)‘}‘Choose?Tektronix?WFM?file‘);
????fname=[pname?filename];
end

%---Open?file
fd?=?fopen(fname‘r‘);
if?fd==-1
????error(‘Problem?opening?file?“%s“‘fname)
end

%---Determine?byte?ordering?then?close?and?reopen?with?proper?byte?ordering
ByteOrder?=?fread(fd1‘ushort‘);
if?ByteOrder==6

評論

共有 條評論