Example of DMA DAQmx LabVIEW

Hello

I use an a 6221, 2 DMA channels DAQ card.  I've never used DMA and can't seem to find much information on this subject or examples.  If anyone can direct me to some examples that would be great.  I want to acquire continuous samples at the maximum sampling frequency of map (250 kHz) for an indefinite period and then have access to them later for analysis and evaluation.

Thanks in advance,

Steve

Hey Steve,

The 6221 is multiplexed, so the specifications of 250 kHz is the aggregation rate that you can enjoy on all channels.  If you are sampling 2 channels at the same time, the maximum rate would be 125 kHz.

DAQmx will transfer data from the built-in memory to a buffer préallouée on your host PC while the acquisition takes place.  Default DAQmx uses DMA as the transfer mechanism for cards PCI-based of the M series as your 6221, but you don't really need to worry about this configuration (if you really wanted you have the option to change your mechanism of transfer of interruptions, but I wouldn't recommend doing so).  There are in fact 6 DMA channels on the (one for each subsystem buffer) 6221 - that is documented in the specifications page. If you have a link that says otherwise please share so NEITHER can correct the misinformation.

In short, I wouldn't worry too much about the exact mechanism that is used to transfer data to your host PC, the pilot takes care of that for you.  The way I read your post, looks like you want to save the data to disk and an analysis on this issue at a later date.  If you don't want to save to disk, I suggest to use the built-in functionality of recording TDMS like Dennis mentioned earlier.  Here is an example:

Streaming data and newspaper in a PDM file

Best regards

Tags: NI Hardware

