Timed loop in LabVIEW DLL does not exit nicely

Hello!  I have what I think is a simple timed loop in LabVIEW that exits after 100 iterations by throwing an error, and letting the loop "stop on error".  This works fine when run in the regular LabVIEW environment, however, when compiled as a Dynamic Linked Library (DLL) and called from LabWindows it forces me to terminate execution, rather than exiting nicely.  What's more, it seems to quit the actual Virtual Instrument call just fine and proceed to the next line of code, but when my main() function in LabWindows completes there must still be something not cleaned up that is causing it to not exit nicely.  Any ideas?   I've tried adding a call to QuitLabVIEW and that doesn't seem to do it.
Thanks in advance - hoping you'll point out some really easy mistake. )
Attached is a picture of the timed loop.
Below is an excerpt of code from LabWindows:
 int main ()
 CallMyLabVIEWDLL();  //This line successfully launches and closes the window for my LabVIEW virtual instrument
MessagePopup ("My Title:", "This happens after the call to your LabVIEW DLL");    //This popup shows up - indicating the call to the DLL has completed
//But after the code has completed LabWindows still says "Running", rather than shutting down.
    return 0;
Solved!
Go to Solution.
Attachments:
LabVIEWTimedLoopDoesntExit.png ‏103 KB

Update:  I tried the simplest possible "While" loop and it works.  If I replace it with the simplest possible Timed Loop, it doesn't.  (See attachments.) 
The only thing I could find in a search for why a time loop would break a dll is a patch for lvalarms from LabVIEW 8.5.1 .... I'm running LV 2010 so I don't believe that's an issue.  Correct me if I'm wrong?
Thank you!
Attachments:
Doesnotwork.png ‏43 KB
DoesWork.png ‏9 KB

