6-10 Programmer’s Guide
Trace Data Transfers
Transferring Data with IBASIC
Transferring Data with IBASIC
If you are using IBASIC, your IBASIC program can avoid the overhead of
using OUTPUT and ENTER to transfer trace data, and instead use the
analyzer's built-in high-speed subprograms. These built-in subroutines
let you quickly move data between the analyzer's measurement arrays
and your program's data arrays. For example, to read the analyzer's
formatted data array, use the following:
10 DIM Fmt(1:201)
20 INTEGER Chan
30 LOADSUB Read_fdata FROM "XFER:MEM 0,0"
40 Chan=1
50 Read_fdata(Chan,Fmt(*))
Refer to the HP Instrument BASIC User's Handbook for more details.
The table below compares the speed of IBASIC using high-speed transfer
subroutines with that of a fast external controller using the SCPI
TRACE:DATA? CH1FDATA query.
Table 6-3 High-Speed Trace Transfer Times
Number of Trace Points
Controller Using Binary
TRACE:DATA?
(ms)
IBASIC Using
Read_fdata
(ms)
51 21 7
201 23 10
401 30 13
1601 82 32