Daqmx clear taks freeze

Hello,
I am facing a problem with clearing daqmx task, mentioned part of my vi in attachment.
LabView2011, Daqmx 14.0 - what happens is, that after the loop is finished because of any stoping signal, sequence freezes, and it takes like 5-10 seconds for it to clear the task and move to another stack.
Any ideas what might be the cause and how to fix it? The same vi runs on another PC and works fine. 
Greetings
Attachments:
error.png ‏66 KB

I am not able to provide all of those information at the moment, but for sure DAQ hardware is the same, CPU and amount of RAM are the same or only faster/more, DAQmx version is 14.0 (older station probably has 9.7.5), both LabView2011.
Generaly idea was to copy all possible automation components and software, so differences will be rather insignificant and in advantage for the new station, where the problem occurs (like for example the same PC station wasn't any more avaiable, so there is similar model from the same producer). For sure I installed up to date DAQmx software.
Back to the code quality, I am aware that it is horrible, but as I mentioned before, I am not the author and I would love to prepare it all from the begining, but unfortunately there's no time - I just hope that my another LabView project will be a completely new solution

Similar Messages

  • Stand-Alone application with LabView 7.0 getting error can't find DAQmx clear task.vi

    I have attempted 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 "can't find DAQmx clear task.vi"
    the other PC has Labview 7.0 and DAQmx 8.1 also.
    I believe my problem is in the source tab where you are supposed to add support and dynamic vi's I have search the forums and Ni's data base and have not found a solution.
    Solved!
    Go to Solution.

    Hi LabTech09,
    When you run the executable on the other computer is when you get this error?  Do you have the exact same versions of LabVIEW and DAQmx on both computers?  Does the dialog allow you to navigate to the DAQmx clear task.vi?  If so, you can find these VIs in C:\Program Files\National Instruments\LabVIEW 7.0\vi.lib\DAQmx\configure\task.llb.  Does the executable work on the development machine (the machine it was compiled on)?
    Regards,
    Jim Schwartz

  • Does performing a DAQmx Clear Task on a PCI-4474 card change the state of the IEPE current?

    Does performing a DAQmx Clear Task on a PCI-4474
    card change the state
    of the IEPE current?  If the IEPE current was on, does it remain
    on even though the task as been cleared?  If the IEPE current
    remains on, then I assume I don't have to wait for the IEPE current to
    settle if I make a new Task and start a new measurement--is this
    correct?
    Thank you in advance for your help.
    Ken

    DAQmx Clear Task should not turn off IEPE current. You will have to explicity set IEPE current to On (for that channel) whenever you use any of the AI channels on your 4474 in order to keep the IEPE On because the IEPE for all channels in the AI subsystem will be set to the default state (Off) unless explicitly configured. That said, if you clear a task that had IEPE On, and then initialize a new task and set IEPE On, the IEPE will be uninterrupted and there should be no need to wait for the IEPE to settle. Other components of your measurement system might need time to settle if their state was changed between tasks (DUT, sensor, AC coupling, etc.)
    Doug
    NI Sound and Vibration

  • Daqmx clear error

    hi
    i installing my exe aplication on pc
    i try to execute the exe file and recieve
    daqmx clear tes.vi   not found error 21
    i have succed to activate my exe file on other computers is there other things i can do i havent found the vi
    in other places

    When deploying an application make sure that the LabVIEW run-time
    engine and the device drivers are installed on the target
    computer.  Since you have built an installer for your application,
    the run-time engine should install automatically, however the DAQ
    drivers will not.  Try installing the same version of the DAQ
    drivers on your target as are installed on the development computer.
    Andy F.
    Applications Engineer
    National Instruments
    National Instruments

  • My new I Phone 6 will not clearly take a photo of checks I am trying to deposit with my mobile app. I give the same check to my husband and he successfully takes a photo with his Droid. Embarrassing. Is there some setting that I have not enabled?

    I am attempting to use my banking mobile device. Each time I take a photo of a check for deposit, it says it cannot read it. I have been successful a few times, but only after numerous attempts. I give the same check to my husband and, using his Droid phone, he takes the photo and it is accepted the first time. I use a dark background, have a steady hand, and include all of the check in the frame as directed. It's so embarrassing. Is there some adjustment I need to make?
    I love the camera on this phone. It is sharp and the color is great. I don't understand why this application is so difficult. Anyone else have this problem? There is no problem with my banks' mobile banking. If there was, my husband would have a problem also. Thanks!

    Tap on the screen to get the camera to autofocus.  If the image looks clear to you, but the app isn't accepting it, it's a problem with the app.  Delete it and reinstall it.  If the issue persists, contact the app developer.

  • DAQmx multi taks meassurement

    Refering to the LV 7.0 example ContAcq&Graph Votage Ext-clk Dig Start(file attached), in the generated waveform array the �dt� value does not change if you change the frequency in the Dig Start signal. The value of dt seems to be rather a random value.
    How can I get, additionally to the AI-voltages (i.e. at the same time) the real dt of my signal?
    Can my DAQ device 6034E read both signals at the same time (two tasks)?
    Thanks a lot.
    Attachments:
    Cont_Acq&Graph_Voltage-Ext_Clk-Dig_Start_1.vi ‏109 KB

    Hello Grivilla,
    you´re right,
    the value of the dt is sometimes incorrect if you use external sample clock.
    In your example you set the maximum expected sample rate you want to use to the configure sample clock vi (sample rate).
    If this value matches your real sample clock, your dt in the waveform is right.
    On the other hand, if you set this sample rate to 1 kHz and your connected signal have only 995 Hz, you´ll get an incorrect dt value in the waveform (0,001 instead of 1/995...).
    1.) Make sure that the sample rate you set matches the real sample clock you connect external.
    2.) Measure the frequency of your sample clock and give this value (1/sample clock) as dt to your waveform.
    For a simple example of it, use the DAQ assistant for creating a "measure F
    requency" task.
    You can run the AI and the frequency measurement in parallel.
    Regards
    Stefan K
    NI Germany
    SRQ 196177

  • Data collection was switched from an AI Config task writing to an hsdl file to synchronized DAQmx tasks logging to TDMS files. Why are different readings produced for the same test?

    A software application was developed to collect and process readings from capacitance sensors and a tachometer in a running spin rig. The sensors were connected to an Aerogate Model HP-04 H1 Band Preamp connected to an NI PXI-6115. The sensors were read using AI Config and AI Start VIs. The data was saved to a file using hsdlConfig and hsdlFileWriter VIs. In order to add the capability of collecting synchronized data from two Eddy Current Position sensors in addition to the existing sensors, which will be connected to a BNC-2144 connected to an NI PXI-4495, the AI and HSDL VIs were replaced with DAQmx VIs logging to TDMS. When running identical tests, the new file format (TDMS) produces reads that are higher and inconsistent with the readings from the older file format (HSDL).
    The main VIs are SpinLab 2.4 and SpinLab 3.8 in folders "SpinLab old format" and "Spinlab 3.8" respectfully. SpinLab 3.8 requires the Sound and Vibration suite to run correctly, but it is used after the part that is causing the problem. The problem is occuring during data collection in the Logger segment of code or during processing in the Reader/Converter segment of code. I could send the readings from the identical tests if they would be helpful, but the data takes up approximately 500 MB.
    Attachments:
    SpinLab 3.8.zip ‏1509 KB
    SpinLab 2.4.zip ‏3753 KB
    SpinLab Screenshots.doc ‏795 KB

    First of all, how different is the data?  You say that the reads are higher and inconsistent.  How much higher?  Is every point inconsistent, or is it just parts of your file?  If it's just in parts of the file, does there seem to be a consistent pattern as to when the data is different?
    Secondly, here are a couple things to try:
    Currently, you are not calling DAQmx Stop Task outside of the loop; you're just calling DAQmx Clear Task.  This means that if there were any errors that occured in the logging thread, you might not be getting them (as DAQmx Clear Task clears outstanding errors within the task).  Add a DAQmx Stop Task before DAQmx Clear Task to make sure that you're not missing an error.
    Try "Log and Read" mode.  "Log and Read" is probably going to be fast enough for your application (as it's pretty fast), so you might just try it and see if you get any different result.  All that you would need to do is change the enum to "Log and Read", then add a DAQmx Read in the loop (you can just use Raw format since you don't care about the output).  I'd recommend that you read in even multiples of the sector size (normally 512) for optimal performance.  For example, your rate is 1MHz, perhaps read in sizes of 122880 samples per channel (something like 1/8 of the buffer size rounded down to the nearest multiple of 4096).  Note: This is a troubleshooting step to try and narrow down the problem.
    Finally, how confident are you in the results from the previous HSDL test?  Which readings make more sense?  I look forward to hearing more detail about how the data is inconsistent (all data, how different, any patterns).  As well, I'll be looking forward to hearing the result of test #2 above.
    Thanks,
    Andy McRorie
    NI R&D

  • How do I take A/D samples on a falling edge of pulse Train using PCI 6024E card?

    Sampling using external triggers for A/D
    Attachments:
    DAQ_appln.doc ‏70 KB

    Hello MWallace,
    Is it triggering properly the first time? Since you have the timing VI outside of the while loop, it should only read in 4000 samples total, not 4000 each time you hit start. It is probably just reading the same data in the PC Buffer over and over, not getting new data every time. To prevent this, pull the timing VI into the while loop and clear the task every time (DAQmx Clear Task.vi).
    If it is not triggering even the first time, take a closer look at signal on the PFI line. Is it actually starting at 5 V and going down to 0 V? Instead of using a PFI line, use the same setup on a counter source line. Open a test panel in the Measurement and Automation Explorer. On the Counter I/O tab change the mode to edge counting and see if it detects the falling edge.
    Please let me know if you have any questions. Have a great day!
    Sincerely,
    Marni S.

  • IMovie to iDVD to 97 min Project=FREEZE

    I hope someone can help:
    According to my Project Info, the "Duration" is 97:26, Video Mode is NTSC, 16:9, and "Best Quality." The project gets off to a roaring start. No Problems.
    Then when it hits the "Audio Encoding" portion, iDVD stops responding and FREEZES. HELP!!! I've tried this three times, and I've recreated the project twice.

    Jamie, I have always enterpreted Force Quit as asking me whether an application is not responding, and do I therefore want to quit it. I say this because, having quitted the application I accused of not responding, I am then given a list within Force Quit of all other open applications in case I want to quit them as well.
    Have you tried leaving iDVD to get on with it for a couple of hours, just to see if it actually ever completes the job of audio encoding?
    What I do, when I get to the burn stage, be it as disk image or actual burning of a DVD, is quit all other application I had open, and just leave it to get on with it - like I said, overnight if it is a longish project. I have so far made around 35 DVDs of old (going back up to 20+ years) family tapes from either VHS, or the original analogue camera tapes. I generally limit these to 90 minutes or so after re-editing, cleaning up, adding music or whatever, in iMovie, I then save the project (for probably the 25th time) and close iMovie, then open iDVD, import the iMovie after I have decided on what theme I am using, made sure that the chapters work, saved the iDVD project and then set it to save as a disk image which, after a few tweaks in myDVDedit, are sent off to Toast for burning. Each time (until I decided to go to bed and leave the iMac to deal with it) I was amazed at how long the audio rendering took - easily as long as the video rendering.
    Now, video rendering taking ages I can understand: 90 minutes of video @ 25 frames per second (PAL) is some 8,000,000 images (frames), each of which is individually 'rendered' (coded) by the CPU. You can forgive it for taking 2-3 hours!
    Quite how audio is 'rendered' passeth all understanding (by me) but it clearly takes almost as long. An interesting experiment would be to make a test movie of exactly 60 minutes in length and not importing the entire sound track except for, say ten minutes, and then see exactly how long that took to render. We would then have some kind of yardstick of how long each project might take to complete!

  • 6500 Classic Menu Item Freeze

    Hi
    I cannot change the ring tone on my 6500 Classic because the 'Personalise' option under each Profile choice does not work and causes the phone to freeze. This also happens with the 'Groups' option under Contacts. The only way to clear the freeze is to press the red on/off button, which takes me back to the welcome screen
    Does anyone else have this problem?
    These are the fixes I have tried so far:
    * Switch off and on
    * Remove battery and sim, then turn on
    * Check and update firmware/software to v3.21 (latest)
    Regards
    Paul

    You could try "Reset to Factory Defaults" command first to normalize your phone settings.
    Do you use any passwords/security codes on your phone or memory card? Try removing them first, restarting and then attempt to customize again.
    Problem could also be caused by referenced objects (i.e. tones) that are corrupt or that no longer exist in the expected location (i.e. folder on memory card). If you have a card reader, try running a "Check Disk" command on your memory card by using a computer to fix any data problems that may be present on the SD media itself. =)

  • Analoge input not constant/ NI 6221/ DAQmx

    Dear Sir
    I use DAQmx (labview7.1).
    I would like to use NI6221 to read 32 analoge inputs by using 4 input channels (ai0-ai3). 
    Each input will read 8 signals by using digital output to select.
    I try to look my result by giving constant input voltage to A/D (ai0-ai3).I use input terminal RSE, and NRSE.
    My problems are
    (1) The reading voltage are changing (some channel is increased and some channel is decreased).
    (2) The reading voltage differ from the given value.
    How should I solve these problems?
    Best regards,
    Thongchai

    Thongchai,
    In reviewing your code, I noticed that you are setting up and clearing your DAQmx tasks with every iteration of the loop, this could be causing you some problems in a couple of ways.  First, setting up and clearing the tasks takes some time, so you could be introducing delay and getting the wrong measured values as a result of this.  Second, when you clear the digital output task in the loop, the lines will return to a default state, which will likely not be the actual values you want -- this could be causing you to measure the wrong channels.  The best practice for using DAQmx tasks inside loops is to perform the setup (DAQmx Create Channel, DAQmx Timing, and DAQmx Start) and the DAQmx Clear outside the loop -- the only functions that should be inside the loop are the DAQmx Read and DAQmx Write.  Along with this, you will need to make sure you set up the timing for continuous sampling instead of finite.  Refer to the LabVIEW example finder and look at the DAQmx examples for continuous acquisition to learn more about this.
    Next, you will want to use the Measurement and Automation Explorer (MAX) to configure a task and run a test panel on the channels using a known voltage source to verify that your hardware is working properly.  If the values are measuring properly there, then the source of the error may be within the code.
    As far as your measurements themselves, it looks like you are trying to do strain measurements of some sort, these typically can be measured more accurately using differential measurements instead of RSE or NRSE.  I will include a link to a page about the differences between the measurement types and noise considerations for analog measurements.  I will also attach some references to a few documents about strain measurement methods and principles for you review.
    Finally, I would recommend looking into an alternative for this system -- either a multifunction DAQ board with more analog input capability (like a PCI-6229, 32 analog inputs), or if you are wanting more accurate strain measurements I would recommend something in our SCXI line for the best strain measurement results.
    Field Wiring Considerations for Analog Measurements:
    http://zone.ni.com/devzone/conceptd.nsf/webmain/01f147e156a1be15862568650057df15
    Strain Measurement References:
    http://zone.ni.com/devzone/conceptd.nsf/webmain/04bd243edda22dd386256d75007900d5
    http://zone.ni.com/devzone/conceptd.nsf/webmain/C18F65CE920C115086256D720058325B
    http://zone.ni.com/devzone/conceptd.nsf/webmain/2d5849b3108e416b86256da2007a8e7b
    Regards,
    Erik Fogleman
    Applications Engineer

  • How to simutaneously use 2 PCI cards, one with traditional DAQ, the other with DAQmx?

    Hi,
    I am currently trying to debug a system that used to work.. but sadly isnt anymore
    A single computer contains 2 PCI cards (6110 & 6036E). The 6110 card is controlled by a fairly old software, programmed in labview, and hence, using Traditional NI-DAQ. The 6036e card is controlled by a more recent soft, programmed in LV as well but using DAQmx.
    the AI/AO of the 6110 card is only momentarily used (20 sec consecutively, every minute) while the 6036E card is continuously receiving and sending data on its AI/AO.
    Now the problem: the program that control the 6036E card freezes every time that the old prog access the 6110 card.. and then it works again perfectly until the next time that the 6110 card is used.
    So my question: how can I make those 2 cards work simultaneously?
    I dont think that it is because of the software nor because of the computer lack of memory/CPU if it used to work in the past. It might be about a wrong configuration of cards in the MAX but I couldnt find anything wrong there (no problem when accessing AI/AO of both cards through "test panel")
    Thank you very much for you help.

    That's what bugs me. The only thing that those 2 cards share is an AO of the 6110 connected to an AI of the 6036.
    For the rest, nothing is common. The 1st program only deal with device1, while the 2nd prog only access dev2. There shouldnt be any problem and everything is working fine separately. Hence, why I was wondering if the traditional daq and daqmx might conflict on a same computer.
    I just cant find out why the 2nd program controling the daqmx card just freeze everytime the 1st program access the traditional card. It actually doesnt freeze completly but becomes soooo slow, with about only 2 iterations of the main while loop during those 15-20 sec (instead of the normal 3-4000 iterations during such a period).
    The computer specs are a 2.2ghz proc for 1G of ram and running XP, so it should be ok.. even though the computer does slow a bit down when the 1st prog access the traditional card.

  • Copy and Clear in ASO

    I'm very used to doing copy and clear in BSO calc script. When it comes to ASO, I'm not sure where and how I can do that? Any help would be appreciated. Thank you!

    There is no simple copy - you can either reload from source pointing at the new slice you want to copy to (easiest and probably most efficient), extract and reload (modifying the extract or using a load rule to point to the new slice), or in 11.1.2 onwards use ASO procedural calc.
    For clearing, take a look at the 'clear data in region' clause in the 'alter database...' MaxL command: http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/maxl_altdb_as.html

  • Reference document no and automatic clearing

    Dear All,
    The desired clearing variant of my client is Current invoice + FIFO
    So lets say i have 3 open invoices in customers account as follows :
    Due date 22 June 2010 Amount 1000
    Due date 22 July 2010 Amount 2000
    Due date 22 August 2010 Amount 1500
    Then a payment of 2000 should clear the 22 Aug invoice by 1500 and 500 of the 22 June invoice
    To achieve this My client is invoicing customers with the billing document number as the 'reference document' no. When we recieve payments(from check lot) the payments have the reference document no of the invoice against which the payment was made(which is usually the current invoice). When payments are processed   by payment lot, it clears the current invoice since it finds a matching ref doc. However, it posts a credit open for the remaining amount(500 in this case) since the ref doc of payment is different from the ref doc of any open item left. Can we prevent this? Can the system ignore the ref doc and clear items as per the clearing variant?
    One solution was to use automatic clearing to clear remaining amount. However, one big problem with automatic clearing is that if you group open items by any characteristic then clearing variant treats the credit open as a separate group. So it makes different groups of credit open and of open invoices and since it cant find both of these in any single group therefore no clearing takes place.
    If this question seems too complicated then please feel free to ask details. Your help would be highly appreciated
    Regards,
    Adil Kapadia

    Dear evolderen and Amlan,
    Thanks for your reponses.
    Now the problem is that if i put reference number in the payment then payment lot would only select those open item for clearing which have the same ref doc as the payment. So what will happen is that it will only clear the current invoice. It DOES NOT go to step 2 of clearing variant. It simply leaves a credit open.
    What i would like is that the clearing variant goes to step 2 and clears items on a due date basis even if the ref doc of these open invoices do not match the ref doc of the payment
    I hope i conveyed the problem properly
    Regards,
    Adil Kapadia

  • F13E GRIR clearing

    Hi ,
    Can anybody describe me the main difference between T code f.13 (automatic clearing without clearing currency) and F13E (automatic clearing with clearing currency).
    What is clearing currecy?
    Is it that if GR and IR in different currency you need to use this Tcode Fe instead of F13.
    All helpful replies will be awarded with points.
    Thanks,
    Meena Raghu

    Hi,
    F.13 and F13E are the same, both are report SAPF124. But interally, the same report is started using different variants> SAP&F124 (F.13) and SAP&F124E (F13E) .
    In F.13, 3 fields are just hidden:
    Clearing Currency (ZWAERS)
    Clearing curr. from assignment (XSOBEBVK)
    Expiring Currencies (XAUSLW)
    If ZWAERS is filled in, neither XSOBEBVK nor XAUSLW may be ticked. The F1 helps on those fields tell almost everything you need.
    Regarding your question, clearing GR/IR when items are in different currency. No, you do not need to use F13E, if the local currency amounts in the GR/R items are balancing to zero. (In most cases, they will)
    When using F.13, the clearing currency is always the company code currency. (Clearing currency = document currency in the clearing doc to be created, all amounts to be cleared are converted to the clearing currency for the clearing comparison).
    However, in F.13, the original document currency (which were different in your case) are not considered at all. The system is looking only at the local currency amounts in the open items. If they are balancing to zero (and of coure the clearing criteria, like assignment field, are met), clearing takes place.
    In F13E, you can specify a clearing currency. (If you do not, F13E is the same as F.13).  The currency you specify here becomes the document currency of the clearing documents to be created. More important, all open items are converted to this currency and the converted amounts are matched. If the match, you can clear, if not, you cannot.      However, even if they do, it could be that the original local currency amounts won!t match. This would lead to automatic FX difference postings (while the clearing is also done of course). This is a very big difference between F.13 and F13E: in F13E you may have FX differences posted, which is impossible in F.13
    Pls. let me know if you have further questions on this, otherwise close the topic.
    Hope that helps, points welcome
    Csaba