Similar Messages

  • Labview executable does not exit memory when closed

    Hello everyone. I have been tasked with upgrading some of our vis from labview 6.0 to 8.5.1 . I was able to create new executables and run the vis just fine in 8.5. However, when I close the vis in question, the window dissapears just fine, but the process remains in memory causing me to have to go to the task manager and manually kill the process. Does anyone know what generally might cause this sort of problem to occur? This did not happen when the program was in version 6.0. Thank you for your help.

    I went ahead and added an event handler "application instance close" and I added the quit labview module connected to a boolean constant of true. It's weird because the .vi running closes, but the executable remains in my task bar.
    In other words, when I execute my .exe, I have ________.exe and _______.vi running. When I hit the red 'x' for my .vi, it closes but not the .exe. When I call file>quit in the .vi, they both close.
    Edit: To be clearer, adding the above did not close the .exe portion when I hit the x out button in my .vi window.
    Message Edited by pacman326 on 07-24-2008 10:03 AM

  • Remote Update Manager does not exit

    I'm trying to use Remote Update Manager to update PCs in our domain, but RemoteUpdateManager.exe does not exit, it just hangs. The log looks like this
    11/04/14 15:19:27:374 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 2164 | ##################################################
    11/04/14 15:19:27:374 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 2164 | ##################################################
    11/04/14 15:19:27:374 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 2164 | Launching the RemoteUpdateManager...
    11/04/14 15:19:27:374 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 2164 | RemoteUpdateManager version is : 1.7.0.25 (BuildVersion: 1.6; BuildDate: Tue Sep 02 2014 07:02:05 )
    11/04/14 15:19:27:374 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 2164 | **************************************************
    11/04/14 15:19:27:374 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 2164 | Initializing UpdaterCore Library...
    11/04/14 15:19:27:484 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 2164 | UpdaterCore library initialized successfully.
    11/04/14 15:19:27:484 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 2164 | **************************************************
    11/04/14 15:19:27:484 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 2164 | Starting UpdaterCore CheckForUpdate...
    11/04/14 15:19:29:730 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 2164 | CheckForUpdates completed successfully.
    11/04/14 15:19:29:730 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 2164 | **************************************************
    11/04/14 15:19:29:730 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 2164 | Starting UpdaterCore DownloadUpdates...
    11/04/14 15:19:29:730 | [WARN] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 2164 | No new applicable Updates. Seems like all products are up-to-date.
    11/04/14 15:19:29:730 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 2164 | **************************************************
    What I'm not getting is the "Ending the RemoteUpdateManager Return Code (0)" part.
    I'm using the latest AAMEE.
    Are there any further things I can do to see why this is happening?

    It seems to be related to the new Creative Cloud Packager (version 1.7).
    All the packs I had made with 1.5 exited correctectly.
    All the packs I have make with 1.7 dont exit.
    And it seems to be impossible to go back to 1.5 ....
    I think the problem might be with this line (from uob_csis but I get the exact same):
    RemoteUpdateManager version is : 1.7.0.25 (BuildVersion: 1.6; BuildDate: Tue Sep 02 2014 07:02:05 )
    There seems to be an incoherence between the version and the buildversion.

  • Path does not exit - While trying to save file on SharPoint Server 2013 from client machine

    Hi,
    I have installed Microsoft SharePoint Server 2013 Enterprise Edition on my testing Lab environment (On VM Workstation 10) on Windows Server 2012 with SQL server 2012, I can access all files stored at SharePoint Server from any physical machine, I can share
    a single file among different people to work simultaneously, but here i stuck on saving any file from client machine to directly on SharePoint Server, Attached is the snap shot, whenever I try to save any file directly It says Path Does Not Exist, If I drag
    and drop any file directly to SharePoint I do not see any error message.
    I read from different posts that I need to Enable Desktop Experience Feature on Server 2012, which I installed but no positive result gained :(
    I will appreciate for any possible help?
    Ali

    Hi Ali,
    Please try disabling the protected view per the link below and test the issue again:
    http://social.technet.microsoft.com/Forums/en-US/b8381a19-3394-406f-8adb-1976f45460ef/path-does-not-exit-while-trying-to-save-file-on-sharpoint-server-2013-from-client-machine?forum=sharepointgeneral
    You could simply type the url as http://sp/sites/sitename in the Filename place.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Number range intervel 50 does not exit fbn1

    Hi,
    I am getting these Error while using MIGO Transaction in Quality server.plz tell me how can i Solve these problem.
    for object rf_beleg gvk,number range intervel 50 does not exit fbn1

    Dear
    Maintain the number range for invoice documents in FBn1 t.code for 50 for the fiscal year 2009
    prodecure add in new intervels,
    Ex:
    No year   from number             to number
    50  2009  1000001                   1999999
    Regards
    venu gopal

  • I can not create an Installer, After install the Vision Builder Demo and then uninstall it. I can not create a Labview installer anymore, it asks me for a Vision Builder Installer, even if My Labview program does not have nothing to do with it...

    I can not create an Installer on LabView, After install the Vision Builder Demo and then uninstall it. I can not create a Labview installer anymore, it asks me for a Vision Builder Installer, even if My Labview program does not have nothing to do with it...
    Solved!
    Go to Solution.

     Hi Shada this can happen if you are including additional installers to your installer for example DAQmx. When you are doing this the installer has to include other files like MAX (Measuremente and Automation Explorer). Probably when you installed Vision Builder it updated MAX, so when your installer is trying to Include MAX, its asking for the source where it was installed in your computer in this case Vision Builder.
     Here you can cache the information so its not asked again, or you can download a newer version fo DAQmx, so it will update MAX and change de dependecy.
     You can find more details about this issue in this KB:
    KnowledgeBase 3S88PJMY: Why Do I Get A "Missing Distribution" Error When Trying to Build an Installe...
    And for keeping a copy here is more info:
     How Do I Stop the Missing Distribution Notification Each Time I Build An Installer?
    Best Regards
    Benjamin C
    Senior Systems Engineer // CLA // CLED // CTD

  • Getting file... does not exit error msg when attempting to use the setXSLT method

    I am attempting to use a PL/SQL procedure to generate HTML by using the DBMS_XMLQuery.setXSLT and DBMS_XMLQuery.getXML methods. When running the procedure, the following line
    DBMS_XMLQuery.SETXSLT(xsuQry, 'hmwebserver/Series47/Modules/Results_View/hmRVTemplateStyle.xsl');
    throws an ORA-29532 error with the message '... File... .xsl does not exit'. What does this actually mean, and more importantly, what can I do to correct the issue?
    Thanks in advance for any help.

    Hi
    In the dimension/Measure definition, you can select the table. Find the below screenshot.
    If you still getting the issue…Can you please share your screenshot, for better understanding the issue?

  • RAISERROR with Try/Catch does not exit after exception in catch block

    I am trying to propogate an error from within my proc out to the caller.
    In the attached example I have 2 sets of try catch blocks.
    I raiserror in the first
    catch the error and then raiserror again. (I expect to exit)
    I do not expect :
    to get to print 'post test'
    to get to second try block.
    but this does not exit, instead the code flows as per 2 runs.
    I do not understand the reason for the flows, as it seems counterintuitive to be raising an error but then still print following exceptions. I cannot seem to find any references that explains this behaviour.
     running tests together results
    print '-------------------------------------------------------'
    print 'test 15'
    exec test_raiseerror 15
    print '-------------------------------------------------------'
    print 'test 16'
    exec test_raiseerror 16
    print '-------------------------------------------------------'
    print 'test 17'
    exec test_raiseerror 17
    print '-------------------------------------------------------'
    print 'test 18'
    exec test_raiseerror 18
    print '-------------------------------------------------------'
    'RESULTS'
    test 15
    error number provided: 15
    Msg 50000, Level 15, State 1, Procedure test_raiseerror, Line 21
    name hello 15
    post test
    15
    Msg 50000, Level 15, State 1, Procedure test_raiseerror, Line 37
    name hello 2 15
    post test2
    test 16
    error number provided: 16
    Msg 50000, Level 16, State 1, Procedure test_raiseerror, Line 21
    name hello 16
    post test
    16
    Msg 50000, Level 16, State 1, Procedure test_raiseerror, Line 37
    name hello 2 16
    post test2
    test 17
    error number provided: 17
    post test
    17
    post test2
    test 18
    error number provided: 18
    post test
    18
    post test2
    Msg 50000, Level 17, State 1, Procedure test_raiseerror, Line 21
    name hello 17
    Msg 50000, Level 17, State 1, Procedure test_raiseerror, Line 37
    name hello 2 17
    Msg 50000, Level 18, State 1, Procedure test_raiseerror, Line 21
    name hello 18
    Msg 50000, Level 18, State 1, Procedure test_raiseerror, Line 37
    name hello 2 18
    run tests seperately
    exec test_raiseerror 15
    error number provided: 15
    RESULTS 15
    Msg 50000, Level 15, State 1, Procedure test_raiseerror, Line 21
    name hello 15
    post test
    15
    Msg 50000, Level 15, State 1, Procedure test_raiseerror, Line 37
    name hello 2 15
    post test2
    exec test_raiseerror 16
    RESULTS 16
    error number provided: 16
    Msg 50000, Level 16, State 1, Procedure test_raiseerror, Line 21
    name hello 16
    post test
    16
    Msg 50000, Level 16, State 1, Procedure test_raiseerror, Line 37
    name hello 2 16
    post test2
    exec test_raiseerror 17
    RESULTS 17
    error number provided: 17
    post test
    17
    post test2
    Msg 50000, Level 17, State 1, Procedure test_raiseerror, Line 21
    name hello 17
    Msg 50000, Level 17, State 1, Procedure test_raiseerror, Line 37
    name hello 2 17
    exec test_raiseerror 18
    RESULTS 18
    error number provided: 18
    post test
    18
    post test2
    Msg 50000, Level 18, State 1, Procedure test_raiseerror, Line 21
    name hello 18
    Msg 50000, Level 18, State 1, Procedure test_raiseerror, Line 37
    name hello 2 18
     CODEBLOCK:
    if object_id('test_raiseerror','P') is not null
    drop proc test_raiseerror
    go
    create proc test_raiseerror(@id as int) as
    begin
    begin try
    declare @name varchar(20)
    select @name = 'hello'
    raiserror('name %s %d',@id,1,@name,@id)
    print 'next'
    end try
    begin catch
    declare @errormessage nvarchar(4000)
    declare @errornum int
    select @errormessage = error_message()
    , @errornum = error_severity()
    print 'error number provided: ' + convert(varchar(2),@errornum)
    raiserror(@errormessage, @errornum,1)
    print 'post test'
    end catch
    begin try
    select @name = 'hello 2'
    raiserror('name %s %d', @id,1,@name, @id)
    end try
    begin catch
    select @errormessage = error_message()
    , @errornum = error_severity()
    print @errornum
    raiserror(@errormessage, @errornum,1)
    print 'post test2'
    end catch
    end
    go
    sqlserver 2008 & 2008 R2

    There is a Connect that describes a similiar complaint.  But basically a raiserror inside a catch block does not terminate the procedure, it will continue with any additional code in the CATCH and FINALLY unless it hits a return statement.
    http://connect.microsoft.com/SQLServer/feedback/details/275308/have-raiserror-work-with-xact-abort

  • Javax.servlet package does not exits

    Hi all
    i have set my classpath as follows:-
    J2EE_HOME - c:\Sun\Appserver
    path - %JAVA_HOME%\bin;%J2EE_HOME%\bin
    set classpath- .;%JAVA_HOME%\lib;%J2EE_HOME%\lib\j2ee.jar
    my j2se path and classpath already set
    but after setting path and classpath for j2ee i m not able to compile my servlet
    the error is package javax.servlet does not exits
    i know this error arised when we dont include j2ee.jar in classpath , but i m using j2ee.jar as well in my classpath
    plz suggest

    but you can also try including it in the web-inf\lib folder of your webapp.You should NEVER bundle the servlet-api.jar into the WEB-INF/lib folder of a web application.
    The server will always have its own copy. Putting your own there will just confuse things, and create errors.
    Ok, so you have set the classpath. What tool are you using to compile your code? Does it look at the classpath?
    Cheers,
    evnafets

  • Error : Workflow definition does not exits(T-code : SWU7 )

    Hi All,
    I checked my workflow template in SWU7 .Its gives me error "Workflow definition does not exits".
    In the bottom left of screen it displays message : "Container Element ZBUS2081 is not used".
    How can remove this error ? Please help..

    Hi ,
    The method used is standarad "GETEMAILDATA".
    no changes have been done to this.
    In bindings(exist)
    Workflow                                                        Step 'Get data from Email'
    &INCOMINGINVOICE.PAYMENTBLOCK&         &PAYMENTBLOCK&
    Then in Containers tab{ other tabs include basic data,description,triggering events,terminating events,defualt values,sapphone)
    this expression have been defined :
    abap dict. refernce : RBKP-ZLSPR
    PROPERTIES : IMPORT,EXPORT and MANDATORY.
    The BO name is ZBUS2081
    For BOR ZBUS2081
    bus2081.PaymentBlock  datatype refernce : RBKP-ZLSPR
    method defined :bus2081.BlockedPriceCheck
    Kindly check if fine.
    Edited by: ujjwal dharmak on Nov 22, 2010 9:14 PM

  • Menulauncher.dll. does not office extention

    System is win 8
    office 2013
    adobe presenter 10
    when i try to convert ppt file to scorm packet presenter menu disappear from office menu bar
    then I try to add menulauncher.dll
    but i experience "menulauncher.dll does not office extention" message on the screen
    I tried to oll fallowing steps but unfortunataly
    Issue
    The Adobe Presenter menu doesn't appear in PowerPoint even though the Adobe Presenter Add-in for Microsoft PowerPoint is installed.
    Solution
    Click the Office PowerPoint button (upper left), and then click PowerPoint Options.
    Select Add-Ins. In the Manage pop-up menu at the bottom of the Options dialog box, select Disabled Items and click Go
    In the Disabled Items dialog box, click the Presenter add-in, and then click Enable.
    Note: There aren't any items listed in the screenshot. In your installation, you sometimes see the Adobe Presenter PowerPoint Add-in.
    Click Close.
    If the above solution doesn't work, try the following: 
    Click the Office PowerPoint button (upper left), and then click PowerPoint Options. 
    Select Add-Ins. In the Manage pop-up menu at the bottom of the dialog box, select COM Add-Ins and click Go. 
    Select Adobe Presenter Powerpoint COM Addin from the list. Write down the Location path. 
    Deselect all add-ins in the list except the Adobe Presenter Addin and click Remove. 
    Click Add and navigate to the MenuLauncher.dll file at the location you wrote down in step 3. 
    Click OK. Click OK again.
    Click Help > About Microsoft Office PowerPoint > Disabled Items. 
    In the Disabled Items dialog box, click the Presenter add-in, and then click Enable. 
    Click Close. 

    FYI;
    Service Pack 2 was already in place. After installing the Cumulative Update package 2 fro SQL Server 2012 SP2, and attempted to opened an SSIS project. I then received the following error:
    TITLE: Microsoft Visual Studio
    Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSObject100'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{203E24BD-5203-4C76-AFC7-7C8545EBA1A0}'
    failed due to the following error: The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD)).
    BUTTONS:
    OK
    -Douglas

  • For object RV_BELEG , number range interval  does not exit

    I am receiving this error when trying to generate billing document type L2 for a newly created company code.
    Exisiting company codes are generating billing documents so obviously this is to do with a company code related definition.
    Any thouhgts ?
    -Mark

    Please check if the error is
    "For object RV_BELEG , number range interval does not exit"
    "For object RV_BELEG , number range interval <b>10</b> does not exit"
    10 used as an example here you may be getting any 2-digit alpha-numeric value in stead of 10.
    Also Check
    If you are using
    Include program : RV60AFZZ
    Routine: USEREXIT_NUMBER_RANGE
    If so then for each plant you have assign a number range for each billing type (L2- here).
    Thanks,
    Ashish

  • Not yet solved, /usr/lib/systemd/systemd does not exit

    Hi,
    I was on 3.8.2 kernel, and did a full system backup with rsync to later upgrade, but after upgrading and rebooting, it just shows me
    Error: Root device mounted successfully, but /bin/systemd does not exist.
    Bailing out, you are on your own. Good Luck
    tty's could not initialize [*or something similar, I'm not sure]
    [root /]#
    Then I just replaced my system with the backup I did earlier. But it shows the same
    I did search for info but no clue.
    Currently trying with an older backup.
    Thanks in advance
    Last edited by arcaid (2013-05-14 23:58:26)

    progandy wrote:
    Error: Root device mounted successfully, but /usr/lib/systemd/systemd does not exist.
    The initscript tests if init is executable, so "does not exist" could also mean "is not executable"
    Somehow your root has a problem with its execute permissions. Did you somehow remove them, /usr/lib/systemd/systemd should be 755 or "-rwxr-xr-x"?
    While I'm not sure why is this modified, maybe the backups I did doesn't hold the attributes, I'm storing them in an NTFS partition but it can store the attributes doesn't it?
    Well I changed the attributes as you mentioned, but then it makes me wonder if then pretty much the other root files are too with other attributes..which is really bad.
    Nevertheless I changed it and now it shows permission denied and a kernel panic, sigh.
    Here is an image of it: http://imageshack.us/photo/my-images/689/dsc06698b.jpg
    Thanks in advance
    @Pantera
    The problem here is kinda different, while at the beggining it was the problem you mention and solution, now the thing is that it says that "/usr/lib/systemd/systemd does not exit" and not /bin/systemd which it was in the beggining. thanks though.

  • Resource-only DLL does not contain executable code

    A resource-only DLL does not contain executable code. Since
    LoadLibrary (http://msdn.microsoft.com/en-us/library/windows/desktop/ms684175.aspx) attempts to call the entry point before returning, it will fail for resource-only DLLs. Instead, you should call
    LoadLibraryEx (http://msdn.microsoft.com/en-us/library/windows/desktop/ms684179.aspx) passing a
    LOAD_LIBRARY_AS_DATAFILE, LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE, or
    LOAD_LIBRARY_AS_IMAGE_RESOURCE flag, to load a resource-only DLL. This prevents to loader from attempting to call the entry point.

    Hello,
    Just check if there is space in the front of these numeric values or some garbage value...if there is... then it may not be able to pad it up with zero and hence the issue...check in R/3 about how these values are stored...you can remove the space from the front and change it in PSA...and then load but first do the analysis of the source system and see why its coming up wrong.
    Regards
    Ajeeet

  • Delete records in itab1 where key fields does not exit in itab2 w/o Loop

    Hi,
    I am trying to find the most efficient way to compare two internal tables and filter out (delete) the entries in Internal Table 1 (ITAB1) where the key fields does not exist in internal table 2 (ITAB2).
    Here is the codes using the Loop.
    Loop at itab1.
      read table itab2 where field1 = itab1-field1 and field2 = itab1-field2.
      if sy-subrc ne 0.
       delete itab1 where field1 = itab1-field1 and field2 = itab-field2.
      endif.
    endloop.
    Instead of looping thru each record of ITAB1, is there a way to use the "DELETE" or other efficient way? This is in ECC 6.0.
    Thanks for any advice in advance.

    Not sure if its possible without using even a single loop. Though you can avoid the read statement this way
    loop at itab2.
    delete itab1 where field1 NE itab2-field1 and field2 NE  itab2-field2.
    endloop.

Maybe you are looking for