Section 6: Instrument programming
Example: Retrieve the content of the script with scriptVar.source
Code
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())
Example: Retrieve the content of the script with scriptVar.list
Code
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
6-12
Models 707B and 708B Switching Matrix Reference Manual
Description
Request the source of scriptVarTest. The
instrument returns the following. Note that the
loadscript and endscript commands are not included
Description
Request a listing of the source of scriptVarTest.
The instrument returns the following. Note that the
loadscript and endscript commands are included.
707B-901-01 Rev. A / August 2010