Several example programs are provided for the Keysight L4400 series instruments. To install all of the example programs on your hard disk, click 'Install' and follow the instructions in the dialog box. The installation directory defaults to C:\Program Files\Keysight\L4400, but you can specify the directory in which to install the example programs. For the VISA COM examples, you must have the Keysight I/O Libraries Suite 14.1 or later with VISA COM installed.

Notice:

The example programs listed below are protected by copyright. Copyright © 2006 Keysight Technologies, Inc.

You have a royalty-free right to use, modify, reproduce and distribute the example programs (and/or any modified version) in any way you find useful, provided that you agree that Keysight has no warranty, obligations, or liability for any example programs.

Keysight Technologies provides programming examples for illustration only. All example programs assume that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Keysight support engineers can help explain the functionality of Keysight software components and associated commands, but they will not modify these example programs to provide added functionality or construct procedures to meet your specific needs.

Example Programs

Example programs are provided for each of the following programming languages.

CSharp

There are seven example programs contained in the following directories for using IVI-COM:

  • SendSCPI: Shows how to send SCPI commands and read the response by using the IVI-COM driver calls to do the custom IO.
  • Mux_L4421A: Illustrates 2 wire scanning using the Keysight 34410A/34411A DMM with the Keysight L4421A Switch Unit.
  • Dac51: Demonstrates programming the DAC for creating an internal waveform.
  • Multifunction: Demonstrates digital input and output, DC output from the DAC, reading and configuring the totalizer.
  • DigitalMemRead: Demonstrates how to load the 34950A digital I/O memory and clock out a pattern sequence.
  • DigitalMemWrite: Demonstrates how to transfer digital data from the L4450A memory to a receiving module or computer.
  • L4445A: Demonstrates how to configure and operate a 1810UL switch and close channels on the L4445A Microwave card.

VB 6.0

There are six example programs contained in the following directories for using VISA COM:

  • Mux_L4421A: Illustrates 2 wire scanning using the Keysight 34410A/34411A DMM with the Keysight L4421A Switch Unit.
  • L4451A DAC: Demonstrates programming the DAC for creating an internal waveform.
  • L4452A Multi Funct: Demonstrates digital input and output, DC output from the DAC, reading and configuring the totalizer.
  • dig memread: Demonstrates how to load the 34950A digital I/O memory and clock out a pattern sequence.
  • dig memwrite: Demonstrates how to transfer digital data from the L4450A memory to a receiving module or computer.
  • L4445A: Demonstrates how to configure and operate a 1810UL switch and close channels on the L4445A Microwave card.

There are six example programs contained in the following directories for using IVI-COM:

  • Mux_L4421A: Illustrates 2 wire scanning using the Keysight 34410A/34411A DMM with the Keysight L4421A Switch Unit.
  • EZ_DAC: Demonstrates programming the DAC for creating an internal waveform.
  • EZ_MultiFunc: Demonstrates digital input and output, DC output from the DAC, reading and configuring the totalizer.
  • DigitalMemoryRead: Demonstrates how to load the 34950A digital I/O memory and clock out a pattern sequence.
  • DigitalMemoryWrite: Demonstrates how to transfer digital data from the L4450A memory to a receiving module or computer.
  • L4445A: Demonstrates how to configure and operate a 1810UL switch and close channels on the L4445A Microwave card.

There are six example programs contained in the following directories for using IVI-C:

  • SendSCPI: Shows how to send SCPI commands and read the response by using the IVI-C driver calls to do the custom IO.
  • Dac51: Demonstrates programming the DAC for creating an internal waveform.
  • Multifunction: Demonstrates digital input and output, DC output from the DAC, reading and configuring the totalizer.
  • DigitalMemoryRead: Demonstrates how to load the 34950A digital I/O memory and clock out a pattern sequence.
  • DigitalMemoryWrite: Demonstrates how to transfer digital data from the L4450A memory to a receiving module or computer.
  • L4445A: Demonstrates how to configure and operate a 1810UL switch and close channels on the L4445A Microwave card.

VB 7.0

There are seven example programs contained in the following directories for using IVI-COM:

  • SendSCPI: Shows how to send SCPI commands and read the response by using the IVI-COM driver calls to do the custom IO.
  • Mux_L4421A: Illustrates 2 wire scanning using the Keysight 34410A/34411A DMM with the Keysight L4421A Switch Unit.
  • EZ_DAC: Demonstrates programming the DAC for creating an internal waveform.
  • EZ_MultiFunc: Demonstrates digital input and output, DC output from the DAC, reading and configuring the totalizer.
  • DigitalMemRead: Demonstrates how to load the 34950A digital I/O memory and clock out a pattern sequence.
  • DigitalMemWrite: Demonstrates how to transfer digital data from the L4450A memory to a receiving module or computer.
  • L4445A: Demonstrates how to configure and operate a 1810UL switch and close channels on the L4445A Microwave card.

