Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide 297
Creating and Downloading Waveform Files
Programming Examples
% [:SOURce]:RADio[1]|2|3|4:ARB:HEADer:WRITe
"filename","description",<sample_rate>,<scaling>,<marker_polarity>,
<alc_hold>,<alt_power>,<pulse>,<mod_atten>,<mod_filter>,<output_fil
ter>,<peak_power>,<rms>
% This function doesn't do any range checking
hdr.sampleRate = 100e6;
hdr.rms = rms;
hdr.peak = 1.414;
hdr.runtimeScaling = 70; % In percent
hdr.pulse = 'None';
hdr.alcHold = 'None';
hdr.description = 'Keysight Technologies';
if ~isempty(header)
if isstruct(header)
if isfield(header,'sampleRate')
hdr.sampleRate = header.sampleRate;
end
if isfield(header,'rms')
hdr.rms = header.rms;
end
if isfield(header,'peak')
hdr.peak = header.peak;
end
if isfield(header,'runtimeScaling')
hdr.runtimeScaling = header.runtimeScaling;
end
if isfield(header,'pulse')
hdr.pulse = header.pulse;
end
if isfield(header,'alcHold')
hdr.alcHold = header.alcHold;
end
if isfield(header,'description')
hdr.description = header.description;
end
Содержание X-Series
Страница 4: ...4 ...
Страница 10: ...10 Contents ...