IDL connects to GPIB equipment through a Prologix® Ethernet to GPIB interface adapter.
The network settings are saved on the onboard memory and will not need to be changed. The adapter only accepts one open connection at a time. If two users are simultaneously trying to communicate to the adapter, only the first open connection will have access and the second will be refused. If a user had a computer or application crash while a connection was opened, no new connections will be accepted. To clear this problem, the adapter must have its power cycled. To do this, unplug the adapter and wait a couple of seconds before plugging it back in. It is important to mention that the likelihood of a hung connection is low since the IDL routines have the connection opened for less than a second at a time.
hp_dvm, mode=mode, range=range, zero=zero, reading=reading, take=take, verbose=verbose
hp_dvm without any arguments to get the help page
hp_dvm, mode=1, range=8, reading=user_variable, /take
Mode is set to DC Volts and Range set to AutoRange. Voltage reading is taken and stored into
DVM is zeroed (Use this with care, maybe if there is an offset even if everything is unplugged from the dvm)
Voltage is read and output to screen ONLY, set
reading to a user variable for the value to be stored
|mode =||Set to Measure|
|range =||Range set to|
|-2||30 mV DC|
|-1||300mV AC/DC or 300mA AC/DC|
|0||3 V AC/DC or 3 A AC/DC|
|1||30 V AC/DC or 30 Ohm|
|2||300 V AC/DC or 300 Ohm|
/take keyword must be set in order for a measurement to be taken. If not set, no measurement will be taken even if "reading" variable was declared.
/zero keyword zeros the dvm. This can be useful if signal is known to be zero but offset voltage still exists.
/verbose keyword is used mainly for debugging purposes. Keyword sets procedure to output various diagnostic messages to assist in troubleshooting.
set_srs, frq=frq, vpp=vpp, dbm=dbm, off=off, phs=phs, srs2=srs2, help=help
set_srs, /help to get the help page
set_srs, frq=5e6, dbm=5, /srs2
SRS2 is set to 5MHz sine wave with a 5dBm amplitude
set_srs, frq=1e7, vpp=3, off=1
SRS1 is set to 10MHz sine wave with a 3V peak to peak amplitude and 1V positive offset
||Frequency [Hz]||0 <
||Peak-to-Peak Voltage [V]||-5 <
||milli-deciBell Amplitude [dBm]||-36 <
||DC Offset Voltage [V]||-5 <
||Phase Offset [degrees]||0 <
/srs2 keyword to control the SRS2 Synthesizer. If keyword is not set, procedure defaults to SRS1 control.
/help keyword without any other arguments to bring up the help screen.