13: LPT library function reference Model 4200A-SCS Parameter Analyzer
13-132 4200A-901-01 Rev. C / February 2017
Also see
arb_file (on page 13-132)
pulse_output (on page 13-146)
pulse_trig (on page 13-152)
seg_arb_define (on page 13-162)
arb_file
This command loads a waveform from an existing full-arb waveform file.
Usage
int arb_file(int instr_id, long chan, char *fname);
The instrument identification code of the pulse card: VPU1, VPU2, and so on
Channel number of the pulse card: 1 or 2
The name of the waveform file; the name must be in quotes
Details
Use this command to load a waveform from an existing full-arb .kaf waveform file into the pulse
card. You can load a full-arb waveform for each channel of the pulse card. Once loaded, use
pulse_output to turn on the appropriate channel, and then use pulse_trig to select the trigger
mode and start (or arm) pulse output.
When specifying the fname, include the full command path with the file name. Existing .kaf
waveforms are typically saved in the ArbFiles folder at the following command path location:
C:\s4200\kiuser\KPulse\ArbFiles
You can create a full-arb waveform using KPulse, and then save it as a .kaf waveform file (refer to
KPulse (on page 10-1
) for details).
You can modify a waveform in an existing .kaf file using a text editor or KPulse.
Example
arb_file(VPU1, 1, "C:\\s4200\\kiuser\\KPulse\\ArbFiles\\SINE.kaf")
This example loads a full-arb file named SINE.kaf (saved in the ArbFiles folder) into the pulse card for
channel 1.
Also see
arb_array (on page 13-131)
pulse_output (on page 13-146)
pulse_trig (on page 13-152)
seg_arb_file (on page 13-165)
seg_arb_define (on page 13-162)