Using USB 6009 on Ubuntu 12.04

So I've read many forums on this and it seems to be a common issue, which no one has figured out (from what I've read so far). I need to have the USB 6009 working on Ubuntu 12.04 for some field experiments and I don't have alternatives / options.
I decided to go ahead and try installing the drives. I found this page (http://maztories.blogspot.sg/2013/03/ni-usb-6008-card-can-be-installed-in.html) which I thought explained the steps in a simple way. I was able to install the latest versions of NI-KAL and NI-VISA with the steps mentioned. But I had problems installing NI-DAQmx Base.
I reached this point (alien -k --scripts *.rpm) where I got the error, the rpm packages are 32-bit (i386) and cannot be extracted on a 64-bit machine. I started looking at alternative ways to convert the RPM files to DEB.
I tried the steps below mentioned in this link (http://askubuntu.com/questions/215624/alien-cannot-built-package-for-architecture-ubuntu-amd64) but was stuck again at "...labview2010 / 2011 / 2012..." RPM files, which didn't have an "install" folder.
alien --to-tgz --scripts file.i386.rpm
mkdir unpack
cd unpack
tar -xpzf ../file.tgz
mv install ..
cp -rv * /
cd ../install
./doinst.sh
I continued looking for alternatives and found this link
and I followed the steps below.
The process is quite easy, in short you need to modify the control file and that's it.
sudo alien -g package-name.rpm
cd package-dir/
sudo vi debian/control
Now change the architecture (i386 in my case) to be the one you need. For example, I added the amd64 archicture and this is how the line ended up:
Architecture: i386, amd64
Last step:
sudo debian/rules binary
This will produce the .deb file.
I was able to create the DEB files successfully. I tried the next step of installing DEB file (dpkg -i *.deb) and it worked! I followed the remaining steps until ./updateNIDrivers and everything worked fine.
After this, I updated the firmware on DAQ to that of DAQmx base since I had used it on windows machine with DAQmx earlier. I followed the steps in these links:
https://decibel.ni.com/content/docs/DOC-12153
http://digital.ni.com/public.nsf/websearch/91CBCFE9E171C845862572CF0077D8F9?OpenDocument
I went back to Linux and tried connecting the USB DAQ. The LED light on the DAQ blinks. I tried the lsusb command and I get the following:
$ lsusb
Bus 002 Device 003: ID 0a5c:5800 Broadcom Corp. BCM5880 Secure Applications Processor
Bus 002 Device 004: ID 3923:717b National Instruments Corp.
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 05ca:1814 Ricoh Co., Ltd HD Webcam
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
I see National Instruments Corp. as one device which means the DAQ is being recognized. But when I type lsdaq I get the following: 
/usr/local/natinst/nidaqmxbase/bin$ lsdaq
Detecting National Instruments DAQ Devices
Found the following DAQ Devices:
/usr/local/bin/lsdaq: line 7: /etc/natinst/nidaqmxbase/bin/daqmxbase_listdevices: No such file or directory
I'm not sure what to do after this point. Since the error says No such file or directory, I don't know if the NI DAQmx base installed properly. Are the steps that I followed correct? Is converting RPM to DEB in the way I mentioned the right way? 
Any suggestions would be greatly appreciated. I really need to get this working.
Thanks!

Hello all,
I am also having a problem getting this working. 
It was installed on an old i386 machine with Redhat, but I am now trying to move it to a new amd64 machine with Ubuntu as the old PC died.
I have used alien -g name.rpm and /debian/rules library to create the deb files.  dpkg -i installed them ok.
When I try to compile any code that has #INCLUDE "NIDAQmxBase.h" it gives a fatal error : No such file or directory.
I added the location of this file /usr/local/natinst/nidaqmxbase/include/ to the path but still got the same error when I run gcc.
I created a Makefile and added includes=I/usr/local/natinst/nidaqmxbase/include/
This has got me past the missing NIDAQmxBase.h problem but now it cannot find lnidamxbase lnidaqmxbaselv and llvrtdark
I tried adding nilibs=-lnidamxbase -lnidaqmxbaselv -llvrtdark to the makefile with out any luck. 
I do not know much about LD so I am not sure if I still have an issue there.
I also do not have the lsdaq command in the bin directory so I may not have successfully installed the ni software packages.
Has anyone managed to solve the USB6009 on a 64 bit Debian base at all?
I am running Ubuntu 12.04 64bit.
Hopefully between us all we can crack this for debian based machines.
s.vignesh  wrote:
I continued looking for alternatives and found this link
and I followed the steps below.
The process is quite easy, in short you need to modify the control file and that's it.
sudo alien -g package-name.rpm
cd package-dir/
sudo vi debian/control
s.vignesh, your link to these steps is not showing up.  Can you repost it.  I am not sure what other steps you did after the dpkg -i
Regards,
Phil

Similar Messages

  • Logic analyzer using usb 6009

    i am having 4 LEDs which are flashing in sequence to the decade counter. i want to observe the flashing sequence of these LEDs on LabVIEW using usb6009 such as 0000, 0001, 0010, 0011 and so on...
    how can i view them on a digital waveform graph...making it a simple logic analyzer... please help..

    First, the USB-6009 is not very suitable for a logic analyzer because it only has software timed digital inputs. So you are limited to how fast you can acquire the data and  the timing between successive samples will have significant jitter.
    Within those limitations you can somewhat demonstrate the concept of a logic analyzer with the USB-6009 for slow signals. If the flashing sequence of the LEDs is slow enough to be perceptible to the human eye/brain, then you can probably get something like what you want.
    Start by looking at the DAQ examples to see if there is one which is close to what you need. Find the best example, copy it to a new name and then modify the copy as needed.
    If you want better timing accuracy and resolution, consider using analog inputs. They are hardware timed. With four channels you could probably get 10 kHz or slightly more.
    Lynn

  • USB 6009 DAQ to use in Simulink at External mode with DAQ toolbox

    hi
    Currently I am using usb 6009 daq board for data acquisition in using simulink. I have created a model with taking analog input from data acquisition toolbox. Then when i want to run in external mode and try to connet to target, the following error is coming up:
    Could not execute target data map file 'untitled_rtwin_win32\untitled_targ_data_map' or it does not exist. Stop the target, delete the untitled executable, rebuild the code,and try again. Note that execution of external mode requires the build directory to be present...
    How can I solve this problem? For your info, I am using 32-bit matlab, version: 2012a
    For your info, a snapshot of the error is attached,
    Any help would be appreciated Thanks
    Attachments:
    Untitled.jpg ‏130 KB

    Hi Mahmudur,
    what does MathWorks say about this error message?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • USB 6009 and TDMS write

    Dear all!
    I'm using USB-6009 device to adquire data from a physical channel. In the following vi, the number of samples to be adquired is set to 1000, with a 100Hz rate. Therefore, as I understand, the number of samples that should be read inside the while loop where DAQmx read is placed should be 10 for each iteration. However, I've tried to store this information in a TDMS file and I'm getting less number of samples as expected. I wouldn't like to lose any data.
    I've read overthere that the USB-6009 is a software-timed device, so, can this be the reason of this anomaly? Moreover, if I analyze the adquired samples using DIAdem software, I see some samples are being repeated. In this case, am I overwriting some data and reading past values?
    If I need to replace my data adquisition device with a hardware-timed one, which one should I get?
    Thank you very much in advance,
    Miren  
    Attachments:
    USB6009_TDMS.vi ‏25 KB

    When you run the sample clock in  "Continuous Samples" mode, the # of samples only determines the buffer size.  This is outlined in the help for that function.
    As a result, you have nothing pacing the internal loop: If there are samples available when it reaches the DAQmx Read, it passes out as many as are available in the buffer.  You might get 1, 2, 100; it depends on how long the other operations in the loop take.
    In general, DAQmx loops like this can be paced either by time or by # of samples.  Looks like you want sample pacing: wire the number of samples you want to collect to the "# of samples per channel" input of the DAQmx read.  Then the loop will wait at the daqmx read until that many samples are ready, and then it will proceed.
    -Barrett
    CLD

  • USB 6009 Signals Readings

    Hello,
    I'm using USB 6009 to read signals from PMT and other equipment for experiments and I have a couple of questions:
    1. Is it possible to read a signal with out DAQ assist? I've looked around the forums and haven't seen any relevant material.
    2. This is probably true, but I haven't checked it yet. Is it possible to read two signals in the same loop (eg, AI0 & AI2 in a while loop)?
    I'd appreciate if you'll point me to the right directions.
    Thank you,
    A
    P.S
    I should probably mention that I want to read the signals with out using DAQ assist because of the  assumption that DAQ assist  is slower than a direct measurement.
    Solved!
    Go to Solution.

    Hi Ravens Fan,
    Thank you for the answers and link. This is what I'm trying to do, and I've read the post on this link (the error code page): http://digital.ni.com/public.nsf/allkb/485201B647950BF886257537006CEB89 I think my error is mostly case #4 on the page (mostly because I dont use DAQ assist).
    But, I can't figure out how to terminate/clear channel to release the device for the next one. Any ideas?
    Thank you.
    Attachments:
    error.JPG ‏55 KB

  • USB-6009, mac OS 10.6.8 and python

    Hello!
    I am using USB-6009 under mac OS 10.6.8 and python.
    I am trying to run the following commmand:
    analogOutputTask = nidaqmx.AnalogOutputTask(name='MyAOTask')
    I get the following message
    File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/nidaqmx/libnidaqmx.py", line 180, in CALL
    AttributeError: 'NoneType' object has no attribute 'DAQmxCreateTask'
    Any help would be very mch appreciated,
    Thanks 
    j.

    Hello Jamyamdy, 
    Honestly, I am not too sure about this, but were you able to acquire data before or is this your first trial? 
    From the usb-6009 product page, it says the following. 
    For Mac OS X and Linux users, download the NI-DAQmx Base driver software and program the USB-6009 with NI LabVIEW or C.
     http://sine.ni.com/nips/cds/view/p/lang/en/nid/201987
    Regards,

  • USB-6009 analog input at certain voltage

    i am using USB 6009
    i want to use a certain voltage to activate something.
    i want to activate a pop up vi inside a case structure at a voltage of 2.9V.
    i want to de activate the case structure at a voltage of 0.13mV - 0.16mV . then the sub vi will close.
    How to setup the DAQMX?
    can provide any help ??
    example will be good.
    pls show where to find the icons. thank you

    Hi Ace,
    There are several examples from the LabVIEW Example Finder (Help»Find Examples...) that describe using limits. I searched "limits" in the Example Finder and found several examples that might help, such as Limit Testing Measurement.vi, Waveform Scalar Limit Comparison example.vi, and Limit Example.vi. In each, you would have to modify it to include data acquisition, but it shows how to take sampled data as you would get from data acquisition and perform a limit test. The Express VI that Jennifer O. suggested will probably be the easiest route, but there are other VIs that could suit your needs, as seen in the other examples. 
    As far as state machines, there is a template built into LabVIEW that can give you a starting point for creating your own state machine. Under the File»New... menu, you can choose the state machine template under VI»From Template»Frameworks»Design Patterns»Standard State Machine template.
    Please let us know if you have any specific questions we can answer about configuring your data acquisition or about a specific VI. I hope this helps!
    Regards,
    Missy S.
    Calibration Engineer
    National Instruments

  • Opening & closing a solenoid valve using ni usb-6009

    Hi,
    I am very new to labview so any help would be apprciated.
    I am using the ni usb-6009 as a power source for my solenoid valve. The valve is 12vdc but because the max output voltage for the ni usb-6009 is 5v i have designed and build an op-amp circuit which will amplify the voltage. I want to create a vi that will give a +5v digital output when a push button is pressed and 0v when the push button is off. What would be the most efficient way of doing this? Thank you.
    Solved!
    Go to Solution.

    How much current does the solenoid draw? You say that you are powering the solenoid from the USB-6009 so just converting the voltage from 5V to 12V will not work - there is a current limit of 8.5mA on the 6009 which will not be enough to power the solenoid. You will need to use an external supply that can provide sufficient current to drive the coils of the solenoid and then use a transistor circuit to switch on the supply from the digital output of the 6009 (which can't draw more than 8.5mA).
    Once you've got your circuit right, you can use MAX Test Panels, the Data Acquisition Express VIs or the DAQmx palette in LabVIEW to control the digital output. There are lots of examples in LabVIEW on how to do this
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • Relay for use with USB 6009

    Hello
    I would like to control a Red Hat solenoid valve with the USB 6009 (Very neat and economical multifunction DAQ!). The USB 6009 has some digital output lines specified as TTL. Can someone advise me as to a suitable relay for a 120V AC valve with a 6Watts power consumption?
    Thanks John Brohan

    John,
    Here is the simple solution to your problem. You can tie two or more ports together which to get higher current capacity.Make sure you use the 4.7k pull up resistor after tieing them together.Then output all the tied ports together as if it is one port. In your case if you need 20ma you can tie-up 3 ports for 24ma capacity.
    Warning!!!! You have to turn all the ports ON or OFF at one time otherwise it may burn the board.
    Kanwar

  • How to toggle LED at analog output from my VI Using NI USB 6009

    Greetings,
    I bought this NI USB 6009 Multifunction I/O and found various uses for it. In my VI, I am acquiring some signals using the DAQ assistant. After doing a couple manipulation I would like to toggle a LED at one of the two Analog outputs available. I tried configure it in Max and was able to toggle it there, but now I would like to have the VI do it once a certain value is attained. Can anyone  tell me how this is done as I think I might be doing something incorrect.
    Thanks
    Edward

    Greetings,
    Attached you will find just a simple code to turn on the LED if the indicator on the VI's front panel illuminates. In my original code it is something similar. I have also check the wiring and I don't think that's the problem since I was able to toggle it through Max. I am using LV 2009. When  the output channel was configured in Max, the output voltage was set to range from 0-5V. I am not sure if the DAQ  Assistant  analog output is being triggered properly.
    OK, Lets say that I wanted to turn on the LED if a number was greater than the one stored in memory. How would I pass that to the NI USB 6009 to turn on a External LED. Please assume that the output is wired properly.  
    Thanks
    Edward
    Attachments:
    LED Application.vi ‏43 KB

  • USB 6009 lock-ups?

    Hello,
    I'm having a strange problem with my newly aquired USB 6009. I've written an app to read the temperature from a temperature controller using the 6009 and that all works fine. However, the problem comes when I port this code into another application. The code is intended to run in a parallel loop to the main execution loop, to continuously read the temperature whilst other data is captured and process (all done in the main loop). Both applications run quite happily when separate. When I bring them together the applications sometimes, but not all the time, refuse to quit and just lock up. I have no idea what is happening as it is not a case of one loop remaining running (I've tried separate stop buttons) and they will run together quite happily. The problem only comes when I hit the button that terminates the main loop (this also triggers the other loop to stop - I'm sure this bit works as I've used the same method in another vi).
    The main loop should, in theory, just close. The loop with the USB reads (using DAQmx Base) will stop and then clear the task (DAQmx Base Clear I think). Sometimes the DAQmx Base Clear runs and the program stops fine, other times it runs and the program locks, other times it locks as soon as I hit the quit button.
    Any thoughts as I'm completely stumped on this one? Like I say, apart from the one button triggering both loops to terminate there is no link between the two loops.
    My only thought is it could be a USB issue as the PC also has a USB keyboard and mouse. I know from my home experience, when for instance plugging in my camera, it can cause the USB to lock if, say, my USB modem is running.

    See the thread
    http://forums.ni.com/ni/board/message?board.id=250&message.id=13722
    John Weeks
    WaveMetrics, Inc.
    Phone (503) 620-3001
    Fax (503) 620-6754
    www.wavemetrics.com

  • Usb 6009 digital input

    Dear All!!
    With the following vi. I'm trying to receive a 5V signal in a digital input, using a usb-6009 device.
    I would like to use the 5 VCC supply, available in pin 31 of the same device and send it to pin 17, representing line0 of port0. During execution, 'm physically connecting and disconnecting  these pins in order to see the difference in a led indicator. Unfortunatelly, the led is always on, even if both pins are disconnected.
    Could somebody help me? I would be very pleased.
    Thank you very much in advance,
    Miren
    Attachments:
    proof.vi ‏38 KB

    Hi Miren,
    "the led is always on, even if both pins are disconnected"
    RTFM?!
    They use open collector inputs with an internal pullup resistor of 4.7k, so you actively have to pull down the input to GND to see a difference...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • USB-6009 Sine Wave

    Hi,
    I am new to LabView and am having some trouble. I need to input two sine waves into a USB-6009. I have a voltmeter that should read the output. Two of the problems that I have had thus far: I can only use "On Demand" in DAQ Assistant and even when I throw the DAQ Assistant into a while loop I still do not get a readout on my voltmeter. Any suggestions? Thanks for the help.

    That is confusing. You say you need to input 2 sine waves into a 6009 and that to me implies that you are doing a DAQmx Read. Then you say you have a voltmeter to read the output. That implies you are doing a DAQmx Write. If you are really doing a write from the 6009, then on demand is, of course your only choice. As the specs clearly indicate, the output of the 6009 is strictly software timed so you would need to pass a sine wave point by point and then you would have very little control over the frequency. And, again as the specs clearly state, the fastest output rate you could expect is 150Samples/sec.

  • Usb 6009 acquisition fall after 15min

    Hello,
    Like it's said on the name of my post i have some problem with my new usb 6009. When i start it all work good but after a while my two AI fall to 0V. I put my code in joint pieces. I use AI0 and AI1 with a 220ohm resistance.
    Thank you
    Samuel Rioux
    Attachments:
    test.vi ‏30 KB

    Hi skling,
    DON'T use an additional Wait function when you have set your DAQmxRead to use a certain sample rate!
    It will wait on it's own and after some time you will miss to read samples in time...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Usb 6009 continuous analog output

    Hi
    I'm pretty new to Labview, so you may have to bear with me. I have a USB-6009 and I want to generate a continuos analog output voltage. I've got the example you have posted 'Gen Mult Volt Updates-SW Timed_LV7.1 (0 to 4).vi' working and it outputs a continuous sine wave.
    In a similar manner I need to generate:
    1. Ramp up voltage (and ramp down voltage): starting with a continuos constant voltage, which after a period of time linearly increases to another constant voltage, and which allows me to specify the 3 time intervals and the rate of increase.
    2. Pulsations: whereby I can specify the amplitude and time interval of each pulsation
    This is so that I can control voltage to a valve which regulates my pipe flow. In the example I have (one stated above), I do not understand specifically:
    i. Why I need both a 'Software Loop Time (ms)' as well as 'Timeout'
    ii. The 'Sinusoidal Pattern' input which seems to generate data for a sine wave- I can't get a description of that and there are no similar VIs for other waveforms; and what is the function of the two numbers it has?
    iv. How do I change amplitude and time period for the wave?
    iii. What does 'Index Array' do?
    thank you

    Hi there,
    I'm guessing the VI you are using is the one from this KB:
    http://digital.ni.com/public.nsf/allkb/6F2C2B49A89D685C8625711D007BDD64
    i. The software timed loop control is to control the rate at which you change the voltage output.  The timeout on the DAQmx Write VI is the maximum time in seconds the VI will wait to output a sample (eg. if the write buffer is full, the Write VI will wait for it to become available for 'timeout' seconds before outputting an error).
    ii. The sine pattern is just an array constant of doubles that make up the sine wave voltage values, and the for loop adds an offset (of two volts) to every single one of those values. You might want to replace that entire array constant and for loop with a Simulate Signal Express VI (just search for Simulate Sig or look in the Functions >> Input palette) and convert the dynamic data output to an array of doubles.  You can configure the type of waveform, amplitude, and time period from that express VI as well.
    iii.  Refer to previous answer.
    iv.  Index array returns an element of an array based on the index input.  You can turn on the context help and move your mouse over functions to get more help on them.
    I hope that helps!
    Way S.
    NI UK Applications Engineer

Maybe you are looking for

  • InfoSet problem with BI 7

    We have a query on an InfoSet in production system (BW 3.0B) that is working fine. The same query on the same InfoSet in development system (BI 7) is not displaying master data attribute values. It does show values only for navigational attributes. M

  • Error on install, CDROM not booting Kernel, unable to mount CDRM, what now?

    Please help. I am new to this, so as many options as possible would be a help. So far here are the steps I've taken to install Solaris 8 (Intel): 1. Checked HCL - I have two CD ROM's I've tried, both are on the list. (Mitsumi FX140S and Sony DVD DDU2

  • Error message in reports

    Hi Friends, How error message occured in ABAP Reports & solution for that ?

  • IMac mini displayport blank display on boot

    I work in a school and we use iMacs as classroom machines for teachers. The iMacs are plugged in to vga projectors and are setup to clone in Windows. This worked fine on all our iMacs with mini dvi ports. We've just bought two lots of new iMacs with

  • Receiving procedure for scrap against SC PO

    Hi, SC Po is prepared with BOM as usual with offgauge/scrap qty (-). In my scenario Scrap will be received afterwords and not with the output material. If I receive the material without BOM , and try to receive seperately against same PO , system giv