C/C++

There are six example programs contained in the following directories for using VISA:

  • Mux_L4421A: Illustrates 2 wire scanning using the Keysight 34410A/34411A DMM with the Keysight L4421A Switch Unit.
  • waveform_L4451A: Demonstrates programming the DAC for creating an internal waveform.
  • IO_totalizer_L4452A: Demonstrates digital input and output, DC output from the DAC, reading and configuring the totalizer.
  • digmemread_L4450A: Demonstrates how to load the 34950A digital I/O memory and clock out a pattern sequence.
  • digmemwrite_L4450A: Demonstrates how to transfer digital data from the L4450A memory to a receiving module or computer.
  • L4445A_C: Demonstrates how to configure and operate a 1810UL switch and close channels on the L4445A Microwave card.

There are five example programs contained in the following directories for using IVI-COM:

  • Mux_L4421A: Illustrates 2 wire scanning using the Keysight 34410A/34411A DMM with the Keysight L4421A Switch Unit.
  • DAC_L4451: Demonstrates programming the DAC for creating an internal waveform.
  • Multifunction: Demonstrates digital input and output, DC output from the DAC, reading and configuring the totalizer.
  • DigitalMemoryRead: Demonstrates how to load the 34950A digital I/O memory and clock out a pattern sequence.
  • DigitalMemoryWrite: Demonstrates how to transfer digital data from the L4450A memory to a receiving module or computer.

There are six example programs contained in the following directories for using IVI-C:

  • SendSCPI: Shows how to send SCPI commands and read the response by using the IVI-C driver calls to do the custom IO.
  • Dac51: Demonstrates programming the DAC for creating an internal waveform.
  • Multifunction: Demonstrates digital input and output, DC output from the DAC, reading and configuring the totalizer.
  • DigitalMemoryRead: Demonstrates how to load the 34950A digital I/O memory and clock out a pattern sequence.
  • DigitalMemoryWrite: Demonstrates how to transfer digital data from the L4450A memory to a receiving module or computer
  • L4445A: Demonstrates how to configure and operate a 1810UL switch and close channels on the L4445A Microwave card.

VEE

There are five Keysight VEE examples contained in the VEE directory using VEE 7.0 or later:

  • mux_L4421A.vee: Illustrates 2 wire scanning using the Keysight 34410A/34411A DMM with the Keysight L4421A Switch Unit.
  • waveform_L4451A.vee: Demonstrates programming the DAC for creating an internal waveform.
  • IO_totalizer_4452A.vee: Demonstrates digital input and output, DC output from the DAC, reading and configuring the totalizer.
  • digmemread_L4450A.vee: Demonstrates how to load the 34950A digital I/O memory and clock out a pattern sequence.
  • digmemwrite_L4450A.vee: Demonstrates how to transfer digital data from the L4450A memory to a receiving module or computer.

LabView

There are seven LabView examples contained in the LabView directory for LabView 7.0 or later:

  • SwitchOps.vi: This example opens and closes switches and compares the relay cycle counts both before and after the switch operations are performed. This can be used on any switch module, but may need channel numbers modified if using on a matrix switch.
  • TestTrace_51.vi: This example shows how to create standard waveforms on the L4451 and output them. It also shows how to delete a waveform and how to get a catalog of the present list of waveforms.
  • Test_Byte_Bit_50.vi: This example outputs a digital byte on bank 1 of a L4450 card and reads the result as input on bank 2. A single bit of the output is then changed and the result is read and examined to verify the correct response. The examples assumes there is a cable connecting the two banks.
  • TestSeq_50.vi: This example shows how to create, use, and delete sequences. It happens to use an L4450 card, but sequence operations can be used on any L4400 series card.
  • Test_StaticIO_50.vi: This example shows how to do static digital output and input on the L4450 card. The example assumes a cable is connected between bank 1 and bank 2 of the card. The digital operations shown would also work on an L4452 card, once the channel numbers were modified to correspond to those of an L4452.
  • Transfer_50.vi: This example shows how to create a pattern in memory on bank 1 of an L4450. It then configures bank 2 to receive a pattern and transmits the pattern from bank 1 and receives it on bank 2. The example assumes a cable is connected between bank 1 and bank 2 of the L4450 module.
  • TestOper_45.vi: This example sets up default configurations on a L4445A and then closes some of the switches.

Microsoft is a U.S. registered trademark of Microsoft Corporation.