Similar Questions

  • Problem DaqMx LabVIEW

    Hello:

    Installed Labview 2012 yesterday, daqmx was already installed (9,6) since I used it with Measurement Studio 2012.

    LabVIEW does not recognize DAQmx.

    I'm using Labview examples and get daq mx errors.

    Thank you.

    You must install DAQmx after LabVIEW. Since LabVIEW did not exist when you have done the installation DAQmx, LabVIEW required records would obviously not created.

  • Impossible to compile examples of NOR-DAQmx Base 3.4 installation of Red Hat

    By typing 'make' in/usr/local/natinst/nidaqmxbase/examples/I gives the following error: $ make gcc-I /... / include - O2 - lnidaqmxbase o acquireNScans/usr/bin/ld: /usr/local/lib/libnidaqmxbase.so incompatible to jump when you're looking for a lnidaqmxbase - / usr/bin/ld: cannot find lnidaqmxbase - collect2: ld returned 1 exit status is: * [acquireNScans] error 1 it seems that libraries are not compatible with my version of Red Hat/gcc. Are pre-built libraries are built during installation? Don

    In case anyone else has this problem, I managed to solve it by (1) adding - m32 for INDICATORS in the Makefile and (2) by following these instructions:

    «During the generation of the examples, the linker can point out that liblvrtdark.so»
    unresolved symbols in the Standard C++ library.  It is a known issue as the
    NOR-DAQmx Base 3.4 on Red Hat Enterprise Linux WS 4.  For good link and run
    examples, make the following changes to the Makefile.

    Add /usr/local/lib/LabVIEW-2010/patchlib/libstdc++.so.6 to nilibs.
    Add - Wl, - rpath, ' / usr/local/lib/LabVIEW-2010/patchlib "for flags. "since the README file:

    http://FTP.NI.com/support/softlib/multifunction_daq/nidaqmxbase/3.4/Linux/Readme.txt

    Don

  • DAQmx LabVIEW 7.0 Wizard problem

    Hello, I tried to search for this problem a few times, but I couldn't find a thread that matches my problem. I only started using LabVIEW yesterday so please forgive my inexperience if I do obvious errors. The problem I have is this:

    I have two computers, two LabVIEW 7.0 running on Windows 7, with a card OR-DAQmx (PCI 6221, driver version 9.3) and the other without. Without the card has MAX version 3.0.2 and the other has the latest version (4.8). So far I followed the tutorials in the 'Help' files called "Getting started with LabVIEW", using the machine without the DAQ card. In the fourth chapter he speaks of an Express VI entitled 'DAQ Assistant' which is in the range of I/O functions window. When I try to enter a block diagram VI, rather than open the wizard, it hangs on loading splash. This, I expected when the machine is not material.

    Then, I started the other machine, who owns the card installed. I opened MAX, do you have the self-test, checked the test panels and made automatic calibration. all reported ok. When I open LabVIEW, however, all functions related to hardware DAQ is missing from the palette. I tried rolling back the drivers version 7.1 and MAX to 3.0.2 in the hope that reproduce the condition on the other machine would fix it, but no luck there now I'm at square one without knowing what to do. I really need to be able to use this card with LabVIEW for my project, any help would be greatly appreciated.

    OK guys, I have now Windows XP running in a virtual machine on the computer with the installed data acquisition card. Outside the Virtual Box, I still have driver MAX 4.8 and 9.3 versions and map is available on the tree of devices to the MAX, as before. Within the VB I use LabVIEW version 7.0 and DAQmx version 8.1 (MAX 4.0.3.3003) drivers as suggested, but the map is not appear in the device tree, even if I tried refreshing several times. To create news... window has no option for a card PCI-6221, only for PXI and SCXI hardware. Clues?

  • PB all DLLs with in VS 2003 DAQmx labview

    Hello everyone.

    I've created a dll using the DAQmx tasks in Labview. I call it in Visual Studio C++ 2003. There are two heads, this one and the one of NIDAQmx.h. In the race, I have Visual C++ Runtime error. Can someone explain to me what is happening to have a solution?

    THX

    OK, I solved the situation, but I can't explain what happened. It was a mistake to R6030 CRT. I rebuild the dll and everything was ok.

  • Can I use ' I read a Scan VI "daq and driver DAQmx Labview 7.1 with a new card?

    I need to use old software in which the data is to use ' I read a Scan VI.

    I think that with labview 7.1.

    now, I work with Labview 8.5 and the new daq card that I want to use comes with NOR-DAQmx.

    is there a compatibility problem between these two.

    Please clear my doubts.

    Thanks in advance

    Renn

    It is used with 8.5 cards and as long as you install the driver traditional. It should be on your LabVIEW CD or download it from here. New cards require DAQmx and you need to rewrite your code.

  • Example of encoder DAQmx can read in degrees, want impulses

    Hello:
    I'm new to DAQmx and I use a LV8.0 example to read a single quadrature encoder pulse ending and it is reading fine degrees, how to set the vi to measure the steps of the motor?

    Thank you

    Hi, I think you can just use the mode "County edges' with the direction" externeal controlled. "

    Kind regards

    Tobias

  • VI (s) DAQmx Labview 2012

    Hello! I have a program (under labview 2012) but I change computer and the new computer can´t labview find vi (s) of DAQmx (create channels ect...) how I can install this vi? I installed labview core, 9.7 DAQmx 2012 costume. (in my old computer, I installed labview 2010)

    Thank you

    I installed DAQmx 9.8 and the problem was solved

  • How to create a task DAQmx LabVIEW?

    I want to create a new task DAQmx in LV I used "create new task" VI in Bt NV. I want to see the task created in the list of tasks MAX also.

    There is no connected device. Its just simulation.

    Use the task to save DAQMx.

    http://search.NI.com/nisearch/app/main/p/bot/no/AP/global/lang/en/PG/1/q/DAQMx%20Save%20Task/

  • Stand-alone application with LabView 7.0 get error cannot find DAQmx clear task.vi

    I tried to create a stand alone vi with the Build Application or shared Library (dll) in LabVeiw 7.0

    When I put it on another PC to test it I get the error "cannot find DAQmx clear task.vi.

    the other PC also has 7.0 and 8.1 DAQmx Labview.

    I think my problem is in the source tab, where you are supposed to add dynamic vi and support, I have search the forums and database of nor and have not found a solution.

    Hi LabTech09,

    When you run the executable file on the other computer, that's when you get this error?  You have the same exact versions of DAQmx and LabVIEW on both computers?  Is the dialog box allow you to navigate to the clear task.vi DAQmx?  If so, you can find these screws in C:\Program NIUninstaller Instruments\LabVIEW 7.0\vi.lib\DAQmx\configure\task.llb.  The executable runs on the development computer (the machine, it was compiled on)?

  • I don't have a Vi DAQmx in LabVIEW

    Hi all

    I recently downloaded Labview 8.5 on my computer (free student version). I also installed the Driver nor-DAQmx hardware to the computer and the acquisition card (BNC-2120).

    Everything works fine. Only, I would use DAQmx Labview Vis and I can't find them.

    Is there a reason? How can I find/download them?

    Thanks for your help.

    Alexandra

    Do you have what DAQmx version installed?  It seems that the latest DAQmx version that will work with LabVIEW 8.5 is DAQmx 9.3.  If you have installed something more recent, it will not work with LabVIEW 8.5.

    DAQmx and LabVIEW version compatibility

  • Can not download VB6.0 DAQmx examples

    I'm trying to find the VB examples to use DAQmx.

    I know, there is an entry in the knowledge base explaining that it does not automatically download, and you will need to assign to download manually, but I did, and even if the installer says that it is installed, I can't find the directory.

    Any simpler source for VB examples - I'm doing something really simple (just read an analog voltage).

    Thank you!

    The following link describes where to find the help file as well as where the samples are installed:

    http://digital.NI.com/public.nsf/allkb/B22FE2B0F9C8935286256E920073DA07

    And more documentation on where to find some examples:

    http://digital.NI.com/public.nsf/allkb/735848148B5B4964862571F5004692C7?OpenDocument

    I hope this helps!

  • How can I set a channel IEPE DAQmx and the other not?

    Hi, guys!  I am a first year student in labview. I meet a problem and need your help.

    In my DAQmx data acquisition system, I must acquire the data of two channels at the same time. And a channel IEPE, another does not need. You can open the example in the following location: C:\Program NIUninstaller Instruments\LabVIEW 2014\vi.lib\addons\Sound and Vibration\Example Support\DAQ\DAQmx\Frequency Analysis\Dual channel Analysis\Baseband FRF (DAQmx AI and AO) .vi. In the example, you must configure both of them to stage IEPE or not. There is no more information that I can find. And I have no idea to solve this problem.

    Thanks in advance
    concerning

    What you have tried after the update.

    -You can list down all channels using the as shown in http://digital.ni.com/public.nsf/allkb/CC501982F91AFA548625735D00547AC2

    -You may find the information and links in this forum: http://forums.ni.com/t5/LabVIEW/Setting-up-IEPE-settings-DAQ-MX-task-for-multiple-channels/td-p/1728...

  • Problem in ANSI C for example - error TDMS-ContAcq-IntClk 200877

    Hello

    I tried the examples in the 'ANSI C examples' folder and ran into a snag with the example in:

    "" \DAQmx ANSI C\Analog In\Measure Voltage\Acq TDMS-Cont-Int Clk".

    When I run it as it is, I get the following error:

    DAQmx error: requested each interval of N samples event is not supported for the given the mechanism of transfer of data and the buffer size. To keep the DMA or USB in bulk as the data transfer mechanism, change the size of the buffer or the interval of event Every N samples so the size of the buffer is a multipleof even interval event Every N samples. To keep the same each event interval of N samples and the size of the buffer, modify the mechanism for transfer of data interruptions if taken in charge. Property: DAQmx_Every N samples CQI event IntervalRequested value buffer: size 1000Buffer: 12288Task name: _unnamedTask<0>State :-200877End of the program Code, press the Enter key to exit

    As I was typing this, I did a quick test. I tried to comment this line in the code:

    / / * / / PDM DAQmx Configure Code / * / DAQmxErrChk (DAQmxConfigureLogging(taskHandle,"C:\\example.tdms",DAQmx_Val_LogAndRead,"GroupName",DAQmx_Val_OpenOrCreate));)

    and it worked, as I suspected.

    My gut feeling is that the DAQmxConfigureLogging function expects a block of 12 288 bytes, and in the rest of the code, the number of samples is set to 1000, with a sampling frequency of 10000.

    In any case, I fixed it by changing from 1000 to 1024 (1024 because * 12 = 12288) anywhere in the code, so solve the original problem.

    I don't have a few new questions now:

    1. is this an error in the example, or am I missing something?

    2. How do you change the default size 12288 DAQmxConfigureLogging() waiting for let say 5000?

    Thank you.

    Hall

    Hey Bob,

    In fact, it is a bug with this example.  It comes with the value 1000 for the wrong sampling interval since it is an example of logging.  When logging is enabled on a task, default buffer sizes are slightly different from the default values without connecting.  This is because the default buffer sizes are powers of 10, while hard drives prefer to powers of 2.  It is a maneuver of performance as we listen to disc directly from the buffer DAQmx.

    I think you should be able to use 1024 as your sampling instead of 1000 interval in this example.  In this example, the default value will change so that it is not immediately error (Corrective Action Request #177199).

  • DAQmx Trigger: Error 2200077

    Hello

    I am trying to create a program to trigger a hammer signal, using a USB-6211 card and 4 analog inputs (via 1 DAQmx create channel HAVE voltage to the hammer and 3 others at the exit of the accelerometer). Having as a basis for some examples of LabView as "Acq Cont & voltage chart ' and 'Impact Test (DAQmx) [.vi SVXMPL_Impact Test (DAQmx)]', I built my program, but it does not work.

    If I don't put the relaxation and the task to start, my programme without any problem (in this case I use 4 DAQmx create channel HAVE tension, a DAQ Timing, linked to the DAQmx Read located on the loop). But when I add the trigger (start analog Edge) out of the loop, so that between the time the DAQmx Read, error-200077 apears and DAQmx. This same error apears too when I try to run the sample of "Cont Acq & voltage graph" (even if I change the sample rate and the number of samples, the error is still the same). The error-200431 apears when I try to launch the second example ("Impact Test (DAQmx) [SVXMPL_Impact Test (DAQmx) .vi]), but in this case probably the DAQ card is not suitable to run this program.

    When I add a task to start before the loop (where is located the DAQmx Read function) on my program without the shutter button, the error-200278 appears. And if I add the trigger and Start Task, just the apperas-200077 error function. However, the startup task is not bothering me as much as the trigger, because when I do not use the trigger on the example "Acq Cont & chart tension" and the task of beginning is always there, this program runs normally. In this case the problem is probably on my prgram and not on my data acquisition card.

    I just want to know if my card cannot run this trigger function (early analog Edge) or if there is something else, because it's strange how a relatively simple example can be run using my data acquisition card.

    Thank you

    Hi, FCB,.

    The USB-6211 can only be released digitally.

    The attached document allows you to see the specifications of your card:

    http://sine.NI.com/NIPs/CDs/view/p/lang/en/NID/203224

Maybe you are looking for