Technical data

Table Of Contents
System Commands 31
Agilent Infiniium 9000 Series Oscilloscopes Programmer's Reference 887
:SYSTem:SETup
Command :SYSTem:SETup <binary_block_data>
The :SYSTem:SETup command sets up the oscilloscope as defined by the
data in the binary block of data from the computer.
<binary
_block_data>
A binary block of data, consisting of bytes of setup information. The
number of bytes is a dynamic number that is read and allocated by
oscilloscope's software.
Example This example reads setup information from a file and restores it to the
oscilloscope.
' Read setup from a file:
Dim strPath As String
strPath = "c:\scope\config\setup.dat"
Dim hFile As Long
hFile = FreeFile
Dim varSetup As Variant
Open strPath For Binary Access Read As hFile ' Open file for input.
Get hFile, , varSetup ' Read data.
Close hFile ' Close file.
' Write setup to oscilloscope.
myScope.WriteIEEEBlock ":SYSTem:SETup", varSetup
Debug.Print "Setup bytes restored: " + CStr(LenB(varSetup))
Query :SYSTem:SETup?
The :SYSTem:SETup? query outputs the oscilloscope's current setup to the
computer in binary block data format as defined in the IEEE 488.2
standard.
Returned Format
[:SYSTem:SETup] #NX...X<setup_data_string><NL>
The first character in the setup data block is a number added for disk
operations.
Example This example stores the current oscilloscope setup to the variable,
varSetup, and then saves it to a file.
CAUTION
Setups saved from Infiniium software versions prior to 2.00 may not load correctly in
software versions 4.30 and greater.
You can remedy this by re-saving any pre-2.00 setups using any version of software
from version 2.00 to version 4.20.
Setups saved from software versions between 2.00 and 4.20 should load correctly
into version 4.30 and greater.