Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

How Can I Programmatically Determine the Model of My NI Modular Instrument Without Opening a Driver Session?

Primary Software: LabVIEW Development Systems>>Professional Development System
Primary Software Version: 7.1
Primary Software Fixed Version: N/A
Secondary Software: Driver Software>>NI-DMM, Driver Software>>NI-FGEN, Driver Software>>NI-SCOPE, Driver Software>>NI-SWITCH, Driver Software>>NI-HSDIO
Hardware: Modular Instruments

Problem: How can I programmatically determine the model (for example, NI PXI-5122) of my NI Modular Instrument (High-Speed Digitizer, Signal Generator, Digital Multimeter, High-Speed Digital Generator/Analyzer, Switch, RF Signal Generator) without opening a driver session? For DAQmx devices, I can use a DAQmx System propery node. Is there a method for Modular Instruments?

Solution: NI-ModInst is an API that you can use to query information about National Instruments Modular Instrument (MI) devices installed in your system. It allows you to query device specific information without opening driver sessions, and can query device names, models, and serial numbers. Currently, it only supports the NI-SCOPE driver and is released with NI-SCOPE 2.8. Eventually, it will support all of the Modular Instruments, including NI-SCOPE, NI-FGEN, NI-HSDIO, NI-DMM, NI-RFSG, and NI-SWITCH. As of now, you can query NI-SWITCH devices using a DAQmx System property node.

An example on how to use the NI-ModInst API is shown below.


A LabVIEW example program is installed for NI-ModInst when you install NI-SCOPE 2.8 and is located at:
C:\Program Files\National Instruments\LabVIEW 7.1\examples\instr\niModInst

Note: Launch Measurement and Automation Explorer (MAX) before attempting to query MI devices only supported in Traditional NI-DAQ. If your device is only supported in Traditional NI-DAQ, your device appears in MAX under Devices and Interface»Traditional NI-DAQ Devices and does not appear under Devices and Interface»NI-DAQmx Devices.

Related Links:
Modular Instruments Home Page
KnowledgeBase [2MDFG2WD]: Programmatic PXI Slot Detection

Attachments:


niModInst.vi


Report Date: 08/26/2005
Last Updated: 04/07/2006
Document ID: 3OPFH5OY

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit