OR USB-6009: Examples NIDAQmxBase hang in Ubuntu 10.04.1

Hello!

I installed NIDAQmxBase in Ubuntu 10.04.1 Server according to the various instructions in this forum. After a lot of trial and error, I managed to get the NI USB 6009 recognized in lsdaq.

--------------------------------
Detecting National Instruments DAQ Devices
Found the following DAQ Devices:
NI USB-6009: "Dev1"    (USB0::0x3923::0x717B::01586A5A::RAW)
--------------------------------

However the examples hang.

These are my core modules:

arc4                    1153  2
bitblit                 4707  1 fbcon
cfg80211              126528  2 rt2x00lib,mac80211
crc_ccitt               1339  1 rt2800usb
fbcon                  35102  71
font                    7557  1 fbcon
i2c_isch                3375  0
led_class               2864  2 rt2x00lib,sdhci
lp                      7028  0
mac80211              205402  2 rt2x00usb,rt2x00lib
mii                     4381  1 r8169
Module                  Size  Used by
nidimk                322759  2 nipxirmk
nikal                  57594  1 nipalk
niorbk                 95647  2 nipxirmk,nidimk
nipalk               1220783  6 NiViPciK,nipxirmk,nidimk,niorbk
nipxirmk              115018  1
NiViPciK               79087  0
output                  1871  1 video
parport                32635  1 lp
pata_sch                1963  0
psmouse                63245  0
r8169                  34364  0
rt2800usb              31531  0
rt2870sta             461971  0
rt2x00lib              27541  2 rt2800usb,rt2x00usb
rt2x00usb               9703  1 rt2800usb
sdhci                  15654  1 sdhci_pci
sdhci_pci               5502  0
serio_raw               3978  0
snd                    54180  6 snd_hda_codec_idt,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
snd_hda_codec          74201  2 snd_hda_codec_idt,snd_hda_intel
snd_hda_codec_idt      51978  0
snd_hda_intel          22101  0
snd_hwdep               5412  1 snd_hda_codec
snd_page_alloc          7172  2 snd_hda_intel,snd_pcm
snd_pcm                70918  2 snd_hda_intel,snd_hda_codec
snd_timer              19098  1 snd_pcm
softcursor              1189  1 bitblit
soundcore               6620  1 snd
tileblit                2031  1 fbcon
usb_storage            39585  2
vga16fb                11385  1
vgastate                8961  1 vga16fb
video                  17375  0

What are the processes running (for clarity I have included only processes whose name starts with or):

1222 pts/0    00:00:00 nipalps
 1234 ?        00:00:00 niLxiDiscovery
 1242 ?        00:00:00 nimdnsResponder
 1248 ?        00:00:00 nipalsm

These are neither installed packages:

ii  nidaqmxbase-board-support       3.4.0-1                         NI-DAQmx Base Hardware Support
ii  nidaqmxbase-cinterface          3.4.0-1                         NI-DAQmx Base API (C version)
ii  nidaqmxbase-common              3.4.0-1                         NI-DAQmx Base Common Configuration Utilities
ii  nidaqmxbase-labview2009-vis     3.4.0-1                         NI-DAQmx Base API (LabVIEW 2009 version)
ii  nidaqmxbase-labview2010-vis     3.4.0-1                         NI-DAQmx Base API (LabVIEW 2010 version)
ii  nidaqmxbase-labview85-vis       3.4.0-1                         NI-DAQmx Base API (LabVIEW 8.5 version)
ii  nidaqmxbase-labview86-vis       3.4.0-1                         NI-DAQmx Base API (LabVIEW 8.6 version)
ii  nidaqmxbase-usb-support         3.4.0-1                         NI-DAQmx Base USB Device Support
ii  nidimi                          1.10.0-f0                       NI-DIM
ii  nimdnsresponder                 1.1.0-f3                        National Instruments mDNS Responder Service
ii  niorbi                          1.9.3-f0                        NI-ORB
ii  nipxirmi                        1.6.0-f0                        NI-PXI Platform Services
ii  nirpci                          4.2.0-f0                        NI-RPC user library
un  nis                                                      (keine Beschreibung vorhanden)
ii  nivisa                          5.0.0-f0                        NI-VISA Runtime Engine -- Abtraction layer for access to NI-488, PCI/PXI, USB,
ii  nivisak                         5.0.0-f0                        NI-VISA Runtime Engine Kernel Support

These are dependencies of the sample program:

