Agilent Technologies 35670A Manual page 778

Dynamic signal analyzer gpib programming
Hide thumbs Also See for 35670A:
Table of Contents

Advertisement

Example Programs
XFER
XFER
File: xfer.c
This C program demonstrates how to do block transfers between a PC and the Agilent 35670A analyzer.
This program can be used to transfer time-capture files from the 35670A to a PC file.
The compiled version of this program is on the Example Program disc in the file named XFER.EXE.
The command line syntax for XFER.EXE is:
XFER <file>
<File>
/U
/I: <code>
/A: <add>
/S
/C:<cmd>
/D:<H|N>
/O
For example, to get the time capture buffer from the Agilent 35670A to a filenamed CAPT1.TIM on a PC
using a Agilent Technologies card, use this command:
xfer CAPT1.TIM
To send the CAPT1.TIM file back to the Agilent 35670A using a National AT-GPIB card, execute this
command:
xfer /S /D:N CAPT1.TIM
This program supports the Agilent 82335A card and the National Instruments AT-GPIB card. To compile
it you need the clGPIB.lib library for the Agilent card and the mcib.obj library for the NI card.
The source code for the XFER program is on the example programs disc in the XFER.C file. The
executable file is on the example programs disc in the XFER.EXE file.
F-40
[/U] [/I] [/A] [/S] [/C] [/D][ [/O]
path and file name
show this usage
Select code (default = 7 for Agilent Technologie
card<E>, 0 for National Instruments card)
Analyzer address (default = 11)
Send <file> to analyzer
Analyzer command string (default = TCAP:FILE)
H = use Agilent Technologies GPIB card (default)
N = use National Instruments GPIB card
Overwrite <file> if it exists.

Advertisement

Table of Contents
loading

Table of Contents