beautypg.com

Agilent Technologies N5183A MXG User Manual

Page 274

background image

264

Agilent N518xA, E8663B, E44x8C, and E82x7D Signal Generators Programming Guide

Creating and Downloading Waveform Files
Programming Examples

On Error GoTo file_error

For index = 0 To (numPoints)

data = iq_data(index)

Put #FileHandle, index + 1, data 'Write the I/Q data to the file

Next index

Close #FileHandle

Call MsgBox("Data written to file " & strFilename, vbOKOnly, "Download")

Exit Sub

file_error:

MsgBox Err.Description

Close #FileHandle

End Sub

This manual is related to the following products: