Too much time in the queue empty in the loop of consumption

I'm working on a VI used to screen analog converters above temperatures from room temperature to 175 C.  I have it set in place with a producer and a consumer loop.  The loop of producer makes all the measures, while consumer loop allows you to write tests that all measures in a spreadsheet file. There are 23 steps taken and recorded every second.  The test is run for about 60 minutes.

Initially, I had trouble with data in the queue being lost when I stopped the VI.  I fixed that by ensuring that the queue was completely empty before you stop the VI.  Now my VI will continue to work long after I pressed the stop button.  I let it run for up to an hour and finally abandoned the operation and still lost a large number of measures on the end of the queue.  From my reading on the forums, it's because of the overload to write to a file of measure.  Opening and closing of the file every second is any slowdown.

I've seen examples of creating a table of measured data and only writing every 100 samples or more.  Can someone help me see how I could implement something like this in my code?  Is there another reason, it takes so long to write all my test data?

Thank you

Matt

You must use the real file i/o functions.  That made the express VI to write files to measure opens the file, writing the data and then close it.  When you do this several times, you get a really slow performance.  If you must open the file before you consumer loop and close it after the loop.  You will then be able to write as much as you want inside the loop.  But now, you need to format the data yourself.

Tags: NI Software

Similar Questions

  • A query that takes too much time with the dates?

    Hello people,
    I'm trying to pull some data using the status date, and for somereason its taking too long to return the data
       and trunc(al.activity_date) = TRUNC (SYSDATE, 'DD') - 1     --If i use this its takes too much time
    
    
      and al.activity_date >= to_date('20101123 000000', 'YYYYMMDD HH24MISS')
       and al.activity_date <= to_date('20101123 235959', 'YYYYMMDD HH24MISS') -- If i use this it returns the data in a second. why is that?
    
    How do i get the previous day without using the hardcoded to_date('20101123 000000', 'YYYYMMDD HH24MISS'), if i need to retrieve it faster??

    It seems that al.activity_date is indexed and is not TRUNC (al.activity_date). Your problem is not with the TRUNC(sysdate,'dd')-1. So use:

    and al.activity_date >= TRUNC(SYSDATE)-1
    and al.activity_date < TRUNC(SYSDATE)
    
  • I removed 3 SP in a continuous effort to 'fix' iexplore.exe to take too much time processor to do everything he does. Now I can't reinstall because of "access denied."

    original title: cannot re - install SP 3

    I removed 3 SP in a continuous effort to 'fix' iexplore.exe to take too much time processor to do everything he does.  Now I can't reinstall because of "access denied."  I have REMOVED all antivirus programs and malware and always get "access denied".  Need help!

    Don B

    Click HERE. Scroll down the page and click on the automated FixIt. Follow the prompts to run it. After that he did try to install the service pack that you downloaded from the source of IT.

  • I have a dell pc n series (Intel core duo) it take too much time starting last I started at 3: 00.

    Original title: problem in multidisciplinary

    I have a dell pc n series (Intel core duo) it take too much time starting last I started at 3 a.m. what will I do?

    you have eliminated the problems of virus/malware?

    have you recently installed on the computer or updated drivers, etc?

    See: http://windows.microsoft.com/en-au/windows/optimize-windows-better-performance#optimize-windows-better-performance=windows-7

  • I signed up for a year of 10 photos per month.  I am connected to adobe. I can't communicate with a real human being. I can't upload a picture to my computer. Mac 10.5.8. desktop computer. It takes too much time.

    I signed up for a year of 10 photos per month.  I am connected to adobe. I can't communicate with a real human being. I can't upload a picture to my computer. Mac 10.5.8. desktop computer. It takes too much time.

    Since this is an open forum, not Adobe support... you must contact Adobe personnel to help

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • Too much transparency on the inactive tabs

    In the latest version of Firefox, I'll have too much transparency on the inactive tabs. It seems to me so badly designed like a bug... What is someone having the same problem?

    There are several ways to get rid of transparency.

  • I want too much now if the Pro Flight Yoke System running on windows xp

    Original title: Pro Flight Yoke System

    Hello

    my flight simulator works fine now
    but now I want too much now if the Pro Flight Yoke System running on windows xp
    If only my knowledge please
    was soon luuk

    Hello

    Pro Flight Yoke System is compatible with Windows 7, Windows Vista and Windows XP.

    For more information visit: http://www.saitek.com/uk/prod/yoke.html

  • Breaking point taking up too much time for each step for every time to Jdeveloper 11.1.1.7

    Hi all

    I use Jdeveloper to ADF application development 11.1.1.7 and I use 64 bit JDK. When I run my application in debug mode, if the program control passes to the location of the breakpoint taking too in time for the next step (F8) a few times because of this I need to restart the server from WL. During this time of progress/loading showing symbol on the screen. I don't know why this is happening... ? Please someone help me on this.

    Vinoth-

    Try closing the Panel of the Structure of the ADF. I noticed a lot of requres JDev struggle to maintain synchronization with the Structure of the ADF. It helps in the design of JSF page and in brakepoints in support beans and other JSF related classes.

    I also had problems with 64 bit JDK on Windows and came back to 32-bit. (do not remember if I had WLS crashes but I know I had a lot of problems)

    Try growing JDev memory and heap WLS.

  • What I do when I get an error message indicating that my ID adobe was allowed too much time

    What I do when I get an error message indicating that my ID adobe was allowed too much time

    Hi Kjsoden,

    I found a thread that might help you: http://forums.adobe.com/thread/821424

    Let me know if this helped.

    Thank you

    Preran

  • Notifier release outside of the loop of consumption

    Hi all

    I use a notifier to a stop button.  My stop button was not stop in one of the cases (1 error to wait on the notice in hand MTTF.vi).  I've highlighted the code and noticed that when I pressed stop, the notifier has been released prior to notifying the consumption loop.  When I published the notifier outside the loop of consumption, my error has disappeared.

    Looks like a simple fix which is awesome, but ine everything I've read or seen so far, that the release was out of the loop of producer.  Is there a drawback to doing it this way?

    A more common way to deal with this should treat a mistake to wait on notice as a stop condition, because the error indicates that the notifier has been released, and the only way that can happen is that the loop of the producer ended.

    The way you described, you could get in a situation where the producer loop stops but the consumer does not and since the Notifier is not released until the consumer left, the loop of the consumer will never stop because he always waits for a notification that will never come (but the declarant is still valid, if it continues to wait).

  • Open with options: I want to add a new application to the list right click on file-&gt; open with and rearrange the list so my search app is first. I know that I can use open with-&gt; other and select any application, but it takes too much time since I u

    I want to add a new application to the list right click on file-> open with

    and also reorder the list so my search app is first / top of the list.

    I know that I can use open with-> other and select any application, but it takes too long I should use my intended application in this way several times a day.

    Basically, I'm looking for a configurable way configure open with, something more to send to Windows.

    Thank you very much for all the advice offered.

    The operating system, not you, not control that open with the menu command.

  • Too much Mouse Move event queues events

    I have a VI that I want to be able to move the scroll bar and then update the graphic cursor position corresponding as I do on different orders.  I meet a problem after removal of the scroll bar on a thumb, where he seems to be pulled and give too much mouse move events and it failures of the program.  Any ideas on how to avoid this an average mouse move samples of the event or something?

    Without looking at your code (do not have LV12 on this machine) I'll take a wild guess that you have locked the façade on the mouse move event.  Try to uncheck it and see if that helps.  Phase II should be faking a loss event queue, but usually, I don't have to do unless I do something really slow in response to an event.

  • I can't connect to my e-mail account. I tried too many times with the wrong password and when I try to reset the account that it won't let me.

    I can't connect to my email. someone tried too many times with an incorrect password. When I try to reset my email it doesn't let me, someones tried too many times also. I know that my question of password and security. What can I do?

    original title: unable to connect to my email.

    Hello

    Answers is a peer group supported and unfortunately has no real influence on Hotmail.

    HotMail has its own Forums, so you can ask your questions there.

    Windows Live Solution Center - HotMail - HotMail Forums Solutions
    http://windowslivehelp.com/

    Hotmail - Forums
    http://windowslivehelp.com/forums.aspx?ProductID=1

    Hotmail - Solutions
    http://windowslivehelp.com/solutions.aspx?ProductID=1

    How to contact Windows Live Hotmail Support
    http://email.about.com/od/hotmailtips/Qt/et_hotmail_supp.htm

    Windows Live Hotmail Top issues and Support information
    http://support.Microsoft.com/kb/316659/en-us

    Compromised account - access unauthorized account - how to recover your account
    http://windowslivehelp.com/solution.aspx?SolutionID=6ea0c7b3-1473-4176-b03f-145b951dcb41

    Hotmail hacked? Take these steps
    http://blogs.msdn.com/b/securitytipstalk/archive/2010/07/07/Hotmail-hacked-take-these-steps.aspx

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • vCenter takes too much time to respond after the withdrawal of DC?

    It is a weird one and might or might not be related, but I need help.

    Yesterday, I finally had the time to blow up one of my old DCs (leaving other 3 x all global catalogs).   When I tried to take it off I hit the problem where it says

    The operation failed because

    Active Directory domain services could not transfer the remaining data in the directory DC = ForestDnsZone partition, etc...


    Research in this and following the guide here I could change it to a correct domain controller, and then remove all good scheduled class.  Form of share a brief replication error I think it was changes it all seems good.  dcdiags and repadmin checks show everything goes OK then I thought any good.

    But then, a few hours later, I went to connect to vCenter to do something else and I get

    "The server xxxxx was taking too long to respond. (The order has expired because the remote server taking too long to respond.)


    Now, I had not been in vCenter that day but it was fine the day before so I'm not 100% sure if its related or not.  In any case, last night my backups of Veeam while working, took twice as long, but all long worked OK, if something looks upward.   My first thought was SSO was pointing to the deleted domain controller, it was not that I checked this and it shouldn't be anyway that one I removed was only a temp DC anyway.  So this morning, I restarted the VM vCenter and it restarts OK, services start but I cannot yet connect his too long to answer said.  Any ideas?  Is it related to the removal of DC?  Does not see why it would be with the exception of SSO who seems to find but chronology going home.

    What's weird, is that if I try the web client on that a few times, he sits authentication in a long time and then finally allows me in and everything seems fine.  BUT, if say I go to the permissions section and try and add a my domain account, it is right there for a solid 3-5 minutes before completing all of my usernames, so it's out of AD...   You really don't know why he would do this because when I installed vCenter 4 years it's just 2 x DCs, this one I removed yesterday only installed 6-8 months when I was going to upgrade the domain controllers, but never got round to it, so it's just kind of sitting there waiting but I is no longer necessary so he decided to remove.

    For reference, my domain name has 2 x 2003 DCs (DNS, GC etc. which are preferred and secondary), 1 x new 2008 R2 DC, which was OK in a few weeks and the 2008 deleted domain controller.  Also have Exchange 2003 still (going) but touch wood it seems OK as well, all correct DCs and GCs statement.

    vCenter is 5.1 with 3 x 5.1 hosts also running.  vCenter is running on a 2003 R2 x 64 VM with SQL running on the same virtual computer.  DB is about 8 GB and log is 1.5 GB.

    FWIW, I think I found the problem.

    SSO was the basis of my domain name, that she always, but recently our office parent put in place a program called quest address book synchronization, which meant our small estate of 200 users had suddenly and extra few thousands of added entries.  Don't know no why he decided now is the time to break, but change the SSO to watch a smaller ORGANIZATIONAL unit and not the base for the domain DN solved my problem of access.

  • Query took too much time when adding new column to the table and the index set on this

    I added a new column to the table that contains thousands of records. and created the composite index with three columns (those newly added + two existing column)

    for the specifics. TBL table there are two columns col1, col2

    I added the new column col3 to TBL and created composit index (col1, col2, col3).

    Now for all the records in col3 is NULL. When I choose on this table, it takes too long...

    Any idea what my I do bad., I have check the query plan, it is using the index

    It is solved using collection of statistics using the

    DBMS_STATS. GATHER_TABLE_STATS

    @Top.Gun thanks for your review...

Maybe you are looking for