
Section 5: Switching and scanning
Series 3700A System Switch/Multimeter Reference Manual
5-12
3700AS-901-01 Rev. D/June 2018
When the response is a comma-delimited string, the individual return items can be identified by
iterating through the list using the comma delimiters. For example, the Lua code below will start at the
beginning of a string and break the string into individual items at each comma. The
tonumber()
function is used on each item to determine if it is a number or not. In either case, the value is printed.
index1 = 1
index2 = 1
text = "123,abc,hello,4.56"
endIndex = string.len(text)
while index2 ~= endIndex do
index2 = string.find(text, ",", index1)
if not index2 then
index2 = endIndex
end
subString = string.sub(text, index1, index2 - 1)
if not number(subString) then
print(subString)
else
print(tonumber(subString))
end
index1 = 1
end
Selecting a range of channels on the front panel
You can perform operations on a single channel or range of channels. Specify a channel range by
selecting a starting channel number and ending channel number. When you request an operation be
performed on a range of channels, the Series 3700A performs the same operation on all channels
within the channel range.
To select a channel range on the front panel (for example, channels 1003 through 1005):
A single channel is selected when the starting and ending channel for a range match.
You cannot explicitly select an analog backplane relay on the front-panel interface. You can only
associate a backplane relay with a switching module channel. Refer to
5-17) for further details.
1. To change the present slot, press the navigation wheel . The first digit of the four-digit channel
number flashes, indicating edit mode.
2. Turn the navigation wheel to change the number to select any slot that has a switching module
or pseudocard installed. For example, change the digit to a 1.
3. Press the navigation wheel . This accepts the slot selection and selects edit mode for the
channel. Digits two through four of the four-digit channel number flash, indicating edit mode.
4. Turn the navigation wheel to change the starting channel number. You can select any channel
available for the selected slot's module. For example, change the digits to 003.
5. Press the navigation wheel . This accepts the channel selection and selects edit mode for the
channel range. Digits two through four of the smaller four-digit channel number flash, indicating
edit mode.
6. Turn the navigation wheel to change the ending channel number. You can select any channel
available for the selected slot's module. For example, change the digits to 005.
7. Press the navigation wheel to accept the channel selection.