Agilent-technologies N5183A MXG Uživatelský manuál Strana 277

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 366
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 276
Agilent N518xA, E8663B, E44x8C, and E82x7D Signal Generators Programming Guide 267
Creating and Downloading Waveform Files
Programming Examples
Get #FileHandle, index + 1, data '(index+1) is the record number
iq_data(index) = data
Next index
Close #FileHandle 'Close the file
'Write the command to the Header string. NOTE: syntax
Header = "MEM:DATA ""/USER/WAVEFORM/IQ_DataVB"","
'Now write the data to the signal generator's non-volatile memory (NVWFM)
SigGen.WriteIEEEBlock Header, iq_data
SigGen.WriteString "*OPC?" 'Wait for the operation to complete
response = SigGen.ReadString 'Signal generator reponse to the OPC? query
Call MsgBox("Data downloaded to the signal generator", vbOKOnly, "Download")
Exit Sub
errorhandler:
MsgBox Err.Description, vbExclamation, "Error Occurred", Err.HelpFile, Err.HelpContext
Exit Sub
file_error:
Call MsgBox(Err.Description, vbOKOnly) 'Display any error message
Close #FileHandle
End Sub
HP Basic Programming Examples
This section contains the following programming examples:
“Creating and Downloading Waveform Data Using HP BASIC for Windows®” on page 267
“Creating and Downloading Waveform Data Using HP BASIC for UNIX” on page 270
“Creating and Downloading E443xB Waveform Data Using HP BASIC for Windows” on page 272
“Creating and Downloading E443xB Waveform Data Using HP Basic for UNIX” on page 274
Creating and Downloading Waveform Data Using HP BASIC for Windows®
On the documentation CD, this programming example’s name is “hpbasicWin.txt.”
The following program will download a waveform using HP Basic for Windows into volatile ARB
memory. The waveform generated by this program is the same as the default SINE_TEST_WFM
waveform file available in the signal generators waveform memory. This code is similar to the code
shown for BASIC for UNIX but there is a formatting difference in line 130 and line 140.
To download into non- volatile memory, replace line 190 with:
190 OUTPUT @PSG USING "#,K";":MMEM:DATA ""NVWFM:testfile"", #"
Zobrazit stránku 276
1 2 ... 272 273 274 275 276 277 278 279 280 281 282 ... 365 366

Komentáře k této Příručce

Žádné komentáře