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

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


<li>Restart computer with 4G memory mode.</li>
<li>Restart the computer with 4G memory mode.</li>


<li>Install NI-DAQmx</li>
<li>Install NI-DAQmx
<ul>
>> cd ~/Downloads/
>> cd ~/Downloads/
>> tar
>> tar
Line 49: Line 50:
>> cd disk
>> cd disk
>> sudo ./INSTALL
>> sudo ./INSTALL
<ul>
<li> Follow the prompts to install. </li>
<li> Follow the prompts to install. </li>
</ul>
</ul>
</li>
</li>


<li>Restart the computer.</li>

<li>Restart the computer.
<ul>
<li>Open terminal and type<li>
>> nilsdev
<li>You should be able to see information about the NI-DAQ cards.
</ul>
</li>
<ol>


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

Revision as of 20:55, 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.