linux-gate.so.1 =>  (0xb78df000)
    libnidaqmxbase.so.3 => /usr/local/lib/libnidaqmxbase.so.3 (0xb78d2000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb78b3000)
    libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7758000)
    libnidaqmxbaselv.so => /usr/local/lib/libnidaqmxbaselv.so (0xb774e000)
    /lib/ld-linux.so.2 (0xb78e0000)
    liblvrtdark.so.10.0 => /usr/local/lib/liblvrtdark.so.10.0 (0xb6529000)
    libstdc++.so.6 => /usr/local/lib/LabVIEW-2010/patchlib/libstdc++.so.6 (0xb6447000)
    libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb6421000)
    libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb641d000)
    libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb6404000)

I would appreciate your help to find out what makes the examples hang.

Because of the size limitations post I'll post my gbd debug session in the next post.

Martin Jukel

Martin Jukel wrote:

That is why it seems to me that there is a problem starting, because with acquireNScans the elapsed real time 9,671 s longer then that time consumed user is only 0.904 s longer.

Yes and there is a work around. Please see my post in another thread:

libnipalu.so, failed to initialize

http://forums.NI.com/T5/Multifunction-DAQ/libnipalu-so-failed-to-initialize/m-p/1282246#M60196

Tags: NI Hardware

