DAQ_Clear for DAQmx


I'm working on the conversion of DAQ DAQmx. As we know that daq_clear can be worn in DAQmxStopTask/DAQmxClearTask in DAQmx. But the question is, is it possible to stop the task all loaded both in DAQmx?

Code of DAQ_Clear. It stops at all the activities at the same time. So I used this function whenever I would expect that a mistake could be coming. But in DAQmx, I should call the names of each individual task and write very long as codes:

DAQmxStopTask (Task1);

DAQmxStopTask (Task2);

DAQmxStopTask (Task3);

DAQmxStopTask (Task4);

DAQmxStopTask (Task5);


DAQmxStopTask (Taskn);

DAQmxClearTask (Task1);

DAQmxClearTask (Task2);

DAQmxClearTask (Task3);

DAQmxClearTask (Task4);

DAQmxClearTask (Task5);


DAQmxClearTask (Taskn);

This isn't an effective way to stop/clear tasks.

Is there a function to load all tasks activated or possible in the code and stop/clear pads them both?

Kind regards


In addition to the response of Charles, please also note that DAQmxResetDevice() stop tasks that are running on the specified device, but it won't deallocate the memory used by these tasks. With the API DAQmx ANSI C, applications are loaded to call DAQmxClearTask() to clear each task was created using DAQmxCreateTask(). This is analogous to C stdio, where applications are responsible for appellant fclose() close each file that was opened by using the fopen() function.


Tags: NI Hardware

Similar Questions

  • How to determine the number of highlight ' to write ' for DAQmx generate analog output?

    On the configuration of the stage for DAQmx generate analog output, there is a field "value to write.  I can't find any explanation for what it is, how it determines the value to enter, nor what he writes.  I am trying to go through the tutorials and it cling.

    Someone would give an explanation?


    To write value specifies the value to write in the channels, lines or ports selected in string parameters. In other words, this value will be the value of your DC output (for example if you enter 5, your output will be 5V). To get information on different fields in SignalExpress, access help"context-sensitive help. A pane will appear in your work environment that displays the coordinates of the field when you place your pointer over them.

    For new users of SignalExpress:

    Generation of DC signals with NI DAQmx devices: step in the DAQmx build, select 1 sample (on request) in the generation Mode dropdown. You can select a programmatic input to generate, or you can remove the check mark from the check box use programmatic input and specify a value for generating in the field of value to write . NOR-DAQmx help also provides additional information about the data generation.

    Best regards

    M Ali

    Technical sales engineer

    National Instruments

  • Is there any unit test framework tools for DAQmx programmers who use C interface?

    I need to accuratly simulate DAQmx devices for the software in the development of unit tests. Are there tools available to make this easier?

    You have the integrated simulation of DAQ devices in MAX. The simulation is limited. It is explained in the NOR-DAQmx help (NI - DAQmx Key Concepts > NOR-DAQmx simulated devices).

  • Waveform 1 d for daqmx base

    Hello.  I have a USB of NOR-9233 key I aquire card with.  I'm under Opensuse 10.3, Labview 8.5 and Daqmx Base 3.1.   Using DAQmxBase Read, I noticed that there isn't an option for 1 D Wave, only 2D DBL, under the analogue of the multiple samples.  This option is available on another configuration using DAQmx.  I guess it's a difference between software.  The 1 d waveform seems to include the timestamp while the 2D DBL does not.  Is anyway to read the timestamp of DAQmxBase?  I could write artificially the time based on the sampling frequency, but I'm afraid that's not precisely correct. Thank you


    Hi Jeff,

    That's correct - DAQmx Base does not currently provide the ability to enter data in a form of wave.

    You will need to write the times artificially.  The type of waveform data consists of a data table, a value of timestamp t0 (you would get this bone) and a delta t (based on your sample rate).  You would use the function create a waveform to convert the data in the waveform type, if desired.  I hope that helps you out, let me know if you have any questions.  Thanks for posting!


  • Acronym for "mx" DAQmx and ELVISmx

    My Google-fu, fu reference book and forum-search-fu have me totally failed... I'm sure this has been answered during the passage of NOR-DAQ for DAQmx, but electronic references that have long since disappeared to bit - rot or in the mists of time. That means the "mx"?

    As far as I know, he does not stand for nothing. It's like most of the initials see you nailed on car model names - although a few like GT are initial - or indeed the names themselves. I drive an Elantra - without meaning (in English at least, Korean?), but cool.


  • Missing DAQmx


    I'm new to DAQmx. I'm LabView 8.6. Miss me all the DAQmx components. Like, when I created new VI

    Functions-> measure of e / s->...

    There is nothing about DAQmx... I have not either the DAQmx examples...

    C:/program files/develop instruments/labview 8.6/vi.lib. I couldn't find anything related to data acquisition either.

    Should I update the driver for DAQmx? Where do I find it? How I could find out if and what DAQmx version had been installed? Thank you.


    The DAQmx 8.7.1 driver did not support for LabVIEW 8.6, I recommend you to download driver DAQmx 8.7.2 or later, we have 8.8 and 8.9 out as well. Here you will find the driver page: http://joule.ni.com/nidu/cds/fn/p/sb/navsRel/lang/en?q=daqmx&x=15&y=13

  • Need for a coefficient of fish using deformation measurement gage (wheatstone)


    I'm building this interface labview eventualy do strain meter measures on composite samples. I tested what I've done so far in half-bridge config. and so far so good. I read about the need for my wages on the material in half or full-bridge ( http://www.ni.com/white-paper/4172/en/#toc1 ). My question:

    LabVIEW should a ratio value (s) accurate material fish when you use DAQmx (one of the "Measurer of strain information" requested as input for DAQmx) to get good accurate values of strain?

    (1) in other words, if I use 2 measurers (half-bridge: one in the axial direction of the sample, one at 90 ° from the axial direction on the sample), Labview DAQmx will not use the "ends of balance (accuracy/temperature/offset) of the half/full-wheatstone-bridge-config with only a. relevant fish worth?

    (2) If Yes: This means that I must first find coefficient of fish of the material for each type of material (composite). So, what would be the best way to put my wages (half of the full bridge) on the material to know an "accurate experimental value" coefficient of fish without having? (looks like using bending modes are the only way)

    (please consider http://www.ni.com/white-paper/4172/en/#toc1 as a reference)




    From what I could dig up, LabVIEW will not calculate a coefficient of specific real fish since it is purely an entry and uses only this entry for v.f..  Half and full bridge configurations are only for the "purposes of balance." This limits you to calulating your own fish for the composite ratio, which, at best, would be a way of the materials that you use.  This is a pretty good site for known values of the coefficients of fish from: http://www.engineeringtoolbox.com/poissons-ratio-d_1224.html

  • Problem with traditional DAQ passage to DAQmx using NOR-6534

    I'm moving the traditional following of DAQ code to DAQmx:

    This code is used to send data to program a FPGA using a PCI OR-6534 DIO.  This code works like a charm, but when I try to write the equivalent code using DAQmx (in LV 8.6 as well) it does not work.  I don't get any errors, but the FPGA do not program.

    The General procedure is as follows:

    The value of all the lines on the Port exit 0

    Set up the mode of transfer to low Active

    Write the data in the buffer

    Send the data using the internal clock of 10 MHz of the 6534 (6533 is no longer used, but the code was never updated)

    Wait until the output is made

    Disable the task

    In DAQmx I configured as such:

    Any ideas on what has changed in DAQmx or what I am doing wrong?

    Looking at your code traditional DAQ once more, he is actually setting up handshaking vs just a straight sample clock.  The Config VI Mode with the "clock polarity" setting is not a sample generated at a certain rate clock, but instead, it's a protocol handshaking attack or the trailing edge.  TDAQ had much more flexibility with what DAQmx and some handshaking protocols are not transferable to DAQmx completely.

    So when you say the configuration of your device in TDAQ bass Active transfer mode, I don't see what is happening in the code TDAQ.  It's really a negotiation protocol of unknown polarity (given that you use a control and I don't see the default value in the public Service).

    You can try to determine which protocol handshake TDAQ you use first, then determine if there is an equivalent for DAQmx.  The three modes that cannot be transferred are level ACK, tip, or long pulse modes.  These have ACK leading REQ, which is not possible for DAQmx to manage.  You can read more in the user guide for the 6534 and starting on page 3 and 4 are the comparison of the different modes of handshake.

    Then move forward options are do not migrate or to download a beta driver TDAQ, if you perform the migration for the purposes of the compatibility of the OS.

    Hope this helps, let me know what other spawn of this.  Thank you.

  • HAVE Start.vi - number of buffers to acquire - equivalent in NOR-DAQmx


    I'm trying to convert a VI above NOR-DQA traditional to NOR-DAQmx.  I'm unable to find the equivalent of some inputs to the AI Start.vi

    number of scans to acquire

    number of buffers to acquire

    Also it HAVE buffer Read.vi which is equivalent to the

    time limit

    I would be grateful for any guidance.

    Thank you in advance.

    He mailed examples for DAQmx Analog Input tasks in LabVIEW.

    In the toolbar, go to:

    Help > find examples (this will open the Finder of example of OR).


    Material input and output > DAQmx > input analog (then select the type of task you did.)

  • Can not find the daqmx device in project

    • In my project, which is great, now I can't access physical peripheral DAQmx using constants, the controls or express DAQ VI help.
    • When I try to use a constant or control [DAQmx physics channel] or [the DAQmx device name] no device appears.
    • LabVIEW stop half the time when I try to open the constant [DAQmx physics channel] or [DAQmx Device Name] project.
    • When I use NI MAX I can see the device, and control.
    • The unit is a box of data acquisition National Instruments M 6289 USB series. I have only this style of machine. I have two of 6289 and have tried both.
    • If I create a new VI not in my project it works.
    • I've updated the NEITHER-DAQmx software on my PC and found no change.

    There the project settings for DAQmx? I can't found.

    Everyone comes through this?

    LabView 2014 f1

    Measurement and Automation explore 15.0

    NOR-DAQmx ADE 15.0.1 support

    NOR-DAQmx Base 3.4.5

    NOR-DAQmx Device Driver 15.0.1

    NOR-DAQmx Max Configuration 15.0.1


    Model: NI USB-6289 M Series data acquisition device

    Calibrated: 10 June 2017

    Driver version: 15.0.1f3

    Driver name: NOR-DAQmx


    Dell Vostro 460

    CPU i7-2600

    memory 8 GB of ram

    Operating system Windows 7 pro

    This error is cleared after two days.  I'm unable to replicate. regardless of the question has been reset is not a cure.

    It's the second mystery LabVIEW question who cause great suffering which allowed himself without any reason.

  • No screws daqmx in labview 2014 64 bit


    I have daqmx 14.0 installed on my Win 64 bit PC and LabVIEW 2014 SP1 32 bit. Today I installed LV 2014 64-bit on my PC and I don't see any DaqMX screws under the section i/o measure. And when I opened my project compiled in 32-bit LV 2014 then computing begins looking for screws DaqMX and I point it to "C:\Program Files (x 86) \National 2014\vi.lib\DAQmx" but the daqmx vis are broken.

    When I click on the run button broken, the error list displays 2 errors:

    (1) VI couldn't carpule

    (2) external component or missing driver

    It seems that I need to install special drivers for daqmx, so I downloaded daqmx 14.5 of the or site and during installation when it asks the path is by default "C:\Program Files (x 86) \National" but I changed it to "C:\Program File\National Instruments\" and the installation program gave an error message that I can't install the 32-bit files in 64-bit folder.

    How to solve this error?

    Thank you


    LVCoder wrote:

    So should I just uninstall daqmx from my PC and re-install again. or do I uninstall labview and daqmx together and then install daqmx and labview?

    Reinstall everything DAQmx.  It will install only the parts you need, in this case, it should just be support for LabVIEW.

  • DAQmx writing


    I am trying to simultaneously acquire a signal while generating / writing a signal chirp (swept sine wave), which varies from 0 to 800 Hz. before, I was able to do it using a loop timed with 1 KHz clock and 100 msec period. The sampling rate for the moment for generation DAQmx was 4000 Hz, and the number of samples per channel was set at 400. In the timed loop samples per channel for the DAQmx write that VI is set to 400. I used "Creat an analog Signal" express VI into the loop timed to generate the beep signal using a 4000 Hz sampling rate and number of samples of 400. The FFT of the acquired signal was clean with almost no noise inside.

    Now, I changed the above parameters such as the VI can be used for real-time closed loop control. So I reduced the samples per channel in all cases to 1 and use the clock 1 MHz with 200 micro-sec period, acquisition and generation at 4000 Hz. However, evaluating the acquired signal FFT, I realized that it contains a lot of noise, while the previous code with 400 samples per channel contained no noise for a frequency to 1000 Hz band.

    I think that the problem comes from the high sampling rate with the small number of samples per channel for the writing VI DAQmx. My feeling is that the DAQmx doesn't have enough time to write all of the samples in the buffer. I tried different values for the timeout for DAQmx VI (reading and writing DAQmx) in the timed loop, but it did not work... I gave the last VI here. Can someone help me where the problem is?

    Also, is it possible that I can monitor the actual values of the data written (i.e. the output of writing DAQmx)?

    Thank you

    You mentioned the loop is expected to completed in 330 microseconds. If it is not designed to finish at 200 microseconds based on the period of your timed loop? It would be the best way to control real time loop to connect an indicator to the duration of the iteration inside the timed loop.

    It seems that you have configured your VI DAQmx of Timing to get a sampling rate of 4000. You then write a signal with respect to 12000 s/s from the node to create an analog Signal. I recommend you keep these two consistent values. If you are wanting to read/write data at 4000 Hz, which would be linked to a period of 250 microseconds. You can increase the length of your timed loop 250 or more.

    You can attach a screenshot of some data that you had who had less noise for comparison purposes?

  • The Question Daqmx upgrade


    Sorry, I'm just a simple question that I can't find anywhere clarification.

    I'm running on XP SP3, LabVIEW 2010 SP1 with Daqmx 9.1.7 with installed MAX.

    I want to use the new screw TDMS for Daqmx 9.3, so I plan on upgrading to 9.4 (this update will affect the LabVIEW project, I am working currently on, of the forum messages previous forum, since I'm on > 9.0 already, it shouldn't be a problem).

    I don't have internet connected to my computer, and it will be a troublesome organize, so I was wondering for the upgrade, do I just go to MAX > tools > update and who will help me to update my Daqmx driver?  Or should I download the 9.4 from here and install it?  If it's the last option, do I need to uninstall first the 9.1.7.  If I can't uninstall it and risk losing things, then I download on this computer, and then transfer.

    Thank you



    If your computer is not connected to the internet, then you will not be able to update the driver through MAX because MAX Gets the update through the internet. The best solution in your case would be to download the updated driver from the link you included, and then install it on the computer that you want to upgrade. There is no need to uninstall an earlier version of NOR-DAQmx as the download will automatically update your previous version. You do not lose the features of your LabVIEW project.

    Good luck

    Allison M.

  • Problem with NOR-DAQmx Base on Scientific Linux 3.4

    Hello everyone.

    I'm trying to install the driver OR-DAQmx Base 3.4 on Scientific Linux 6.0, but I got these errors:

    On this text said that Scientific Linux 5.4 and 5.5 is supported.

    Can anyone help me or 6.0 is not supported?

    Hello decadence,

    Thank you for posting.  Your post, it seems that the problem occurred while trying to install NI VISA 5.0.  Unfortunately, the only versions of Linux that are officially supported by our pilots and implemented to date are those listed in the Readme of each product.  In the Readme for NEITHER VISA 5.0, Scientific Linux versions 5.x are supported, but Scientific Linux 6.0 is not in this list, nor in the Readme for DAQmx Base 3.4.  I hope this helps.

    Kind regards

    Joe S.

  • No screws daqmx of measure e/s in Labview 8.5 after installation

    LabVIEW 7.1 also lies and can them. How to fix for 8.5? NiDaq 8.7.1 Tried running copy Daqmx folder from vi.lib to the title of the program files\7.1 to 8.5 even tried for Nidaq Mx.mnu under menus\default. Also for daqmx folder under folder menus. Any ideas?

    I installed 8.5 with 8.7.1 pilots who were on the same disk (DVD). I used 8.7.1 with LV 7.1 I try to re-install the drivers of another disc Nidaq

    Thank you

Maybe you are looking for