DAQmxClearTask of output channel takes 20 seconds

I have a camera of NiDAQmx on the NI PCI-6713.

I create a task for the analog output.

I stop the task and delete it using DAQmxClearTask.

The call to DAQmxClearTask takes 20 seconds. On other systems I use the same call takes less than a second.

Can someone help me understand & solve the problem?

My driver version is: 9.7.5

I work under windows 32 bit, visual studio 2013.

Thank you

Yoav Pinsky

Hi Yoav,

Have you tried using NI Trace of IO to help diagnose the problem? This tool can give you a sense of whether any involuntary or repeated call is made. You can find this tool in the menu start > all programs > National Instruments. Once the with tools open just to start the trace with the green arrow, run your code, and then stop the trace.

In addition, you can find this post on the forum useful.

http://forums.NI.com/T5/PXI/why-does-it-take-so-long-to-clear-a-task-with-DMA-transfer-using/m-p/237...

In this case, the problem was due to driver and device conflicts. You can reinstall the DAQmx driver if you haven't tried that already.

Tags: NI Software

Similar Questions

  • Peripheral output channels Custom not updated

    Hello

    I'm having a problem where my Custom peripheral output channels is not up-to-date in Veristand.  At first, I thought that perhaps I was not passing simply return all of the channels that I read but I got the Panel of peripheral pront open when it runs so I could see directly the data being transmitted and is all there (see attachments), but once it is written in the FIFO output is not are they displayed in Veristand on indicators of the workspace.

    The only thing I thought is maybe that VeriStand is reading the FIFO faster unit is written result in default values being read.  Ideally Veristand would maintain that the last value read if she meets and empty the FIFO, but since this part of veristand is not available to my knowledge, I have no way to confirm or modify this behavior.

    Anyone who has ever met this problem?  Thank you.

    The problem has been less channels than veristand supposed to write the FIFO output.

    Device to start the custom first for a fraction of a second he wrote number of channels or perhaps even no channels in the FIFO output coming much too fast to notice at the time wherever the front opens upwards so it appeared as if all the right lanes were sent.  Apparently if less than channels are added to the FIFO Veristand is pregnant, she's one of the remaining channels updated.

    Therefore if VS waits 20 channels and on the first round only 10 are written then from there he will send only 10 channels even if I may continue the planned 20.  This could also be the result of the mechanism by which work RT FIFOs.

  • How to synchronize 2 digital output channels that have been created with DAQmxCreateCOPulseChanFreq

    Hello

    I use peripheral USB6221.

    I created two digital output, operating on a frequency of 75KHz and duty cycle of 50%. But I need a period of 1 microsecond between the two channels.

    I have craeted the two channel on the same task and guess if I use a delay of 0, the channels will be synchronized, but looking at the scope, the channels are not synchronized. Here's the code I used (I checked also all return codes of coarse and fine).

    Thank you

    Danny.

    Int32 RetCode;

    RetCode = DAQmxCreateTask ("", & m_OCtaskHandle);
    LogMessage (RetCode, "CreateTask", "");
    If (RetCode > = 0)
    {
    define the first output channel for 1 transmitter (75KHz)
    RetCode = DAQmxCreateCOPulseChanFreq (m_OCtaskHandle, "/ Dev1/ctr0", ")
    "Transmit1 Line 1", / * name to assign to the channel * /.
    DAQmx_Val_Hz, DAQmx_Val_High,
    0.0, / * initial delay in seconds * /.
    75000.0, / * Freq * /.
    0.5 / * market factor * /);
    define the second output channel for 1 transmitter (75KHz with 1 microsecond delay)
    RetCode = DAQmxCreateCOPulseChanFreq (m_OCtaskHandle, "/ Dev1/ctr1", ")
    "Line2 Transmitt1", / * name to assign to the channel * /.
    DAQmx_Val_Hz, DAQmx_Val_High,
    0,000001, / * initial delay * /.
    75000.0, / * Freq * /.
    0.5 / * market factor * /);
     
    Describe all channels continuous task
    RetCode = DAQmxCfgImplicitTiming (m_OCtaskHandle, DAQmx_Val_ContSamps, 1000 / * I think that NA since continuous * /);

    RetCode = DAQmxStartTask (m_OCtaskHandle);

    Hello Danny,

    If you are looking for more output channels of the Digital pulse trains, you can create 1 task of counter that is used as the clock for digital multi-line data output. For this digital task, you will need to make the clock source line PFI for the output of your task of counter. Once this has been done, you will need to create the digital signal for each line of output and write to the card. The example called write dig Chan - Ext Clk will explain how to set up the digital task so that the task has an external clock (the counter). I hope this information helps you and if you have any other questions, feel free to post.

  • iPhone iOS 5 + 10: press the button to unlock home takes 5 seconds to unlock the device

    Hello!

    Yesterday, I did the update to iOS 10 on my iPhone 5.

    Now, it takes 5 seconds to unlock my iPhone 5 after pressing the home button. It is average for a long time! Everyone even experiences?

    Thank you!

    martin_777

    It is normal for the old model of the iPhone 5. in any case, you can try to reset your device and check if it helps.

    Try resetting your device. This will not erase your data stored on that device.

    • Press and hold the sleep/wake button
    • Press and hold the Home button
    • Press and hold both buttons until the display turns off and on again with the Apple logo on the subject.

    Alternatively, you can go to settings - general - reset - Reset all settings

    If that doesn't work, restore your device to factory settings. Please note that this will delete the data on your device.

    Take a look this Apple Support article: use iTunes to restore the iPhone, iPad or iPod to factory settings - Apple Support.

  • It takes 40 seconds to start firefox. Would it be faster? How?

    before the opening of firefox it takes 40 seconds. What could be the problem or is the normal time to open?

    One possible cause is security software (firewall) that blocks or limits Firefox or plugin-container process without informing you, possibly after the detection of changes (update) for the Firefox program.

    Delete all rules for Firefox in the list of permissions in the firewall and leave your firewall again ask permission to get full unlimited access to the internet for Firefox and the plugin-container and the update process.

    See:

  • My site optimized (22-59K) uses a grid for layout system. It takes 10 + seconds in Firefox 7,8,9 to load, other browsers need less than 1 second. Y at - it other that to use a 2-column layout, some recommended grid with which Firefox gets along?

    Someone commented ago about 9 weeks for my site to load very slowly. I tried and had no problem.

    But a few days ago, I realized that the first call (after rebooting the system) in Firefox 7, 8 and 9 of Firefox Firefox takes 10 + seconds (white screen) while other browsers have need of about 1 second. After the initial call each page loads faster than in other browsers.

    Without content management system, I got the same results. In simply removing things from the grid of my stylesheet, pages loading less than a second. I tried other grids http://cssgrid.net/, http://www.webdesignerwall.com/demo/simpler-grid/940grid.html , but had the same number.

    A identify the extension that is causing the problem in your case?

    He is always unpredictable, how the extensions behave with a new version and in case of problems you can contact the developer of the extension to inform him about the problems.

  • Call to a single value to an output channel for A Table need help

    I filled an array that contains all the values in all the channels of my series of data. I am now looking to channel calculations to provide weighted averages and an overall average for the value of the trial. These data will be produced in a new table called 'total table. " This Total table should only have one value per channel.

    The question that I am running is 2 times. When you do the arithmetic channel, mainly channel using "ChnSum" DIAdem amounts does not truncate all data in a new set of data. It retains all values and adds the last block with the sum of all of the channel as a whole. I need or be able to get this last value dynamically (because not all my datasets are the same length) or I need to generate a new string that has only the value of the sum. Is there a way to do this?

    Here is what I try to do but kind of pointless. A screenshot of what looks like the output of the table after treatment of this code is attached.

    "Complete total table with values from calculations above.

    For j = 1 to selectData.MultiSelection.Count

    Counter = counter + 1

    length = ChnPropValGet ("[" & selectData.MultiSelection (j).] ") Index & "] / Cumulative fuel ', 'Length')

    If counter = 2 Then

    [A bunch of calculations of the new output channels channel]

    Call View.Sheets ("total table"). Areas ("field:" & Counter). DisplayObj.Columns.Add (ChnFind ("(" & selectData.MultiSelection (j). ("The index &") > 0 "(, longueur-1))"

    End If

    Next

    Any help would be appreciated.

    Thank you

    ~ Nate


  • T450s startup takes 35 seconds before displaying the splash screen. (wake up 11sec)

    The following are my problems:

    1. when starting the machine, it takes about 35 seconds before the first activity screen (screen of Lenovo). After that, it starts normal.
    2. when waking off mode 'sleep', it takes 11 seconds before I see directed power stop to 'breathe' and wake up the screen.

    It feels like it is a hardware/bios on the issue, as (so far I know) hdd/ssd is accessible only after the bios has loaded and completed its audits of material. When you paste into a bootable usb it starts only flicker after the bios was loaded on the screen.

    Question:
    Anyone have an idea why my laptop waiting so long to start or wake? I don't mind wait a bit, but in 35 seconds + startup time normal is really boring. Especially with the fact that the laptop shows no sign of life for 35 seconds after ignition briefly the backlight on the keyboard. Alarm delay is also very annoying since even my 7 year old laptop BSOD to wake up faster, and I use a lot "sleep" mode.

    Some origins I think about:
    -Verification of the material during the initial start-up of equipment does not yet recognize a dedicated GPU card. (POST: Power On Self Test)
    -I don't think it's a problem with my software because the problems occurs before any media playback.

    I already tried things:
    -Reset the bios.
    -Start in legacy mode.
    -Update the bios
    -rebuild MBR (although I think that's the problem.)
    (- Refreshing installation of windows, even if I do not expect that's the problem.)

    This problem was already at the beginning (with origenal material):
    From the first time I started the laptop (with HARD drive), I noticed that it took a long time to start. I remember repeatedly pressing the button ON / OFF and think I did something wrong, when all of a sudden the 'Lenovo' screen appears.

    I hope someone can help me!

    My problems were solved!

    An engineer contacted me that they received a mainboard replacement and they wanted to make an appointment. I gave them the address where I worked the next day because I'm very mobile, and an engineer came by the next day. It appeared to be a qualified IBM engineer and test my machine and came to the same conclusion as me. He then did some tests to see if the problem was caused by something else, then the motherboard but eventually replace my motherboard with good care.

    After the replacement of the startup time and wake up was normal as it should be. I'm very happy with the service that Lenovo ThinkPad gave me.

    I have to add that when I called for the support that I got someone on the line who couldn't really understand me, neighter, Dutch or English. But it was also duo a bad connection, it seemed to me... But after that call I really didn't expect that it would come to a good end. I then really suppriced isn't 5 days later a Dutch engineer Chief called me for an appointment.

  • Definition by digital input or output channels program

    Which classes/methods in Measurement Studio NIDAQ-mx support let me set programmatically a digital channel for entry or exit? The only methods I met provide lists of channels of i/o configured previously.

    Thank you

    If you are using a device with digital two-way lines, then you have not specifically set a channel as ot of input-output. Use string functions DAQmxCreateDIChan or DAQmxCreateDOChan with the lines that you want to use. The line will be automatically configured as input or output.

    If the device supports the digital two-way, you cannot define an input as string vice versa and the output channel.

  • Read analog output channel value internally

    According to this you can read the values of analog output of return without having to physically connect the wires.

    By using the technique described in the example given (DAQmx_Read_Output_Internal_Channels.vi) I'm reading a current area of OCCUPANCY on my compactDAQ cDAQ-9174 with a module of analog output current OR-9265.

    The output channel is created in MAX and my vi can write values to him without problems

    But when I try to create an analog input channel to read the output, an error occurs.

    What I am doing wrong?

    This is not supported by my hardware?

    Or is the example given in the above incorrect link?

    The example is 10 years old. Maybe, it does not work in LV2013.

    Hi Jocker,

    The link was not attached to your message, but I guess that's it: http://digital.ni.com/public.nsf/allkb/CB86B3B174763C3E86256FFD007A2511 as there the example of vi you mention.

    The error you are getting is due to the use of the channel for analog output and trying to configure the task as a task of entry. You must use _aoX_vs_aognd as the channel of the task rather than on the output channel. This compares to the ground for the analog output values.

    The NI 9265 is not on the list of the C Series modules that have internal channels:

    http://zone.NI.com/reference/en-XX/help/370466W-01/mxdevconsid/9211interchan/#GUID-E13ADE46-5CB8-491...

    So I guess that the module is not able to compare its output to ground. He would appear in the dropdown of the channel names if available.

    Pete

    Applications Engineer OR

  • When I open programs in Windows XP, the menu bar does not appear and it takes several seconds before the program responds (after that finally shows the menu bar).

    Everytime I open a program, it takes several seconds before I can do anything because the menu bar are not displayed immediately.  After the menu bar appears the function of programs very well, but it is very annoying to have to wait.  I've done an installation of Windows repair without success.

    follow the directions to this treatment... http://www.microsoft.com/windowsxp/using/setup/expert/northrup_restoreperf.mspx

  • My program to take 30 seconds - 1 minute to open...

    Hello, recently I installed the update and my program beginning of opening in 30 seconds or 1 minute...
    When I play the song, it take 30 seconds to open the media player,

    I wrote some suggestions on how you can difficulty a slow, slow PC (or what is that actually run slow).

  • Standby time for Windows takes 45 seconds (Bios). Is this normal?

    Hello, do not bother

    I used 6 months of Windows 8
    But the standby time Windows takes 45 seconds (Bios)
    Is this normal?
    1-on start Windows programs are disabled
    What a way to speed up Windows 8, or do you recommend a good software

    Thank you.

    Original title: windows 8 watch

    I just wrote about how to help fix a slow PC.  Care to take a look and let me know what you think? http://cmdrkeene.com/fix-sluggish-slow-PC

  • First CC 2015 - 'no audio output channel valid for found a reading. Please check audio hardware preferences. »

    I just updated from CC 2014v2 until 2015.

    When I open any project or create a new and import any media type - I get a yellow warning at the bottom of the display window showing 'no audio output channel valid for found a reading. Please check audio hardware preferences. "When you press Play, no sound plays and the read head does not move.

    Here is my audio hardware preferences - Realtek is my only option. Everything was going well in 2014 CC this afternoon and I have CS6 installed, which opens and reads the clips and audio without problems while listing the Realtek as the output device.

    audioHardware.jpg

    HP Z820 - Windows 7 64 bit - 128 GB of ram. Adobe apps and system to this day.

    I could solve this problem by removing all plug-in in the directory "C:\Program Files\Adobe\Common\Plug-ins\7.0\MediaCore", which fixed the problem, then replacing them in batches until the returned error.  In this case, it was an outdated version of an addon Bluefish444.

  • "The device has changed and no output channel is present. Open Audio hardware preferences? »

    Hello

    I installed an infusion of SSD and fresh install of Windows 7 64-bit, including the installation of Adobe CC with premiere pro and other related applications. My audio works fine, I have a portable speaker connected to the back of the audio 'line in the green plug' at the back of my office, have not had any problems with her.

    However when opening Adobe PP for the first time I get the message "the device has changed and no output channel is present. You want to open the Audio hardware preferences. At the opening of the entry default preference reads "no devices available (does not). I was unable to change the value by default using the box entrance, but was able to change the default output. I changed the default output to ' speakers (device 2-high definition audio) and after that I got an error that read "sorry a serious error has occurred which caused Adobe PP stopped." We will try to save your work)".

    Is anyone able to help with this, I don't know how to set up the audio setting is all new to me. Also do not know why this has happened given my audio works fine in any other program that I use on my pc. Any help from an expert on this forum would be greatly appreciated. Cheers, Joel.IMAG6050_1.jpg

    IMAG6051_1.jpg

    My first guess is to check and possibly update the audio driver.

Maybe you are looking for

  • How to paste properly attributes for crops?

    Hello, I have problems with the function of paste attributes. Below you can see how I cropped these images. I want to paste in another clip culture settings, so that they have identical cropping. The two clips are of the same size - they are just reg

  • Last week, Firefox would play mp3s. This week, it will not.

    I create mp3s and download them on my site for a project I'm doing. It worked well for 8 months, and suddenly, the last Firefox update think my videos) 1 and 2) damaged files. IE * shudder * cheek and so chrome.

  • Reset play count

    After that the most recent iTunes updated, the ability to reset the counter to play songs seems to be missing.  Is there a way to reset the counter of my songs?

  • I HID MY TOOLBARS, HOW TO RECOVER?

    I HID ALL MY TOOLBARS AND DON'T KNOW HOW TO RETRIEVE THEM, SOMEONE CAN ME RUN THROUGH THE PROCESS?

  • Vista sp2 problem.

    When I try to download sp2 for vista 32 x XP Home Edition, after a reboot! 0xc0190036! 1647/46888 (ntevt.dll) appears and freezes my pc. How to solve it.