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?

Tags: NI Software

Similar Questions

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

  • 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

  • Cannot read iphoto library stored in an external drive, after the installation of el capitan and photos

    I can't read iphoto library stored in an external drive, after the installation of el capitan and photos, can anyone help?

    What size is the drive? How are you connected to it?

  • where are my data after the use of Dell backup and recovery

    Three check marks displayed on a Dell backup and recovery, which, I suppose, finishing meant that my backup was successful (using Windows on a Dell Inspiron 8.1).  Where my data is sent to after the use of Dell backup and recovery?

    Click on the 02:22 mark of the video.

    www.YouTube.com/watch

  • My compiled program crashes after the first run (LabVIEW 2009)

    I have a compiled program created with LabVIEW 2009 which, in the first round, once the computer is restarted, works fine but after discontinuation of the program, it will not work properly.

    The program uses a compiled Launcher to dynamically activate a set of VI containing the expectation driven by State Machines (QDSM).  Begins subsequent program launcher module appears fine, and his progress bar shows that she starts each of the VI.  Once the Launcher is complete it removes memory launched Dynamics VI and caressed.  The spear that do not reach the main UI that VI is barely long enough for the observer to see (if there is one) then stops.  The program then went from memory I can say.  There is no process in memory or anything.

    Also, when I try to run the installed version of the exe file on a computer with installed 2009 development environment I get this behavior consistently successful launch once again.

    In both case, my program does raise all errors (that are connected), or runtime generates everything I can see.  Also, when I run my program in the development environment the program does that way.  He has no problem at all.

    I have used this style of architecture front of LV8.6 with all the problems.  Can anyone suggest some possible solutions or even a few debugging tips?  I've never had a problem that I could not duplicate in the development environment, so I'm not sure how to start to attack my question.

    Thanks for any help.

    Jason

    I solved the problem I think that (at least with regard to the tests on this point revealed).   After that I added the possibility to connect the past States to of the QDSM, I was able to determine that the program was 'plant' after that I dynamically closed the Panel front of the Launcher.  My program is designed to close the Panel before the pitcher, then pop up the façade of the main user interface.   My EXE is inspired to hold the Launcher with my other files QDSM kept outdoors in specific directories.  What seemed to be happening is that when Launcher closed its façade and before UI opening upward the runtime engine decide since it is y no Windows Open he was closing down.  It's my guess on what might happen any way.  I modified my code to change the Launcher window to hidden and delay for 1/2 second to give a chance to fully start running to the main user interface.  This will correct the problem, or at least worked around her.  If someone out there can explain me exactly what is happening that I sure would appreciate it.

    Thanks for all the help that those of you who responded.  Your advice has been very beneficial and certainly led me to a faster resolution.

    Jason

  • Code error-301 when you deploy the image

    Hello
    I have a problem.

    I want to deploy an image from a client light t5740e to a client t610.

    I cloned successfully of the image to a folder as a file .ibr deposit.
    I also have an older version of the image as a file on a FTP repository .img.

    I can successfully deploy the image the FTP repository to a t610 client.
    The problem is that this image is obsolete and cannot be used.

    When tryng to deploy the image to a file repository shared, I get the following error code:
    2013-04-22 11:38:47 ErrorCode:-301, error information: the device of the faimly bios is not match the image.

    I also tried to create an image using HP ThinState Capture, but recevie the following error during startup:

    Inititializing... * ERROR * system has failed the OS image.

    After that, I downloaded the standard image on the HP site and created a USB key. Then I replaced the .ibr file, but it still gives me the same error as ThinState installation.

    Is there a way to bypass the repository of shared folder and clone the image to the FTP repository under a .img file and deploy it to the client t610?

    Or is it possible to bypass the BIOS checking when deploying the repository of shared folder?

    Assuming that the version HPDM is common (4.5 with SP2), there is an option in the task editor when applying the deployment to enable Cross-platform for Imaging.

    This is however strongly discouraged because the picture you shot of the t5470e will not have the necessary drivers for the t610. The original image on the web site of HP will have drivers for both, but the part of the RunOnce scripts at first start after imaging USB is clean the unnecessary drivers by the platform to maximize space on the device.

    However, you should be able to pull the image of 7th WES using the FTP browser component in menu HPDM model. This will generate a model that can be deployed to clients light t5740e both t610.

    One last thing to remember is to make sure that the agent is updated on the device target before deployment and then again after the deployment.

  • 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

  • 8900 comm http hangs after the second connection (do not view with the 83XX devices or 8900 Simulator)?

    Hello

    I currently have a j2me application that is deployed in production on different devices of BB. The application is pretty simple and mainly collects the data of the user (via text fields, drop-down list boxes etc.) and send these data to our server via an http connection

    The application was deployed in production for more than 6 months and work with end users using various BB devices, like the 8310, 8320 and 9000.

    Our end users now upgrade to the 8900 and we assumed that our application would work in the same way as the 8320-I even tested my app on the Simulator to 8900 and everything works fine.

    However, using the app on a real 8900 device connected to the network Vodafone here in the United Kingdom has cast some weird problems. The app installs fine OTA, communicates initially very well (as we connect via an http post), but then any attempt further communication over http hang everything simply no error thrown?

    Closing the application does not have any change, and blocking any attempt at communication. If I restart the device (battery etc) and start the application then I can connect once more, and then the app just crashes again.

    I can't find the cause, and the fact that other physical devices and even the Simulator to 8900 work very well is weird!

    Any help or pointer to start looking in my code/settings would be appreciated?

    Daniel

    Please make sure you close your connection. or check if the current connection is close before opening another.

  • Error 404 - not found - after the installation of Essbase 11.1.2.2

    Hello

    I encountered error.

    I have a box of PMC 11.1.2.2 using Windows 2008. After the installation of Foundation and configure it, there is no problem at all. I can open workspace and interop as well.
    However, I added Essbase, installation and configuration of it. But after installing Essbase, I managed to turn it back on Hyperion Sharing Service, it did not work.

    The error that says:

    Error 404 - not found
    RFC 2068 Hypertext Transfer Protocol--HTTP / 1.1:
    10.4.5 404 not found
    Server not found anything matching the request URI. No indication is given whether the condition is temporary or permanent.

    If the server does not wish to make this information available to the client, the status code 403 (refused) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through a configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.


    What I did is also a reconfiguration of shared services, Essbase. But no luck at all.
    Does anyone have any idea, please advise. Thank you.

    Sometimes, this error may be because the data source details are incorrect that I showed you yesterday in WebLogic.
    I don't know how you managed to cause questions to the Foundation after the addition of essbase as I do not have the process that you did.

    If I go to WebLogic and change the user to the EPMSystemRegistry data source and then start the server EMP service the same errors are generated.

    <15-Jun-2012 08:32:58="" o'clock="" bst="">
    ".>

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Error while sending mail after the 38.1.0

    There is no change in the settings of the e-mail server.

    After the update to thunderbird 38.1.0 I get the following error when sending mails.

    The message send failed.
    The message could not be sent to the help of Outgoing server (SMTP) mail.hclinsys.com for an unknown reason. Check that your outgoing (SMTP) server settings are correct and try again.

    Please the devil error cons = ole with V38 for error messages I discuss here.
    http://thunderbirdtweaks.blogspot.com.au/2015/07/logjam-and-Thunderbird.html

  • Sync error, incorrectly configured server after the installation of Update 7.0.1

    Since the update of Firefox (I have a Mac OS 10.6.9 on SnowLepard) by installing the Firefox 7.0.1 update, now on every page I get the Sync error message at the bottom line. Incorrectly configured server.

    Synchronization error message constantly displayed after updating to Firefox 7.0.1

    There is currently a problem with the Firefox Sync server, and the developers are working to fix it. See http://status.mozilla.com/ for updates.

  • 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


  • Front Panel hangs after the beginning of the routine

    Hello

    I am writing an application that looks a bit like that fixed. The idea is to have a Setup mode after the beginning of the program, where you can enter all the data to specify a test routine. In the first loop representing the configuration mode, I have an event structure that is pretty huge, in fact, because it represents a contextual help for my program, I added. After clicking on the Start button (which is possible only when some tabs from the tab control are selected), I turn off and the Start button gray. After that puts it on, there are several automatic modes and a manual control which are selected depending on the active tab.

    In this mode, the front suddenly freezes i.e. no control will react to my entry.

    I programmed this sample program to get because of the problem. It seems that there is a problem when using local variables and the switch until released action. The problem was solved when I selected the switch when you press mode.

    I applied the same changes in VI I develop, but the problem still remains.

    Someone at - he had an idea, why?


Maybe you are looking for

  • USB connection problem

    Whenever I connect my tab to any PC or laptop using the USB cable, it is not connect. It is not pop window on the USB connection. USB port works fine. Tab gets charged through this property. Functional disorder it is. Everyone will solve it?

  • I bought ibooks, how and where can I find them?

    Hi, I bought a couple of ibooks to the iStore.  Where are they.  How to find and can transfer them to my iPad?  How?  Thank you, Trish

  • How can I rotate an image of a pivot point?

    Hello I have a problem, the rotation VI Imaq only rotate an image at its Center. My problem is that I need a pivot known to this point. How can I achieve this? Thank you Francesco.

  • Delete Array element

    I'm unable to a Board problem. I am able to do the types of features such as see how many items in the table, insert (I hope I did it correctly) and ordered random numbers growing as well as sorting. Now, I'm hoping to find a way on how to remove the

  • MPG files play in windows 7, but no voice

    Sony's videocorder MPG files play on my PC but without voice. In my laptop with Windws 7, even the video is not played. FFL even plays with voice in XP. Which CODEC should I download or any other solution. RK