Section 6: Instrument programming
Models 707B and 708B Switching Matrix Reference Manual
6-12
707B-901-01 Rev. A / August 2010
Example: Retrieve the content of the script with scriptVar.source
Code Description
print(scriptVarTest.source)
errorqueue.clear()
closedChannels = channel.getclose("1F10")
if closedChannels == nil then
channel.setforbidden("1F10")
else
channel.open("1F10")
channel.setforbidden("1F10")
end
channel.close("1F10")
print(errorqueue.next())
Request the source of
scriptVarTest
. The
instrument returns the following. Note that the
loadscript and endscript commands are not included
Example: Retrieve the content of the script with scriptVar.list
Code Description
scriptVarTest.list()
loadscript scriptVarTest
errorqueue.clear()
closedChannels =
channel.getclose("1F10")
if closedChannels == nil then
channel.setforbidden("1F10")
else
channel.open("1F10")
channel.setforbidden("1F10")
end
channel.close("1F10")
print(errorqueue.next())
endscript
Request a listing of the source of
scriptVarTest
.
The instrument returns the following. Note that the
loadscript and endscript commands are included.