Section 4
:
Frequently Asked Questions
Series 3700 System Switch/Multimeter Quick Start Guide
4-22
Document Number: 3700S-903-01 Rev. A / August 2007
Examples
Below is an example of how to send a reset command via GPIB in Visual Basic to a Model 3706
at GPIB address 16, using the Keithley/CEC GPIB card driver:
dim intStatus as integer
call Send (16, "reset()", intStatus)
This same example can be accomplished in LabVIEW using the
GPIB vi
.
Below is an example of how to send a reset command via USB in Visual Basic. The example
below also shows the initialization of the VISA resource for clarity:
dim status as viStatus
dim vi as ViSession
dim strMsg as String
dim intRetCount as Integer
status = viOpen("USB0::0x05E6:0x3706::1234567::INSTR", VI_NULL,
VI_NULL, vi)
strMsg = "reset()"
status = viWrite(vi, strMsg, Len(strMsg), intRetCount)
This same example can be implemented in LabVIEW® using VISA.
Using external programs with a script
A script is a simple combination of ICL and TSL commands. Remember that the Series 3700
has its own microprocessor and can compile and execute code. You will gain the greatest
throughput using this method of distributed programming.
Test Script Builder (TSB) might be used to create and test scripts because its user interface
offers several advantages including color coding, debugging tools, and error handling.
However, you might wish for a third party ADE to handle the 'official' storing of scripts to the
Series 3700 in a production test system. You can use the ADE of your choice to store
debugged scripts to the instrument. To inform the Series 3700 that you are sending a script,
you must surround the script with the commands loadscript and endscript. For more
information on sending scripts to the instrument, please refer to the test script builder section
contained in the Series 3700 reference manual.
Содержание 3706
Страница 3: ......
Страница 11: ......
Страница 25: ......
Страница 67: ......
Страница 72: ...This page left blank intentionally...