Inspect an Infiniium Waveform file
Open a .mat file saved by the Keysight Infiniium application, and read the header information, without loading all of the data. This function is useful when you just want to examine the contents of a file. For example, some files contain more than one waveform, and this is an easy way to see which waveforms are in a file
In order to use the InfiniiumWaveform functions and the example files in this demo, they need to be on the MATLAB path. See the instructions in 'Setting the MATLAB Path' in either the InfiniiumWaveform help documents, or the UserGuide in help\html.
Set up the files
This demo uses some files which are included in the toolbox.
inputFilename = 'channel_1_Demo.mat'; % file has one waveform multiFilename = 'multiChannel_Demo.mat'; % file has two waveforms
Examine file information using infiniiumWfmInfo
Read the header information from a waveform file, without loading the data. wfms is a cell array of string labels that identify the waveforms in the file. frame is a struct with information about the oscilloscope or application that saved the file.
[wfms,frame] = infiniiumWfmInfo(inputFilename) %#ok<*NOPTS,*ASGLU>
wfms = cell 'Channel_1' frame = struct with fields: Model: 'N8900A' Serial: 'No Serial' Date: '21-Sep-2017 08:53:09'
Repeat, but with a file that has two waveforms.
[wfms,frame] = infiniiumWfmInfo(multiFilename) %#ok<*NASGU>
wfms = 1×2 cell array 'Channel_1' 'Channel_2' frame = struct with fields: Model: 'N8900A' Serial: 'No Serial' Date: '21-Sep-2017 08:53:31'