Operating and Programming 3
L4400 User’s Guide 65
Because of the similarity in products, code and applications can be leveraged
and ported between an L4400 instrument and its 34980A module
counterpart.
Porting Applications
The programming examples on the L4400 Product Reference CD- ROM as well
as all application programs contain a function that opens a “session” to, and
initializes the instrument.
In addition to specifying the instrument’s address string, this initialization
function contains parmeters that query and reset the instrument when the
session is opened. These parameters are represented by true/false conditions
that either perform an ID query or reset (true) or do not (false).
By setting the ID query parameter of the (session) initialization function to
‘False’, the program can be ported between corresponding (L4400 and
34980A) instruments.
For example, in the IVI- COM programming example
MultfunctionExample.csproj, the instrument session is opened using the
function:
host.Initialize("GPIB::9", false, true, standardInitOptions +
"," + driverSetupOptions);
By setting the ID query parameter to ‘false’ as shown and changing the
address string as required, the example can be run using the L4452A
multifunction module or the 34952A multifunction module. Note that
channel addresses within the program must be changed accordingly. See
“L4400 Series Channel Addressing Scheme” for more information.
Modifying each of the programming examples on the L4400 Product
Reference CD- ROM in this manner allows the examples to be used by the
L4400 instruments and their 34980A counterparts.
Analog Bus Applications
Usage:
• L4421A 40- Channel Armature Multiplexer
• L4433A Dual/Quad 4x8 Reed Matrix
This section provides important environmental and electrical considerations
that can affect analog bus usage on the L4421A and L4433A.
reset
ID query
address string