Example Code

Programmatically Route PXI Trigger Lines Across a Multi Segment PXI Chassis in LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Hardware

  • Data Acquisition (DAQ)

    Driver

  • NI DAQmx
  • NI VISA

Code and Documents

Attachment

Download All

Overview
This VI demonstrates how to route one or all the PXI Trigger Lines (0..7) simultaneously from the source to destination bus

 
Description
Here is a brief description of the example:

Using the NI VISA driver, it is possible to programmatically route the trigger lines in a multi-segment PXI chassis using LabVIEW, LabWindows CVI, or another ANSI C development environment. The following example demonstrates how to route one or all the PXI Trigger Lines (0..7) simultaneously from the source to destination bus.

 

Requirements

  1. LabVIEW 2012 (or compatible)
  2. NI-VISA
  3. NI-PXI Devices


Steps to Implement or Execute Code

  1. Initialize values.
  2. Update the user interface to reflect the state of the VI.
  3. Respond to user events: Open Session, Route, Route All, Unroute All, Close Session, Stop button presses.
  4. Check for errors or a Stop button press event.
  5. Handle errors.

 

Additional Information or References

VI Snippet

 Route PXI Trigger 2012 NIVerified.png

 **This document has been updated to meet the current required format for the NI Code Exchange.**

Mikhail
RF Toolkits, Product Support Engineer
National Instruments

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.