Program hangs after 25 events

I'm running on an issue where my program crashes after 25 events were recorded from a cluster. I created a cluster 32 Boolean controls, and when a control is pressed it triggers an event in my structure of the event. It doesn't matter which of the 32 controls I click, after exactly 25 button presses, that the program crashes. Does anyone have ideas, which could be the cause?

It would really help if you could do a simplified demonstration.

In the zone configuration of the event, is there something interesting (front of the lock, limit maximum instances, etc.)

You set a maximum queue size?

Tags: NI Software

Similar Questions

  • code error-50103. Program hangs after the departure of task, readout and task of clearing.

    I'm having trouble with this unique analogue read. The situation is the following. I have a thread that executes a task. The task runs for continuous, but sometimes based on acquisition

    a push of button in the GUI I need one analog reading from a single channel. I firstly to stop the first task, and then create the next task, read and erase and stop it.

    This function is also called via a timer to get a temperature and a resistivity of reading. The timer calls are interested in the temperature and the pressure of the button wants the resistivity.

    Its the same function but can be called at two different instances. I put in a thread variable secure to ensure that he expects to be each other before reading again. It crashes right away,

    It blocks randomely at about the 6th or 7th instance of analog read.

    My first guess after reading the forum LABVIEW on ni.com, is that he doesn't like when I start and disable the task over and over again. Here is the fucntion is called with a handshake goes, but the

    key to watch is the analog read. The handshake stops the task running in the thread momentarily to analog playback and then it starts again.

    I use v9.0 CVI. I use the USB DAQ 6259. The "BOLD" area below is where the error occurs.

    int daq6259ReadCuvette(float64 data[2])
    {
    Int32 daqError = 0;    DAQmx error code
    errorMsg tank [ERRORMSGSIZE]; error message
    int start = 0;     start time
    passed int = 0;    elapsed time
    float64 * cuvetteData;     data
    Seek_set Int32 = 0;    number of analog readings
    errorCluster localError = {0}; structure of local error to store error information
    allocate memory for the data of the Bowl
    If ((cuvetteData = (float64*) malloc (NUMCUVCHANNELS * sizeof (float64))) == NULL)
    memory allocation of {failed
    errorEnqueue (1, -1, __LINE__, __FILE__, "Bowl DAQ task Memory Allocation Failed");
    Returns - 1;
    }

    cuvetteReady (1); define the ready indicator = 1 to stop the task of daq1 in daq1 wire
    Start = clock(); set a start time
     
    While (cuvetteReady (2)) //poll for the tank handles or timeout if the wait is > 5000 ms
    {
    If (gMpvsError)
    Returns - 1;
    Sleep (100);     sleep 1ms to record usage of the processor
    WAIT 1 DAQ LOOP UNTIL SYSTEM SHUTDOWN
    elapsed = clock() - start;
    If (time > = 5000) //check for 5 seconds timeout during the stoppage of work daq1
    {
    errorEnqueue (1, -1, __FILE__, __LINE__, "cannot stop the device DAQ, Bowl was unread");
    cuvetteReady (1);  the ready value = 1 signal to restart the task daq1 in daq1 wire
    Returns - 1;    Returns - 1 as a standard error code
    }
    }
     
     TAKE THE READING OF THE BOWL!
    If ((daqError = DAQmxCreateTask("",&gCuvetteTask)) == 0) //create Bowl read task
    {//create voltage channel
    If ((daqError = DAQmxCreateAIVoltageChan (gCuvetteTask, cuvChan,"", DAQmx_Val_RSE,)))
    (MINVOLT, MAXVOLT, DAQmx_Val_Volts, NULL)) == 0)
    {//DAQmx analog read
    If ((daqError = DAQmxReadAnalogF64 (gCuvetteTask, 1, 10, DAQmx_Val_GroupByScanNumber,)))
    cuvetteData, 1 * NUMCUVCHANNELS, & Seek_set, NULL)) == 0)
    {
    If ((daqError = stop6259DaqTask (& gCuvetteTask))! = 0)
    {
    DAQmxGetErrorString (daqError, errorMsg, 256);
    errorEnqueue (2, daqError, __LINE__, __FILE__, errorMsg);
    }
    If ((daqError = DAQmxClearTask (gCuvetteTask))! = 0)
    {
    DAQmxGetErrorString (daqError, errorMsg, 256);
    errorEnqueue (2, daqError, __LINE__, __FILE__, errorMsg);
    }
    }
    }
    }
    the ready value = 1 signal to restart the task daq1 in daq1 wire. He will leave the while loop
    in threadManagement waiting for the task of the toilet read of the Cup.
    cuvetteReady (1);
     
    If (daqError! = 0) //check DAQmx error
    {
    DAQmxGetErrorString(daqError,errorMsg,256);
    errorEnqueue(1,daqError,__LINE__,__FILE__,errorMsg);
    error return;
    }
     
    If data (Seek_set > 0) //set VAT values read
    {
    Data [0] = cuvetteData [0];   value of resistivity
    data [1] = cuvetteData [1];   the temperature value
    }

    return 0;        No finished errors
    }

    He was crashing at the same point over and over again. Essentially, in order to reproduce this scenario, you have a thread that is running with a task that runs continuously, so you want to stop and

    start a new task with a single read analogue.

    Could you go through this list of 7 possible causes (of the knowledge base) and see if any of those who are causing it?

  • HP Pavilion DV6-2106EA hangs after the insertion of son wired CAT5 (internet)

    HP Pavilion DV6-2106EA hangs after when inserting the cable wires CAT5 for wifi internet works fine

    or wireless works fine. Need help

    Hello

    Unplug your ethernet category 5 cable.

    Download the LAN driver from the link below and save it to your desktop.

    FTP://ftp.HP.com/pub/SoftPaq/sp46501-47000/sp46504.exe

    Then, in the Menu start, open the all programs, open accessories, right-click on command prompt and select "run as Administrator".  In at the prompt, type the following command and press ENTER.
     
    sfc/scannow               (Note that there is a space between sfc and /)
     
    Let the entire process, then the output type and press ENTER.

    Now, right click on the installer you downloaded and select "Run as Administrator" to launch the installation.  When finished, restart the computer and try to connect the cable again.

    Kind regards

    DP - K

  • Acrobat Pro hangs after 5 seconds

    Hello!

    I have not found an answer in the forum. So I hope you can help me.

    My new installation of Acrobat Pro - installed via the CC Application Manager - hangs after 5 or more seconds open Adobe Application Manager for 2 seconds. No difference when just openeing the application or any pdf file. There is no error message.

    Before the installation, I used a CS5.5 Design Premium trial for a few days. I uninstalled before installing the CS6 (cloud Creative). Before that, I had CS Design Standard 5.5 running without any problem for about 8 months.

    All other Applications work correctly.

    I use Adobe CS6 on a Mac under Lion with the latest updates (10.7.4). There is (not yet) any special fonts.

    IST has something to do with an update to Acrobat problems?

    Thank you very much for your help!

    Timo

    It can, but it is always difficult to ensure with the information currently available.  To give you the best opportunity for a successful installation, I recommend the following:

    1. Delete all Adobe Creative Software using the uninstaller programs located in Applications/Utilities/Adobe Installers
    2. Run the tool cleaner of CS - CS cleanup for installation problems tool | CCM, CS6, CS5.5, CS5, CS4, CS3 - http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html
    3. Restart in a Root user in safe secure account - let me know if you need more information for this and I can locate some Apple Web site links
    4. Reinstall Adobe Acrobat

    Some of these steps may certainly not be needed as the user root and boot.  But fill these steps will give you the highest probability of successful your installation.

  • Anyone else having programs crash after installation of Sierra?

    I just installed Sierra on an iMac mid-2012. A lot of programs crash after installing Sierra, of Apple's native applications. Anyone else having similar problems? All possible solutions?

    Thank you

    Hi guitarno,

    Thanks for the upgrade of your iMac to macOS Sierra! I understand that your Mac works more slowly as it did before the upgrade. You can try to start up your Mac in Mode without failure.

    What is safe mode?

    Safe mode (sometimes called secure boot) is a way to start up your Mac so that it performs certain checks and prevents certain software from loading automatically or opening. From your Mac in safe mode does the following:
    Check your startup disk and attempts to fix problems if necessary directory
    Loads needed kernel extensions only
    Prevents elements start and the login items open automatically
    Disables the user installed fonts
    Delete font caches, hiding the kernel and other files of the system cache
    Together, these changes can help resolve or isolate issues related to your startup disk.

    Try safe mode if your Mac does not end commissioning

    After successfully started upward in safe mode, check to see if you have any login or startup items. Here are the apps that run as soon as you turn on your Mac and continue to run in the background that can slow down the performance of your Mac.

    macOS Sierra: If you think you have incompatible connection points

    You can also check that your Mac has enough disk space for the smooth Sierra BONES. Under macOS Sierra, it's easier than ever to free disk space! Take a look at this link. Information System for Mac: optimization of the storage on your Mac

    Once these tasks are completed, restart your Mac normally and then test the performance. I'm sure you'll see a difference. Please use the Apple Support communities to post your question.

    Good day.

  • MBP running El Capitan hangs after login

    Today, my 2011 15 to the Macbook pro mid hangs after login to the admin account. The status bar does not appear, or the desktop icons. Nothing does, and I need to force the shutdown to be able to restart.

    These are the things I've already tried:

    • Restart in safe mode: the desktop icons will appear, but all crashes after a few seconds. I think since safe mode does not work, the problem with the Finder, DS_Store problem, icon, or a problem with iCloud. So I went to the next step.
    • Running the tool of first aid disk utility in OSX (restart + Cmd + R) recovery tools: it indicates that the drive is OK.
    • / Sbin/fsck - FY running in single user mode: the drive seems to be OK.

    I don't know what to try next. Since I really need my computer for the next few days, I could go to an Apple store later this week. Of course, I would be really happy to avoid the costs of this option.

    Anyone of you has an idea of what I should try next?

    What safeguards do you have?
    You have another account that works?

  • Satellite Pro U400 - 15 p hangs after enabling the Realtek RTL8187B WLan card

    Hello

    I recently bought the Toshiba Satellite Pro u400 - 15 p. This notebook is originally without any operating system included. I installed Windows XP Home SP3 on it and downloaded all the drivers from the Web from Toshiba website. Everything works well except the WiFi - RTL8187B.

    Driver has been installed correctly, when I turn the WLAN on everything is always OK, but when I connect to a network wireless Windows XP hangs after some time - without notice or BSOD - and the only thing I can do is to restart the PC holding down the button for 5 seconds.

    I have:
    -installed the latest BIOS (v3.70),
    -installed the last version of drivers available (v6.1150.1112.2008)
    -tried how it works on Vista Home Basic - it does not either, but on Vista only connection must be reset.

    I searched on the web (perhaps not all), including this forum, but I was unable to find a solution.
    Now I am seriously considering warranty claim, please help me to avoid that it ;)

    Hello

    It's really strange.
    Are you sure that this happens because of the WLan card activated 100%?
    I mean there could be another reason for this gel

    I'm U400 too and I m running Win XP and Vista without problem!
    At that time, I m using WiFi and everything works ok

    I think it s not a Wlan related question, but there must be another reason why this laptop locks maybe a problem of RAM or something like that.

  • Satellite M50 226 hangs after the victory of logon Wlan is turned on

    Hello everyone,

    I had a problem with my satellite m50-226.
    It happens quite often that when I boot up my laptop a card WiFi is turned on, the computer hangs after windows journal.
    When I type my user password nothing happens and a few seconds later, the background appears but nothing else.
    When I restart the laptop the same problem occurs. only when I turn off the wlan card, I can start the computer successfully.

    Maybe anyone can help me?

    thanx.

    welcome them
    Alex

    Hello Alex

    I am very interested about your problem and it is interested to know if this problem persists if the unit wakes from sleep or hibernation mode.
    Can you please verify this?

  • X 1 carbon 2014 windows 7 hangs after the main power connection

    Nice day

    After the Polish Lenovo call center refuses to help me ask you to help. For about a week now, my X 1 carbon 2014 hangs after connection to the power supply. It's so irritating. I think, I only installed the updates regular windows 7 and the update of the BIOS via the lenovo update tool.

    The Polish Lenovo Support Center came with the excellent range of system solution. I really hope that you would be able to help more effectively at the same time.

    Thank you!

    Pawel


  • My Disk Defragmenter Hangs After startup

    My Disk Defragmenter Hangs After startup.  I tried to use the microsoft fix it Center automatic troobleshooter for the maintenance of the system determine the cause and got an error code 0 x 80040154.  He only "worked" on windows update and the update to fix issue still exists.  I'm trying to find out what means error 0 x 80040154 and how to solve the problem.

    Hope that gives you enough information.

    Hello

    (1) operating system do you work?

    (2) which Fix - it applied?

    (3) what is the exact full error message?

    Try the following methods and check the status of the issue.

    Method 1:

    Run a scan of the file system checker and check if it helps.

    http://support.Microsoft.com/kb/929833

    Method 2:

    Check a drive for errors.

    http://Windows.Microsoft.com/en-us/Windows7/check-a-drive-for-errors

    NOTE: This task might cause loss of data on your computer. It is recommended that you back up all data and files before performing this.

  • Computer hangs after installing windows updates...

    computer hangs after the installation of update.  Full system restore and the computer worked fine for a week. Has started having problems still... verified and automatic updates for windows have been downloaded and installed today. Confused about where to go from here. Help, please. Thank you!

    To be clear, the issue is not appeared since the updates have been installed one at a time, correct?

    KB2447568 is A compatibility view list update is available for Windows Internet Explorer 8:23 November 2010
    The KB updates a file in Internet Explorer.
    There is a small chance that Trend Micro has a conflict with the update. If this is the issue, then there would be more posts on this topic.
    This looks like a temporary glitch occurred.

    The only suggestion I would make is that when there are a bunch of updates, as there was in December, then it would be better to install the most complex by themselves.
    This would mean that changing setting Windows updates for "download updates for me, but let me choose whether to install them.
    For example, the cumulative update for Internet Explorer, KB2416400, would be installed last, and by himself.

    And, since you pick a time to install updates that have been previously downloaded, then you can install them in groups of 4 and If it is another problem caused by them or their installation, you will be able to refine specific update was the cause.

    Expert MowGreen Windows IT Pro - consumer safety

  • Time after the event, without blocking the user

    Hi, I am creating a software to control a power supply. One feature that I have bad to add is a timer.

    I have a structure for the event that fires when the user clicks on the buttons, which most slowly increases the current for a period defined by the user. I want the timer to count so far defined by the user of time (in seconds) after the event fires. One thing, however, is that I need to be free to trigger another event (which stops the power supply in an emergency) so I can't have this synchronization process lock me up for snap buttons.

    I was experimenting with the millisecond timer, as well as with a loop that goes through with a defined time interval, but it is not quite give me the functionality I want. (I've been placing these loops of timing outside the structure of the event to other events run yet, but I want the timer to only is triggered after an event is triggered, is it still possible?)

    If you need more information, just ask, thanks!

    Thnigs to do to dramatically improve your code:

    You need not separate loop.  Put your code from timer inside the structure of the case of timeout event.  Set the time-out to 50 instead of 500 to match what is in your separate loop.  You can get rid of the becaue of queue, it is no longer necessary.  Create registry to offset on the main loop.  When the event occurs to start timer, pass the time for the shift on the right side register.  Wire the shift register on the left side in the event of timeout to use its value.  BTW, the shift in your separate loop register is used to nothing because you do not change the value on the wire.  Don't put all the loop in the case of timeout, get rid of the loop and just put the code of the loop, with the exception of the EndTime variable that can be removed and 50mS delay, which can be removed.

    Put the Boolean value of early Inc. inside the case to start Inc. value change event.  Same for all Boolean values.  Put them in their cases of particular event.

    Get rid of local variables now.  You'll race conditions if you do not, you doing wrong in that you don't need especially now.  Look at the current limit control.  Add a wire from the control of the current limit to where feeds the local variable of the current limit.  Delete the local section.

    Move all the controls from the inside of the structure of the event outside the structure of the event, but still within the main loop.  Wire controls where they are going.  Now you can eliminate all local variables of thos and just wire from control where they are needed.

    All outputs error.  One is enough.  Create an error in your front panel.  On the block-diagram wire the error in the first function of Sorrensen before the loop.  Where the error from the Sorrensen hit the loop function, change the terminal on a shift register (right click and select replace with shift register).  Move the error Out 2 to out of the loop on the right side.  Error 2 wire the register shift on the right side.  Everywhere, you need a mistake in, branch off the error in the thread because it is in the loop.  Wire all your outs of the error in the case of the event and the last Sorrensen function to a function of merge error.  Wire of this error on the shift register.  All your errors are combined in a single indicator.

    That should do for now.

  • Outlook express hangs after the connection with the mail server

    OE6 hangs after the connection with the mail server?

    Make sure that the other machine is not check that the server so often a machine is not problems because it cannot be verified.

    Try to delete the account, compact the folders and close OE and reopen it and add the account back again.  Also make sure that the antivirus software is not interfere (see www.oehelp.com/OETips.aspx#3).

    You can also telnet to the server directly from this computer to see if it works (see http://techhelp.santovec.us/pop3telnet.htm).

    Sometimes it gets stuck in a message on the server and it can not get downloaded by OE, so it may be necessary to remove the message from the server, but if the other machine got, maybe it's not the question.

    Steve

  • Windows XP Pro on which I run several programs. After the opening of a few applications, I have this message "not enough memory".

    Hello

    I have a PC running Windows XP Pro on which I run several programs. After the opening of a few applications, I have this message "not enough memory".
    When I have this message, I can't open another application, or those in Windows... I have 2 GB of memory and only 700 MB are used.
    If I open the calculator several times (about 65 times), I have the same result.
    Sometimes, I get no error message, but the application does not open.

    Someone knows why?

    Thank you

    Hello

    You did the chnages on computer before this problem?

    I suggest you go through the steps of the following atrticle.

    "Not enough memory" error message appears when you have a large number of programs running.

    Note: Important this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:
    322756 (http://support.microsoft.com/kb/322756/ )
    How to back up and restore the registry in Windows.

  • My desktop icons and toolbar and start programs disappeered after getting a virus.

    My desktop icons and toolbar and start programs disappeered after getting a virus.

    I deleted the virus.

    No idea how to get back them?

    Hi Matt,
    Some infections of virus/malware will hide all files and shortcuts on your computer. To make your files visible again, download display on your desktop.
     
    Once downloaded, double-click display and let it run. It removes the attribute hidden on all files and attempt to restore items in quick launch and Start Menu to their location.
    If you think that your computer is still infected, try following the steps in this virus/malware removal guide: http://www.selectrealsecurity.com/malware-removal-guide
    It contains instructions which will remove most malware infections. If you have any questions, just ask me. I hope this helps you.
    Brian

Maybe you are looking for

  • What is codefisher's toolbar buttons?

    I have not downloaded any program under this name. He appeared suddenly, and now when my computer is started this program? Open Firefox without any intervention on my part.

  • iTunes will not play

    I just upgraded to windows 10 and now, my iTunes will not work.

  • Upgrading processors EliteBook?

    Hey guys' no lags. I recently bought a 8770p Elitebook. Specifications are Chipset mobile Intel QM57 Express, 4 GB RAM, 500 gb HDD, i7 840QM clocked at 1.73 ghz, Intel HD Graphics (GMA) with Nvidia MVS 3100 M. Here my question, I want to be able to p

  • Update of Android

    Hello everyone, our beautiful combined will be soon to receive Android 5 upgrade, I would like to know which is the best way to do this... Is it better to do a hard reset before AND after the upgrade? Only after? Some advice pls...

  • Windows Movie Maker-how hide the images in the table of Storyboard

    Windows Movie Maker I used windows movie maker repeatedly to do movies and had a lot of luck.    I'm now trying to start one and cannot find the option to 'hide' imported media images after that that they were placed on the table of Storyboard.  HELL