Difference between revisions of "NI-DAQ Cards on Linux"

From Mech
Jump to navigationJump to search
Line 64: Line 64:
</li>
</li>
<ol>
<ol>

==Useful Links==
<ul>
<li>http://decibel.ni.com/content/docs/DOC-2808<li>
<li>[http://sine.ni.com/ds/app/doc/p/id/ds-15/lang/en Datasheet for 6220]<li>
<li>/usr/local/natinst/nidaqmx/docs/<li>
<li>/usr/local/natinst/nidaqmx/examples/<li>
<ul>


[[Category:Linux]]
[[Category:Linux]]

Revision as of 20:57, 23 April 2010

Overview

Project by: James Yeung, Master in Electrical and Computer Engineering, 2010.
Last updated: April 23, 2010

The goal of this project was to get the National Instruments Data Acquisition Cards to work on Linux. More specifically, the two cards that will be documented here are:

This wiki document assumes that you have real-time patched SUSE 11.0 operating system installed. You can follow the guide here.

Installing Drivers and C-API

The supporting software is all available on the National Instruments website. The specific package that we will need is NI-DAQmx 8.0.1. This package contains the drivers, C-API library, documentation on the library functions and example code.

Instructions

  1. Download the NI-DAQmx 8.0.1 here
    • The file that you download is an ISO, or an image of a disk. You could burn it on a CD and run it from a physical disk, but we will be mounting the ISO virtually.
  2. Install necessary supporting packages.
    • Open a terminal window. GNOME Terminal would do.
    • Use zypper to install the packages.
    • >> zypper in kernel-source-rt kernel-syms-rt
  3. Configure SUSE to startup in 4G memory mode.
    • This is not necessary if your system is 32-bit.
    • Go to the grub folder.
    • >> cd /boot/grub
    • Add "set mem=4096" to the entry.
    • >> vi ********************** (to be finished)
  4. Restart the computer with 4G memory mode.
  5. Install NI-DAQmx
      >> cd ~/Downloads/ >> tar >> cd nidaqmx801 >> mkdir /mnt/daqmx >> mount -t iso9660 -o loop nidaqmx801.iso /mnt/daqmx >> cp /mnt/daqmx/disk . >> cd disk >> sudo ./INSTALL
    • Follow the prompts to install.
  6. Restart the computer.
  7. Restart the computer.
    • Open terminal and type
    • >> nilsdev
    • You should be able to see information about the NI-DAQ cards.
    1. Useful Links