Table of Contents >Quanser Rapid Control Prototyping Toolkit >Data Acquisition Card Support >National Instruments Cards >
National Instruments DAQmx Overview
|
In order to access National Instruments' DAQmx compatible cards using RCP's data acquisition VIs, you must first install the DAQmx software. The latest version of DAQmx can be downloaded from National Instruments' website www.ni.com. |
Configuring the HIL Initialize VI
Included among the DAQmx applications is the Measurement and Automation Explorer (MAX). In the screen shot below, the PCI-6259 has the default device name "Dev1", and the PCI-MIO-16E-4 has a custom name of "MyBoardName". In the HIL Initialize VI, you have the option of either using a numeric board identifier as usual (the first board being board identifier 0), or identifying the board by its device name, such as "Dev1" (without the quotes). If you want to identify the board by device name and you change the name in MAX, you will also need to change the name in the HIL initialize VI.
The RCP DAQmx drivers are designed to dynamically learn which inputs and outputs are being used in order to maximize performance. However, when multiple sample rates are used, this learning process can result in a minor performance degradation until all of the inputs and outputs in use have been added to the internal driver read and write lists. When running at very high sampling rates, it is recommended that all the channels in use be specified in the HIL Initialize VI to eliminate this learning process. It is also recommended that you do not set the initial and final values or the A/D and D/A ranges for ports that are not in use. If you do, they will automatically be added to the read and write list, which may reduce your maximum sample rate, depending on the specific card.
Digital Input and Output
RCP addresses the digital inputs and outputs as an absolute line count whereas the National Instruments cards and DAQmx address the lines with a specific port-line location. To use a specific port-line address, you must convert it to an absolute line count. For instance, if you want to input line 4 on port 1, and there are 32 lines on port 0, then you would want to use line 35 (0...31 + 4 = 35). Make sure you are using the line numbers, not the PFI numbers, shown on the data sheet for the card you are using.
Quanser Terminal Boards
Many of National Instruments' cards will work with Quanser's terminal boards. In some cases, some card reconfiguration may be required, but this can often be achieved by setting a single option in the board-specific options. Please refer to the RCP help pages on individual cards for further information.
Copyright © Quanser Inc. This page was generated 2021-09-24. Submit feedback to Quanser about this page.
Link to this page.