资源简介
可读取示波器wfm格式文件的MATLAB代码
代码片段和文件信息
function [y t info ind_over ind_under frames] = wfm2read(filename datapoints step startind)
% function [y t info ind_over ind_under frames] = wfm2read(filename datapoints step startind)
%
% loads YT-waveform data from *.wfm file saved by Tektronix TDS5000/B TDS6000/B/C
% or TDS/CSA7000/B MSO70000/C DSA70000/B/C DPO70000/B/C DPO7000/ MSO/DPO5000
% instrument families into the variables y (y data) and t (time
% data). The structure “info“ contains information about units and
% digitizing resolution of the y data. The matrices ind_over and ind_under
% contain the indices of overranged data points outside the upper / lower
% limit of the TDS AD converter.
% If the file contains fast frames data the data of the first frame ism
% stored as usual and of all frames it is stored in the optional
% output struct “frames“:
% frames.frame#.y=(y-data of #-th frame including the first frame again)
% frames.frame#.t
% frames.frame#.info (contains only frame-specific fields of the info structure for frame number #)
% frames.frame#.ind_over
% frames.frame#.ind_under
%
% optional input arguments:
% datapoints stepstartind: read data points startind:step:datapoints
% from the wvf file. if datapoints is omitted all data are read if step
% is omitted step=1. If startind omitted startind=1
%
% Reading of *.wfm files written by other than the above Oscilloscopes may
% result in errors since the file format seems not to be downward compatible.
% Other projects exist for the older format e.g. wfmread.m by Daniel Dolan.
%
% Author:
% Erik Benkler
% Physikalisch-Technische Bundesanstalt
% Section 4.53: Optical Femtosecond Metrology
% Bundesallee 100
% D-38116 Braunschweig
% Germany
% Erik.Benkler a t ptb.de
%
% The implementation is based on Tektronix Article 077-0220-01
% (December 07 2010): “Performance Oscilloscope Reference Waveform File Format“
% which can be found at:
% http://www2.tek.com/cmswpt/madetails.lotr?ct=MA&cs=mpm&ci=17905&lc=EN
% or by searching for 077022001 on the TEKTRONIX website (the last two
% digits seem to define the revision of the document so you may search for
% 077922002 077922003 ... to find newer revisions in future.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% current state of the project and change history:
%
% Version 2.0 22.03.2011
% (a) added warning IDs for all warnings to render them switchable
% (b) changed behaviour of the “datapoints“ input parameter which now
% defines the number of data points to be returned by wfm2read.
% Added a warning when “datapoints“ is too large such that one would
% need more data points in the file / frame.
%
% Version 1.9 December 26 2010 (re-submitted to FileExchange)
% (a) implemented Fast frames
% (b) added wfm2readframe for reading single frame
% in a fast frames measurement
% (c) Added optional input argument
相关资源
- 基于MATLAB编写的前推回代法求解放射
- Matlab2010免安装版百度网盘地址
- LQR系统最优控制器设计的MATLAB实现及
- CW脉冲和LFM信号Matlab仿真
- MATLAB程序计算两个日期之间的总天数
- 元胞自动机的单双道交通建模Matlab仿
- matlab轴心轨迹算例
- Matlab求解直流潮流程序
- 采用混沌和小波相结合的方式实现的
- matlab基于分水岭算法处理图像分割的
- MATLAB的地震正演程序
- 基于matlab的图像融合
- 线性调频信号模糊函数-多普勒敏感性
- matlab评价图像融合质量
- 高速公路场景下车联网VeMAC协议MATLA
- matlab仿真干涉条纹图
- 改进遗传算法求解TSP问题的Matlab程序
- matlab计算单自由度的地震反应的程序
- jade 盲信号分离 matlab代码
- OFDM峰均比限幅clipping抑制matlab仿真程
- 三相PWM逆变器双环PI控制仿真
- stft短时傅里叶变换函数
- matlab中仿真自适应信号处理序贯回归
- 锁频环FLL的matlab仿真
- RPCA 源码 matlab yi Ma
- N-FINDR MATLAB源代码
- matlab的图像边缘的提取和函数实现
- ICA的人脸识别MATLAB源码
- 基于MATLAB的医学图像处理系统
- MIMO通信系统_MATLAB仿真代码
评论
共有 条评论