Maybe you are looking for

  • Problem sending a standard landscape SSRS report to a printer

    I have successfully used the Printer Delivery Extension sample (_//msdn.microsoft.com/en-us/library/ms252091(v=vs.100).aspx) in a vb.net  winforms application to send a 28” X 17” rdlc report to a specialty printer. However, I cannot seem to successfu

  • Audio not in Sync with Video in FCP

    Hi People, i'm new to this, hoping to find some support. I have Final Cut Studio 2, im doing an Apple Pro Training series book - 'Final Cut Pro-Beyond the Basics' and im having a problem of the audio not syncing with the video. If i simply play the s

  • Files dont sort correctly in folders

    After an archival re-intallation of OSX5.8, files dont sort correctly in folders; if I delete/paste a folder to an external hard-drive, they sort correctly. But when transferred back to the internal hard-drive in the same way, they once again sort in

  • Why can't image appear properly on Photoshop CS4?

    Why does this happen? Is there something wrong with my computer? Please help! This is what the original image looks like: But when opened with Photoshop, it looks like this:

  • Timer differences across different computers

    I have constructed a timer: Timer timer = new Timer(1,this);and it works fine on most computers I have tried it on (they were all XP), but I am working on it on a new computer (vista 64-bit) and the timer goes way too fast so that i had to make the s