Similar Questions

  • Oscilloscope for the acquisition of data from the usb-6009 or - example of temporal division for 5 seconds, 10 seconds

    Hey Hey everyone

    I was looking for an example for two-channel oscilloscope virtual using e/s all-in-one of the 14 bits of NI DAQ USB 6009. I tried to research for example BOF time division or s/div for 1 second, 5 seconds, 10 seconds.  but was shocked to find that there is no reference for it. The range of oscilloscoper virtual

    Minimum - 10 micro s / div maximum -10milli second div but there is no example for 1 second / div or 5 seconds / div...  If anyone can guide me. I'm new to labview environment.

    This is the oscilloscope two sample obtained from google search. is there material limitations. ?

    I'm working on continuous 4-channel data acquisition data acquisition using niusb 6009

    The sampling frequency is sufficient for any desired s/div. The sample rate is 12 ksamples / s per channel, so if that meets the Nyquist criteria for the input signal, you can capture it. The number of samples has no effect on that with the exception of the amount of the signal you acquire. Your chart is not stable, if you do not trigger the acquisition. Even as real significance, therefore your emulation seems actually successful.

  • PID control using USB-6009, need of simple video or example vi

    I have a new usb-6009 and have tried all the videos on the NC

    Web site for practice. However with the version 8.6.1 I can't use

    the pid simple vi which is used on the video. (its too old 5 x v)

    I just need a PID simple vi to 8.6.1.so that day, I saw many complexes of vi

    for the demo of pid... I'm creating control tools... too to choose...

    any help looking for a simple vi or video? - as the demo shown

    the NI USB-6009 Web site...

    Concerning

    JJ

    Well, I did a simple proportional control for box usb-6009

    with a time inside the while loop... don't know if it's the

    Gourmet addresses... my sub PID vi is very simple...

    But it shows how to use labview and usb-6009 for case

    a loop very simple return PID...

    Concerning

    J

  • Output analog, the USB-6009 case - can I use DAQmxWriteAnalogScalarF64?

    I just got a NI USB-6009 and I try to use the outputs analog simple.

    I'm running on a Mac, so I'll try to use the API OR-DAQmx Base 3.2 C (downloaded from here: http://joule.ni.com/nidu/cds/view/p/id/1078/lang/en).  This is the most recent version of NOR-DAQmxBase, I could find.

    I try to do continuous analog output on the 6009, which does not have a built-in clock.   I was hoping to do the sync software and just new output values when I want to.

    I can't get an output of database to work.  Other messages and the example of Windows files, (e.g., National Instruments/NOR-DAQmx Base/examples/ao/MultVoltUpates-SWTimed.c) it seems that the best thing to do would be to use the DAQmxWriteAnalogScalarF64 function.

    However, this is not in the Mac version of the C API of NIDAQmxBase.  There is actually an entry for this in the NIDAQmxBase.h file, but it is commented out.  Anyone know why?  Is it possible to use this function for the analog output on request on Mac?

    Thank you.

    Clement

    I have NEITHER-DAQmx Base installed 3.2 on a 10.4.11 system.  One of the examples files 'genVoltage.c' calls DAQmxBaseWriteAnalogF64.  I was able to compile and run this example with a USB-6009.

    The DAQmxBaseWriteAnalogF64 function would work for you?

    My guess is that, since you can write a scalar value with DAQmxBaseWriteAnalogF64, DAQmxBaseWriteAnalogScalarF64 becomes superfluous.  The example provided with the installation shows how to write a unique value (i.e. scalar.).  I pasted the code of OR below.

    int main (int argc, char * argv [])

    {

    Task settings

    Int32 error = 0;

    TaskHandle taskHandle = 0;

    char errBuff [2048] = {'\0'};

    Channel settings

    Char [] = "Dev1/ao0" chan

    float64 min = 0.0;

    float64 max = 5.0;

    Sync settings

    uInt64 samplesPerChan = 1;

    Writing data parameters

    float64 data = 3.25;

    pointsWritten of Int32;

    float64 timeout = 10.0;

    DAQmxErrChk (DAQmxBaseCreateTask("",&taskHandle));

    DAQmxErrChk (DAQmxBaseCreateAOVoltageChan(taskHandle,chan,"",min,max,DAQmx_Val_Volts,));

    DAQmxErrChk (DAQmxBaseStartTask (taskHandle));

    DAQmxErrChk (DAQmxBaseWriteAnalogF64(taskHandle,samplesPerChan,0,timeout,DAQmx_Val_GroupByChannel,&data,&pointsWritten,));

    Error:

    If (DAQmxFailed (error))

    DAQmxBaseGetExtendedErrorInfo (errBuff, 2048);

    If (taskHandle! = 0) {}

    DAQmxBaseStopTask (taskHandle);

    DAQmxBaseClearTask (taskHandle);

    }

    If (DAQmxFailed (error))

    printf ("error in DAQmxBase: %s\n",errBuff); ")

    return 0;

    }

    Hope this helps!

  • measurement of current with usb-6009

    Hi, my name is hung and I am a student in electrical engineering... I'm doing a thesis that the project using Labview and acquisition of data NOR UBS-6009 to simulate the function generator, Oscilloscope, Digital Microsoft (DMM)... and now I'm simulating DMM. I managed to measure the voltage and resistance which i use voltage divider method, but I encountered a problem with the current measurement. The problem is the USB-6009 to measure use the current, it measures an incorrect value. I tried to use the current CQI 0-20mA Sample.vi example but it always measures an incorrect value. If NI USB-6009 supports for the measuring current? Is there a way to measure the currents using USB-6009? Please, help me. This thesis project is so important for me. Thank you.

    Hung,

    Since you are a student in electrical engineering, I'll show you how to know the answers to your questions.

    1. review the specifications for the USB-6009 case.  In particular look at the specifications of analog input.

    2. How would you measure current if you had only a voltmeter?  Use the same method with the USB-6009 case.  (Tip: apply the Ohm's law).

    General comment: when using any measuring instrument, always consider maximum permitted values at the entrances so that the instrument is not damaged

    and the measure is accurate.

    Let us know how you do.

    Lynn

  • USB-6009 trigger reference by loops

    Hello

    I am a student studying for a Beng. As my final project, I want to create a default for electric motors recorder. The basic principle is that he sits and waits for a signal to trigger, how she recorded the analog waves of voltage and current for a pre-defined term before the trip.

    I chose the USB-6009 case like the acquisition of data, mainly based on prices. At the time I did not realize the importance of relaxation before (reference trigger) who works the 6009 did not support.

    I'm sure there must be a way to use the memory of the computer to create a buffer using a continuous loop that maintains a drop-off PDM rewriting, however I am really struggling to implement this code.

    I know that the ideal solution would be to use a device better suited, but having already bought the device and he said in my project specifications is not possible.

    If someone is able to offer all the tips of a possible implementation of this solution and a possible example of a similar program, I would be eternally grateful!

    1. make acquisition continues. Keep the data in a circular buffer large enough to store the amount of data pre triggers you want and all the data after release, which can be acquired before treatment is completed.

    2. when the trigger signal occurs, pull data from before release for stroage or store a marker that follows where the trigger before data starts.

    3. once the data post-triggers are acquired, write all relevant data in the file.  Unless you have blocks of data very long before or after triggering, PDM won't be necessary.  The USB-6009 case is slow enough so that you can keep a few minutes of in-memory data before running in memory management problems.  This should be much more that what you need for a motor fault recorder.

    Consider using a motor of Action (search for the nugget of Ben on the subject) for the buffer.

    Lynn

  • Recommend components for the plant of thumbnails that will be automated using NI USB-6009

    I build a treatment for a University project and I'm looking for a few recommendations of components that work well with the NI USB-6009 case. Because of what is a project of the University, my budget is $ 100 and I need the following:

    a float switch or something similar

    a solenoid valve two-way or three-way

    a pump

    a pH sensor

    a temperature sensor

    a camera

    I understand that I may not have a sufficient budget for all these components, but all product recommendations would be appreciated.

    Hello

    I recommend using the following tool to see examples of projects other users worked on in order to determine the appropriate components: http://www.ni.com/examples/

    I hope this helps!

  • BSOD when base closing program NI DAQ USB-6009

    So, as the title suggests, I get the BSOD error code: MULTIPLE_IRP_COMPLETE_REQUESTS when I close the basic example of the analog input for NI USB-6009. Someone at - he lived this before? My specs are:

    -LV version 15.0 32 bits (developing 64-bit installation to solve a problem without a report, do not know if this will help here as well)

    -Win7 Ultimate x 64 (SP1)

    -Alienware M17x R3

    -Core i7-2860QM

    -12 GB OF DDR3 RAM

    Any ideas on what could be the cause?

    Does happen with particular vi or exe or anyone, including max and daq assistant? If it was built on this machine? Try to force recompile all (Ctrl + Shift + click the button run.

    I can hardly imagine what can be encoded in simple artificial intelligence causes of BSOD. I'd say it's machine problem. Something is not installed correctly. Is - this change help USB? Card mother does a USB 2.0?

  • Digital and analog inputs simultaneously - NI USB-6009 and NI USB-6212 - ANSI C

    Hello

    I'm reading at all times and at the same time analog and digital inputs. Digital and analog samples must be sampled at the same clock and acquisition should be started (triggered?) at the same time (I don't want, after some time, analog reception more digital samples - the opposite is also true).

    I found an example (in C source code) "National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Synchronization\Multi-Function\ContAI-Read dig Chan" and tried to run with two USB cards: NI USB-6009 and NI USB-6212. Unfortunately, the two results by mistake, as described below:

    DAQmx error: the requested value is not supported for this property value.
    Property: DAQmx_SampTimingType
    You asked: DAQmx_Val_SampClk
    You can select: DAQmx_Val_OnDemand

    Task name: _unnamedTask<1>

    State code:-200077
    End of the program, press the Enter key to exit

    -Is it possible sync analog and digital acquisition in the paintings?

    -If so, how?

    Thank you

    Hello tcbusatta,

    Two of these modules, USB = 6008 and USB-6212, support only timed software inputs and digital outputs.  This means that you cannot define material timing (like finished sampling or continuous) for these modules.  Digital lines can be retrieved or written once to each call DAQmx read.

    This means that you will not be able to get any type of synchronization tight between the analogue and digital channels.  You will need a Board such as the NI USB-6341 in order to synchronize the AI and DI closely.

  • Why is the selection of the mode disabled in max for NIDAQ-USB-6009?

    I try to use NOR-USB-6009 AO to generate the sinusoidal signal.

    (1) I want to use MAX, but the selection of the mode and frequency are all disabled in the "Analog output" section

    (2) I find a VB example to generate the sine wave, but I received an error message.

    I want to know if the OR-6009 function support limited or not...?

    The attachment includes the screenshot.

    Thank you very much!

    Kevin

    Kevin,

    Yes. Timed software means that the appliance has no internal clock or the buffer. You call the AO write with data point. Then you call AO write later with another data point. Repeat until cooked. This means that the maximum rate of update of the AO is approximately 100 hertz or a little faster. It also means that there is a lot of jitter of synchronization due to latencies of the OS at speeds like that.

    Think about AO on the USB-6009 case as a parameter Variant sometimes of continuous tension for your system.

    Lynn

  • Can I synchronize and AI on USB-6009 with meter?

    Hi all

    I use USB-6009, LV 8.5 under windows XP. I want to generate signals synchronized with Amnesty International. I know that I can not use the sample as DO clock clock. But can I use the card counter to synchronize and AI? And can someone give some similar examples? Thank you!

    Best wishes

    Bo

    The unit will display whenever you call writing DAQmx. It is more complicated than that. And synchronization is practically based on the flow of data and when you want to generate the digital output from the analog input.

  • Time output USB-6009

    Hello guys,.

    I am trying to create a simple VI to generate two outputs analog square with USB-6009. Each output supplies a LED and it is necessary that single LED shines at the time - so when Out0 is active, Out1 is zero and the other way around.

    To get started, I created a VI in which the goods are made manually by Boolean and it works fine (square v1.vi of signal).

    But I need the output to switch automatically after the amount of time given (I needn't of high frequencies, at about 1 Hz). To do this, I changed "square wave v1.vi" in "square wave v2.vi" and set the Structures of the case in an another While loop which would be timed by the wait function (ms). The idea was that the loop internal would turn the output rate of frequency while the outer loop would ensure a continued implementation of the programme. But the reality is very different and my low level of competence (this is my first VI) let me down. Could you please help me out of this? I appreciate all the advice.

    To summarize: The VI must be continuously running program that generates two dependent signals with adjustable amplitude and opposite phases (Out0, when active, Out1 is zero and vice versa.). Signals must be switched automatically to the given frequency.

    Here's a simple flip-flop - while time the loop runs, the Boolean line connected to the digital output passes from true to False to True... with the schedule determined by the time you put in waiting for him (note that you can have regardless of the different times for the true = on and False = off case).  Of course, the life of signal (represented by 'Digital output') 'inside' this loop - you have to put the 1 point 1Line DAQmx VI write digital Boolean inside the loop, or find a way (for example, a queue) to get the data between the inside and outside.

  • How to synchronize clocks on USB-6009 and USB-6343

    Hello

    Can anyone provide an example on how to synchronize clocks on USB-6009 and USB 6343?

    I checked the example screws, but it shows that we must use 2 counters, one as the clock of the source and the other as a trigger. But only 1 CLK 6009.

    I read the user manual and it is mentioned to use (AI/start-trigger) in order to use PFI0 as source.i am somehow confused about how to achieve this.

    Furthermore, what would be the physical connections?

    Thank you

    LV_Enthu

    Unfortunately, you won't be able to completely synchronize your devices USB-6009 and USB-6343.  As you have seen, the 6009 has only a meter on board.

    You can certainly use PFI0 as an input to start your tasks at the same time digital release.  However, the 6009 is a strictly timed by the software.  There is no way to import an external sample clock.

  • About precision of analog input of acquisition of data USB-6009

    Hello

    I have a problem where I'm reading a temperature signal (10mV / ° c) using the USB-6009 case, but a problem of accuracy of the input signal of the DAQ hardware.  The temperature at room temperature reads at a constant 230mV (23degC) using a multimeter device, but with the DAQ hardware, I see the signal bouncing around to 25mV, + effects greatly my work.

    I was hoping someone might have a solution to this as my brief search forums nothing have mounted.  Is there a way to average this broad band to the extent of the input signal or from resovle anyway?

    Hi mdzz,

    What development environment do you use?

    Here is an example of LabVIEW that should do what you need.

  • Acquiring bipolar signals NI DAQ USB 6009

    Hello

    The NI DAQ USB 6009 case is capable of acquiring biploar waveform?  I have a signal generator that provides a 0.5V wave triangular amplitude in the NI DAQ USB 6009.  The NOR-DAQ is connected to LABView and acquire signals using the LabVIEW express vi. The waveform that appears is unipolar.  Terminal configuration is set to differential. Is the waveform which is seen. Thank you. Mary

    Hi Tupaj,

    See a voltage floating as this can sometimes be the result of a measure badly grounded.  It would be useful, like Dennis, to know how you have this wired up.  Please take a look at this guide to make sure that the device is properly connected to Earth:

    Field wiring and analog noise - http://www.ni.com/white-paper/3344/en

    In addition, information about the configuration of your software are also important.  Here's an example of how implementing a fundamental mission of analog input for your 6009:

    Video installation instructions - http://www.ni.com/swf/devzone/ai/

    The example Finder has also several screws that already do it for you.  If you work in 2012 before LabVIEW, look for Acq Cont & chart voltage-Int of the Clk.vi in the Finder of the example.  LabVIEW 2012 will have a similar named VI voltage - Software-Timed Input.vi.

    Kind regards

Maybe you are looking for

  • Black Mirror 2 game

    When text the game Black Mirror 2 or 3 be my screen is black and I hear the soundtrack or image blocks and freezes I can assure you that my computer equipment is adequate and can host several games I have checked the content and everything seems OK.

  • Become inaccessible for a short period of shared folder

    Hi all We have a program that monitors a folder for the files in this folder. We can get the files properly, the part works well, except that we will have maybe once a day, the windows error that the files are not accessible. It temporarily loses the

  • RE6500 impossible to update firmware

    Hi all I scanned this forum but could not find anything related to my question. I took a glance at my years around 2 old RE6500 and it seems to work on the old firmware v1.01.01. FTR, Extender has been setup and works somewhat OK for awhile now. I ha

  • Video recording VHS on DVD

    I purchest a new Dell Studio computer Vista last week and I would like to put my video I have on cassettes VHS on DVD, what do I need and how do I connect it?

  • HP Support Assistant for winvista

    Hello, I have WinVista Premium 32bits h, my PC is HP Pavilion a6255.it desktop, somebody I can ' give the address to download HP Support Assistant? Thank you