Close task DAQmx freezes

Hi all

I've been struggling for some time with the following problem, no relevant answers to it. Maybe someone here have met it before.

I wrote a program in 2011 Labview data acquisition, using daqmx 9.3 + acquires data from a card NI 6008. The program works very well at all works with my laptop, but crashes during like every third performance on another laptop. Both have win7, the other is 64-bit (I'm not sure that matters).

The program itself is quite complicated, so here I PASE a image of one of the parts he tends to freeze at (there are many other acquisition tasks, where it delimits to freeze, but every time that the structure of the block diagram is basically the same, with the creation and closing of the task). It is freezing more often when there is continuous sampling frequency of 1000 Hz and simultaneous treatment (trace, fft, etc.), in a regime of producer/consumer. The interesting thing is that it does not ALWAYS freeze.

Whenever I check if the program hangs at the TASK.vi STOP without sending an error message. I can produce the same error with the simple example, I have insert below, if I run the program several times (it takes 10-20 tracks of stick to stop task.vi)

Please, send any suggestions on what could be the problem.
Another tip is the MAX itself gives an error of "embedded memory overflow", several times at startup. However, I tried the solution with the property node - without success.

Dear Buadam,

The workaround you mentioned has been implemented in NOR-DAQmx 9.4 and should be available from this version. The default value of value certainly not 1, since that would limit USB flow considerably, especially on faster devices.

To explain more in detail: this property ("Analog Input" General Properties"Advanced" transfer of data and memory"County transfer USB) is responsible for defining the size of a USB transfer burst. The default USB transfer size is 32 KB. For a very fast channel or high County applications increases the size of USB transfer request are likely to increase flow. In this case however, we are voluntarily reducing the size of the transfer, to be absolutely sure that the bug in Windows 7 (how the system handles applicants on USB 2.0, specifically, how the packages are split) does affect us, resulting in deadlock as you packages known. So the idea here is to small enough packages to ensure that the USB driver is unable to divide, this prevents in turn also USB performance, but since the 6008 is a relatively slow, low peripheral County channel, we always have more than enough bandwidth.

So, to summarize:

  • Please update on DAQmx 9.4 or more if you can (LabVIEW 2011 is supported up to the most recent, version 9.8)

  • I also recommend to upgrade the USB drivers from the laptop from the website of the provider as appropriate.

  • Set the AI. UsbXferReqSize to 1 once available. If you don't find it, try right-clicking on the property node, select filter... > display all attributes

crossrulz: you have effectively reason that a finite measure stops the task once all samples have been read, so a wait until I recommended is redundant here, as it is expected to return with fact = True. The reasons why I suggested to use are:

  1. To refresh the status of the task, "check" that he has been arrested properly.

  2. To give the device of the extra time before the command stop the task/Clear task is sent.

  3. To catch errors that are stored in the DAQmx object, but not covered by the read operation, before attempting to stop/clear.

Hope is makes sense.

Kind regards:

Andrew Valko

NIH

Tags: NI Software

Similar Questions

  • Create/edit task DAQmx vs DAQmxCreateTask

    I just started using Labwindows recently, so I'm a newbie here. You have a configuration great forum and I hope you can help me with that.

    so, as the title indicates what is the difference between the use of these DAQmxCreateTask(), the functions LoadTask() and manually create a DAQmx task using the menu 'tools '.

    Don't they realize the same thing? What is the need for each of them to be here? Am I missing something?

    I have already a little used in Labview. In that, to acquire data, we must use the icon tasks DAQmx to acquire/generate anything. but it is not all available such alternative programming, if I'm not mistaken. so, what's the problem with Labwindows/CVI then?

    Tools > generate DAQmx task launches a wizard that allows you to define the characteristics of the task and create the corresponding code. You can do this by yourself by manually writing individual instructions: this can be useful if you already have an existing code that you can reuse with adaptations little or if you have a special need that cannot meet the wizard or simply if you have the habit of writing code rather than rely on assistants which is my option.

    LoadTask is used to load a task created in MAX and use it in your program. This allows a form of customization of the task without changing the source code, with the obvious caveat that excessive changes in the task can cause the end behavior or abnormal length of program errors.

    All these options are legitimate ways to perform the same operation, a task for the acquisition of coding: know the characteristics of each of them, you can choose one that is most suitable to your purpose and your programming habits.

  • Missing reference to task DAQmx

    Hello

    I have just inherited code without papers of an engineer who has left the company.

    We use a USB-6008 to control a stepper motor and take a few analog readings

    DAQmx tasks received really useful names such as "TO 0", guess that's Digital Out"0  However when I look at the tasks of the unit, "0" is not present. ""

    The program crashes and complains of an error.

    Is there something I'm missing here?  Y at - it another way that a string that "DO 0' culd be associated a task DAQmx?

    Rgds,

    Sean

    OK, I had a legacy project open.

    Virtual channels are in the new project.  I was looking everywhere on MAX, but it was in the project correct throughout.

  • How can I get a graphic display in real time of a task daqmx

    Hello

    I have set up a task DAQmx using the DAQ assistant and the task is to work and produce a graph/data, but not before the task is complete. How can I get a display in real-time of the numberical values or graphics?

    Any help would be really appreciated

    Thanks, Paul

    paultryan wrote:

    I could get set the frequency of sampling and to give a regular change of output, but im looking to get this long-term data acquisition. For example, the graph changes everything but 1 - 5 get 30 minutes of data.

    I used the DAQ assistant and labview is completely new to me, if im not sure where it take it from here.

    concerning

    Then you should use a chart - not a graphic. A graph has a story. You must set this. Right click and select "Chart History Length".

  • 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/

  • I 200918 error when you try to save a task DAQmx

    I have a Labview application 7.0 that creates and registers a task DAQmx (DAQmx version 8.0).  I can create a new task, but when I try to save the task I have Labview 200918 internal error. So far, this has worked very well on several machines but recently received this error message on a new Windows XP SP3 machine running.  I am able to create a backup task by using MAX (version 4.3).  Anyone know this kind of error before?

    Kind regards

    David

    This code corresponds to what is now an external error code.  The text of the error is:

    "Global channel name specified is already used for a task in the area of data.  NOR-DAQmx does not support global channel names and overlapping tasks.  Select another name. "

    I don't know why this code appears as an error internal to you, but the new text of the error, you should get going.

  • Clear any open task daqmx

    Hello

    I was going crazy, because all of a sudden a tasks analog output did not work any more he said it conflicted with another task "always active"... I searched my entire application. Could not find anything. So finally, I closed the application labview together, and then it worked again, as if by magic. I came to the conclusion, that my stop and and clear task was not called when I closed my program in a different way.

    So my question: is there a possibility to see what daamx tasks are active when you start your program, so that you could erase any existing task?

    Kind regards
    Thijs

    Better yet, DAQmx tasks really need to be created once, preferably during development and no runtime if you can avoid it at all the.  Presist them to the project (if you are deploying in a debug environment) or, for MAX, if you deploy a exe.  It also allows your tasks be available for troubleshooting and integration, or even a FPS "Engineering" for the station.  I don't remember the last time I've delivered a solution the DAQmx encluded create Task.vi.

    Its pretty easy to write yourself a little utility to give up and cancel all tasks DAQmx.

  • Convert from type string to type task DAQmx

    Hi all

    I would like to know if it's possible to convert type string DAQmx type (task DAQmx in)

    Thank you!

    This error is not associated with the conversion of the string type. I don't really know what is happening in your application, but I suspect that you are getting the error because you have not configured/registered your task properly, possibly in another application on the same system. I saw this problem before when functional using globals to save a task in one application and then read the overall task of the functional by using an another VI. This usually occurs because the functional world will save the value associated with the particular task. I would recommend that you look for the error code on the website and have a look at the following article. I apologize, but my knowledge is limited on this error.

    Recorded by program channels, NOR-DAQmx tasks and examples of scales

    TonP, I was avoiding the point of constraint

  • Verify that a task DAQmx is a particular type of task

    I'm trying to find a method in LabVIEW to make sure a task DAQmx contains a particular type of task.  For this particular application, I want to check a task DAQmx is a digital output (line) before you run it.

    Regulate a DAQmx control i/o filtering is an option for me, but this code will be used by other programmers and I would like to add this check additional w / error handling in the case where the task is to be of the correct type.

    Thank you for your comments.

    -Nic

    Use the property of channel-> node property of Type string and it will tell you what type of task.

    Cheers, Matt

  • The Task Manager freezes, but only for my account

    I upgraded my computer to Windows 7 64-bit to 64-bit Windows 8. I noticed something that was if I opened the Task Manager, it would show a frame of stats, and that's all. The Task Manager does not block enough (he is sensitive to mouse events), but no additional data comes, it freezes. Given that there was a problem with the driver for the motherboard, I wrote chalked it up to that and will think it controlled again Asus releases an update for the motherboard.

    I connect to my RT Surface with the same Microsoft Account and noticed that the Task Manager freezes in the same way. I found that it is very strange. On any of the computers my account is running as an administrator. I checked the administrator accounts, other accounts users standard and even the guest accounts and Task Manager works very well on these accounts on the desktop computer 8 Win and the Surface RT. So somehow, a 'setting' is corrupt with my Microsoft Account and floats on any device Windows 8/RT I sign in with this account.

    Any idea on how to clarify the issue?

    Clean boot didn't do. There is potential software conflicts with a single account, and certainly not on a Windows RT device.

    Given that it was just my account I looked to for the Task Manager and found HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\TaskManager\Preferences and deleted registry settings. It resolved the problem.

    I was hoping since the problem sank through the cloud that the fix would be too, but it didn't. I ended up deleting the registry key on both machines.

  • Start/task bar freezes, but can still work on all open windows? : S

    Hello and thank you if you took the time to read this.

    I'm on Vista x 64

    I'll start by when I turn on my pc.  (and an example of what is happening)

    Turn on > enter password > windows start > if I leave my computer for a few moments without start all programs, the start bar will freeze after about 5 minutes.

    I am then unable to open all programs, if I try Ctrl + Alt + Delete I try to start the Task Manager, but it's too frozen and I can't terminate any process.

    The only thing I can do is Ctrl + Alt + Del again and shut down my computer.

    (is where it gets more weird)

    If I start my pc > fill in password > open some programs quickly before the start bar freezes (because he ends up by themselves) then the start bar freezes after a short period (1 min) (for example) Firefox/Chrome open, Photoshop, E-mail, etc. open, I am able to use all these programs, unless I have close or minimize the window for them , making it impossible to get again (even if they are still running as a process)

    If I try to Alt + Tab the real Vista Alt + animation tab that opens in the middle of the screen sits there frozen too impossible to close or change the program.

    To add to the strangeness >

    I then press Ctrl + Alt + Delete and click CLOSE in the lower right, when I do this the ' the following documents are still open you want to save before windows shuts etc etc etc...'   So I click Cancel instead of "Force Shut down" and everything will come back to working perfectly!

    I'm confused and have no idea of what I should...

    I'm guessing a repair would be useful, but there may be something im missing

    Thank you for reading if you have any help much appreciated!

    Hello

    What antivirus/antispyware/security products do you have on the machine? Be one you ALREADY had on this
    machine, including those you have uninstalled (they leave leftovers behind which can cause strange problems).

    ----------------------------------------------------

    Follow these steps:

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Also run CheckDisk, so we cannot exclude as much as possible of the corruption.
    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    ==========================================

    After the foregoing:

    How to troubleshoot a problem by performing a clean boot in Windows Vista
    http://support.Microsoft.com/kb/929135
    How to troubleshoot performance issues in Windows Vista
    http://support.Microsoft.com/kb/950685

    Optimize the performance of Microsoft Windows Vista
    http://support.Microsoft.com/kb/959062
    To see everything that is in charge of startup - wait a few minutes without doing anything - then right click on the task - bar
    The task manager - take a look at stored by - Services - process - it is a quick reference (if you have
    a small box in the lower-left - show for all users can check only).

    How to check and change Vista startup programs
    http://www.Vistax64.com/tutorials/79612-startup-programs-enable-disable.html

    A quick check to see that load method 2 is - using MSCONFIG and then display a list of the people here.
    --------------------------------------------------------------------

    Tools that should help you:

    Process Explorer - free - find out what are the files, registry keys and other objects processes have opened, the dll
    they loaded and much more. This exceptionally effective utility will show you even owned by each process.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896653.aspx

    Autoruns - free - see what programs are configured to startup automatically when your system boots and you
    opening of session. Autoruns also shows you the full list of registry and file locations where applications can configure auto-
    start the settings.
    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx
    Process Monitor - Free - monitor the system files, registry, process, thread and DLL real-time activity.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896645.aspx

    There are many excellent free tools from Sysinternals
    http://TechNet.Microsoft.com/en-us/Sysinternals/default.aspx

    WhatsInStartUP - free - this utility displays the list of all applications that are loaded automatically when Windows
    starts. For each request, the following information is displayed: Startup Type (registry/Startup folder).
    The command - line String, product name, file Version, company name, location in the registry or the file system,
    and much more. It allows you to easily disable or remove unwanted programs that runs in your Windows startup.
    http://www.NirSoft.NET/utils/what_run_in_startup.html

    There are many excellent free tools to NirSoft
    http://www.NirSoft.NET/utils/index.html

    Window Watcher - free - do you know what is running on your computer? Maybe not. The window Watcher says it all, reporting of any window created by all running programs, if the window is visible or not.
    http://www.KarenWare.com/PowerTools/ptwinwatch.asp

    Many excellent free tools and an excellent newsletter at Karenware
    http://www.KarenWare.com/

    ===========================================

    Vista and Windows 7 updated drivers love then here's how update the most important.

    This is my generic how updates of appropriate driver:

    This utility, it is easy see which versions are loaded:

    -Free - DriverView utility displays the list of all device drivers currently loaded on your system. For
    each driver in the list, additional useful information is displayed: load address of the driver, description,.
    version, product name, company that created the driver and more.
    http://www.NirSoft.NET/utils/DriverView.html

    For drivers, visit manufacturer of emergency system and of the manufacturer of the device that are the most common.
    Control Panel - Device Manager - Display Adapter - note the brand and complete model of your
    video card - double - tab of the driver - write version information. Now click on UPdate Driver (this
    cannot do anything as MS is far behind the certification of drivers) - then do a right click - Uninstall - REBOOT
    This will refresh the driver stack.

    Repeat this for network - card (NIC), Wifi network, sound, mouse, and keyboard if 3rd party with their
    own the software and drivers and all other main drivers that you have.

    Now go to the site of the manufacturer of system (Dell, HP, Toshiba as examples) (restoration) and then of the manufacturer of the device
    (Realtek, Intel, Nvidia, ATI, for example) and get their latest versions. (Look for the BIOS, Chipset and software)
    updates on the site of the manufacturer of the system here.)

    Download - SAVE - go to where you put them - right click - RUN AD ADMIN - REBOOT after each installation.

    Always check in the Device Manager - tab drivers version you install actually shows up. This
    because some restore drivers before the most recent is installed (particularly that audio drivers) so install a
    pilot - reboot - check that it is installed and repeat if necessary.

    Repeat to the manufacturers - BTW on device at the DO NOT RUN THEIR SCANNER - manually check by model.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    How to install a device driver in Vista Device Manager
    http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.html

    If you update the drivers manually, then it's a good idea to disable the facilities of driver in the Windows updates,
    This leaves ONE of Windows updates, but it will not install the drivers who are generally older and cause
    questions. If updates offers a new driver and then hide it (right click on it) and then go look for new ones
    manually if you wish.

    How to disable automatic driver Installation in Windows Vista - drivers
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
    http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx

    Hope these helps.

    Rob - bicycle - Mark Twain said it is good.

  • Satellite Pro L300-152 and the task bar freezing

    Hello

    The taskbar seems to freeze whenever I use my laptop. I try to click on something like the volume and it freezes, I then gives me the option to restart windows Explorer, close windows Explorer, or waiting for the program to respond. Once it has rebooted the icons for volume and Wi - Fi connection disappear from the lower right corner and are not available through any other means.

    There seems to be no consistency to this incident - it happens when programs are running or not, regardless of how many times I use the laptop either hours or minutes, and there is no delay between the taskbar being insensitive (sometimes it doesn't freeze again, sometimes it freezes just after the restart). I did virus, spyware/adware/mallware scans, clean my laptop, and it had made no difference.

    All I have this problem or knows what could be causing it and how it can be stopped? Any suggestions would be welcome thanks

    Kind regards.

    Hello

    Googling around you will find many forums where people write about this problem of gel. It is obviously related to Microsoft and that there must be a few patches.
    I also found the link to a fix that should help you.
    Visit http://support.microsoft.com/kb/932406/en-us and if this can help you.

    Please let us know if this will help.

  • Signal saturated in a task daqmx without wiring

    Hello

    I installed driver-daqmx on an SMU-8108 controller in order to acquire analog signals of several load cells. The task that I created used to work until I started to use an FPGA card to perform other tasks in the program.

    Now, when I start my program, the output of the load cell is always 10.45... Volts, which means that more of the 10V output possible. There is no drifting but just a signal "saturated". Because I haven't found a bad wire, Earth or something similar, I have no other idea what could cause this signal problem.

    Thanks for your suggestions.

    Hi Henrik

    I use a block of connection of the SCB-68 (R series). The amplifier output signal (see attachment) is connected to the AI + and HAVE pine trees (68 # and #34).

    I added a resistance 100kOhm between HAVE + and I-ground and ground - HAVE and HAVE. It seems to work. Interestingly even resistance 100kOhm between HAVE + and HAVE ground seems to be enough...

    Welcome and thank you very much

  • CDAQ line internal uses as to task DAQmx

    Hello

    I have a cDAQ-9178 and I would send a trigger to two different tasks (DO and HAVE) to be sure that they start at this very moment.

    I want to pull the trigger using the software instead of and the external trigger on PFI lines for example. For example, I would activate when a user a press control on the front panel.

    I tried to use the internal counter of the cDAQ (_ctr0) by producing a pulse on this subject. The problem is that I don't see these online when I'm the trigger of the 2 previously mentioned for task configuration. There are a lot of different line which seems to be possible to take, but I don't know how a trigger on the thesis...

    Help would be appreciated!

    Thank you!

    Is there any installation work you can do before generating a start trigger.  For example, create a task, creating channels, configuration of timing and call back to this subject can take a few hundred milliseconds.  There are intermediate steps, you can take in front-loading from time to time configuration.

    A DAQmx task has a certain number of States.  When you call start on a task, it passes through verified, reserved and committed to started.  So if you're explicitly your task, your call will be faster because your hardware is already configured.  If you had already created the task, created channels, set up the synchronization and committed to the task (via the DAQmx task control interface), the start task could take only 10 ms or more.  These numbers are on the top of my head.  This will not reduce the time it takes to start your task, only a specific stage of the issuance of your trigger for starting the software.

    That said, if you go to the road to counter, you need not to do for your tasks to AI and.  Just make sure you start them before your task to counter.  You could do what I described above for task of yoru meter if you feel he was taking too much time to generate your trigger to start.

    * Edit *.

    I should mention that the delay time that I was talking refers only to the time of when your user requests a trigger to start generating chassis a.  The time of your trigger from start to the first sample clock in your task is essentially nothing - about 12.5 ns or so depending on your configuration.

  • Recovery task DAQmx

    Due to failed hard drive, I need to migrate not exported DAQmx tasks from one computer to another. Because of the same problem with a disk hard I can't open DAQmx and export these tasks - windows-based system is out of service.

    Does anyone know where DAQmx retains its tasks? Should what files I use to store the default tasks?

    I can recreate it on the new computer. I just need to know what they are, what cards and IOs they use.

    Hello arhangel123.

    I think that the information you are looking for is in this knowledge base article:

    4GA9TOQA Knowledge Base: what is the process to reset the MAX Database?

    http://digital.NI.com/public.nsf/allkb/2C7480E856987FFF862573AE005AB0D9

    The last part of the document is written for you to scroll manually delete the database - don't actually.follow the procedure described here, but it does not identify the relevant files/folders which I think is what you are looking for.

    Best regards

Maybe you are looking for

  • I want the password protect the VPN toggles

    IM aiming to put a lock on the VPN code switches as a means of Internet security. So far, using a VPN internet filter was the best method of filtering * sites because the restriction in iOS setting is either (1) too broad - the parameter filters too

  • Qosmio F50 - 108 - Toshiba Flash Cards will not work with Windows 7

    Hello anyone tried to install Windows Seven? I tried.Everything works fine (Wlan, Lan, sound, etc.), but one thing is unable to work on my laptop: Toshiba Flash Cards.I installed the driver, and nothing happened... Any idea to solve this problem? Bec

  • help left my ports of the laptop does not

    Hey guys,. my left side all of my laptop usb ports does not work, but my right side are It happened when I had again to download windows 7 and I checked the internet about this and he said that my bus series universal driver is not downloaded and I d

  • Installation of Windows 7 since the DVD on the new hard drive

    My hard drive failed last week (short DST failure), I went and bought a new hard drive and was able to install it in my laptop with no problems. However, now I can't have to install Windows 7 on my computer since the disks provided with my computer w

  • I'm unable to connect to a live ID which allows me to access my zune of PAID subscription.

    Unable to connect as I'm unable to connect to a live ID that allows me to access my zune of PAID subscription, and microsoft can't stand over these same said subscriptions, I wonder why they can't just to take money from us without giving products.