Choosing Between the NI-SWITCH API and the DAQmx Switch API for Switch Applications Primary Software: Driver Software>>NI-SWITCHPrimary Software Version: 3.3 Primary Software Fixed Version: N/A Secondary Software: Driver Software>>NI-DAQmx
Problem: I am creating a new switch application and I see that I have two programming options, the NI-SWITCH Application Programming Interface (API) and the DAQmx Switch API. Which one should I use for my application? Solution: While the NI-SWITCH and DAQmx Switch APIs are very similar in terms of switching functionality, there are a couple of fundamental differences between the two interfaces. It is possible both APIs will work for your application, but often the application and your personal coding preferences will determine the correct API to use. Refer to the following information to choose between the NI-SWITCH and DAQmx Switch API. Note that both the NI-SWITCH and DAQmx Switch APIs are compatible with LabVIEW Real-Time. NI-SWITCH is an IVI specific driver which would maintain consistent programming techniques if other IVI specific drivers (like NI-SCOPE or NI-DMM) are being used in the system. If you are familiar with the programming style of NI’s IVI-specific drivers, this may be your preferred way to program. However, because communication is session-based, you must open a unique session for every switch module. Therefore this option is less-efficient when working with multiple switches and performing multi-module scanning. Examples to get you started with the NI-SWITCH API can be found in the following directories:
Related Links: Developer Zone Tutorial: Multi-module Scanning with National Instruments Switches IVI: Interchangeable Virtual Instruments Attachments:
Report Date: 11/13/2006 Last Updated: 11/14/2006 Document ID: 43CFNUAY |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
