How Can I Programmatically Determine the Serial Number of My NI Modular Instrument Without Opening a Driver Session? Primary Software: LabVIEW Development Systems>>Professional Development SystemPrimary 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 serial number 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 property 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: KnowledgeBase [0TOE61IU]: Programmatically Reading Serial Numbers from National Instruments Data Acquisition Devices Developer Zone Example:Programmatically Read DAQ Device Serial Numbers High-Speed Digitizers Home Page Attachments:
Report Date: 08/25/2005 Last Updated: 09/11/2007 Document ID: 3OOEEKOY |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
