What are you looking for?
34980A Example Programs
Several example programs are provided for the Keysight 34980A Multifunction Switch/Measure Unit and Modules. 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\34980, 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 revision M or later with VISA COM installed.
Example programs are not yet available for the 34945A module but L4445A example programs can be modified to work with the 34945A. The 34980A address and slot number must be modified in order for the example programs to work properly for the 34945A. Example Programs for the Keysight L4400 Series LXI compliant Instruments
Notice
The example programs listed below are protected by copyright. Copyright © 2004 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.
VB 6.0
There are seven example programs contained in the following directories using VISA and VISA COM:
- 34921A MUX Scanning: Demonstrates how to configure functions and scan, and read the data from a scan for the 34921A MUX. May be easily adapted to other MUX cards.
- 34951A DAC: Demonstrates programming the DAC for DC output, creating an internal waveform, creating a waveform from a file, and creating burst of specified length.
- 34952A Multi Funct: Demonstrates digital input and output, DC output from the DAC, reading and configuring the totalizer.
- EZ 34951A DAC: Simple example to output an internal waveform.
- EZ 34952A Multifunction: Simple example for DC output, digital I/O and totalizer.
- dig memread: Demonstrates how to load the 34950A digital I/O memory and clock out a pattern sequence.
- dig memwrite: Demonstrates how to log digital data into the 34950A digital I/O memory and then transfer the data to the computer.
There are five example programs contained in the following directories using VISA and VISA COM:
- 34921A MUX Scanning: Demonstrates how to configure functions and scan, and read the data from a scan for the 34921A MUX. May be easily adapted to other MUX cards.
- 34951A DAC: Demonstrates programming the DAC for DC output, creating an internal waveform, creating a waveform from a file, and creating burst of specified length.
- 34952A Multi Funct: Demonstrates digital input and output, DC output from the DAC, reading and configuring the totalizer.
- EZ 34951A DAC: Simple example to output an internal waveform.
- EZ 34952A MultiFunction: Simple example for DC output, digital I/O and totalizer.
There are three example programs contained in the following directories using IVI-COM:
- EZ_DAC: Simple example to output an internal waveform.
- EZ_MultiFunc: Simple example for DC output, digital I/O and totalizer.
- MuxExample: Demonstrates how to configure functions and scan, and read the data from a scan for the 34921A MUX. May be easily adapted to other MUX cards.
VB 7.0
There are five example programs contained in the following directories using IVI-COM:
- EZ_DAC: Simple example to output an internal waveform.
- EZ_MultiFunc: Simple example for DC output, digital I/O and totalizer.
- MuxExample: Demonstrates how to configure functions and scan, and read the data from a scan for the 34921A MUX. May be easily adapted to other MUX cards.
- DigitalMemRead: Demonstrates how to load the 34950A digital I/O memory and clock out a pattern sequence.
- DigitalMemWrite: Demonstrates how to log digital data into the 34950A digital I/O memory and then transfer the data to the computer.
C/C++
There are five example programs contained in the following directories for using VISA:
- Mux_34921A: Demonstrates how to configure functions and scan, and read the data from a scan for the 34921A MUX. May be easily adapted to other MUX cards.
- waveform_34951A: Demonstrates programming the DAC for creating an internal waveform.
- IO_totalizer_34952A: Demonstrates digital input and output, DC output from the DAC, reading and configuring the totalizer.
- digmemread_34950A: Demonstrates how to load the 34950A digital I/O memory and clock out a pattern sequence.
- digmemwrite_34950A: Demonstrates how to log digital data into the 34950A digital I/O memory and then transfer the data to the computer.
There are four example programs contained in the following directories for using IVI-C:
- DmmScan: Demonstrates how to configure functions and scan, and read the data from a scan for the 34921A MUX. May be easily adapted to other MUX cards.
- 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.
- DigMemRead: Demonstrates how to load the 34950A digital I/O memory and clock out a pattern sequence.
- Demonstrates how to log digital data into the 34950A digital I/O memory and then transfer the data to the computer.
C #
There are five example programs contained in the following directories for using IVI-COM:
- DmmScan: Demonstrates how to configure functions and scan, and read the data from a scan for the 34921A MUX. May be easily adapted to other MUX cards.
- 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 log digital data into the 34950A digital I/O memory and then transfer the data to the computer.
Excel
There are two Microsoft ® Excel examples contained in the Excel directory for Excel 2000 or later using VISA COM:
- 3451A_VISACom.xls: Demonstrates reading data from a spreadsheet and programming the DAC for creating a waveform with the data.
- 34921A scanning.xls: Demonstrates how to configure functions and scan, and read the data from a scan for the 34921A MUX. Inserts the scanned data into a spreadsheet. May be easily adapted to other MUX cards.
LabVIEW
There are five LabVIEW examples contained in the LabVIEW directory for LabVIEW 7.0 or later:
- MUX example.vi: Demonstrates how to configure functions and scan, and read the data from a scan for the 34921A MUX. May be easily adapted to other MUX cards.
- DAC example.vi: Demonstrates programming the DAC for creating an internal waveform.
- DigIo_example.vi: Demonstrates digital input and output, DC output from the DAC, reading and configuring the totalizer using the 34952A Multfunction Card.
- DigMemRead.vi Demonstrates how to load the 34950A digital I/O memory and clock out a pattern sequence.
- DigMemWrite.vi: Demonstrates how to log digital data into the 34950A digital I/O memory and then transfer the data to the computer.
VEE
There are five VEE examples contained in the VEE directory using VEE 7.0 or later:
- mux_34921A.vee: Demonstrates how to configure functions and scan, and read the data from a scan for the 34921A MUX. May be easily adapted to other MUX cards.
- waveform_34951A.vee: Demonstrates programming the DAC for creating an internal waveform.
- IO_totalizer_34952A.vee: Demonstrates digital input and output, DC output from the DAC, reading and configuring the totalizer.
- digmemreadvee_final.vee: Demonstrates how to load the 34950A digital I/O memory and clock out a pattern sequence.
- digmemwritevee_final.vee: Demonstrates how to log digital data into the 34950A digital I/O memory and then transfer the data to the computer.
There are three example programs contained in the following directories for using IVI-C:
- DmmScan: Demonstrates how to configure functions and scan, and read the data from a scan for the 34921A MUX. May be easily adapted to other MUX cards.
- 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.
Learn more about Keysight Multiplexer Modules for 34980A
Microsoft is a U.S. registered trademark of Microsoft Corporation.