NI Home
Cart Cart | Help
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Currently Being Moderated

Programmatically Routing PXI Trigger Lines Across a Multi Segment PXI Chassis in C#.NET

VERSION 2

Created on: May 13, 2009 2:30 PM by Chris_G. - Last Modified:  May 13, 2009 2:37 PM by Chris_G.

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.  When using Measurement Studio for Visual Studio, however, there are no native functions available for performing this function in the Session class or PXISession class.  If you wish to perform the same operation in any of the .NET languages, you will have to make calls into the visa32.dll in the system32 folder, and call the C functions which perform the operations for you. 

Attached is a Windows Form application written in C#.NET in Visual Studio 2005 which does exactly this.  It assumes that the VISA resource name of the PXI chassis backplane is “PXI0::1::BACKPLANE”, and routes TTL3 across buses 1 and 3 TTL1 across buses 1 and 2.  If an error occurs, a message popup will report it.  If the operation is a success, a message popup will indicate so.

KnowledgeBase 3BK9FL0M: Programmatically Routing PXI Trigger Lines Across a Multi-Segment PXI Chassis

 

Downloads:
Average User Rating
(0 ratings)




There are no comments on this document

More Like This

  • Retrieving data ...