How to Reserve or Route PXI Trigger in Linux Desktop?

Updated Sep 21, 2023

Reported In

Software

  • LabVIEW

Driver

  • NI-VISA
  • PXI Platform Services

Operating System

  • Linux

Programming Language

  • C
  • LabVIEW G

Issue Details

Since Linux Desktop does not have NI MAX, how a user or developer can route or reserve a PXI trigger?

Solution

For PXI Platform Services 19.5 or earlier, nipxiconfig --route-triggers and nipxiconfig --reserve-triggers could be used in the terminal for trigger routing and reservation, respectively. 

For PXI Platform Service 20.0 and later, nipxiconfig --route-triggers and nipxiconfig --reserve-triggers have been removed. NI-VISA could be used to route or reserve trigger programmatically. Example code for trigger routing and reservation can be found in the NI-VISA example folder, within its PXI folder. For example, in Ubuntu, the example is at /usr/share/doc/ni-visa/examples/c/pxi.

Additional Information

NI-VISA approach for trigger routing and reservation are applicable to before PXI Platform Service 20.0.

Kindly refer to the readme of the installed NI Linux Device Drivers to determine what version of PXI Platform Service is in use.