Error 1172, an error running a VI in the second time call of the DLL

Hello All,
I am a beginner in labVIEW.
I have to write a test program in labVIEW which uses a DLL created by other programmer.
I called the DLL from my labVIEW to control DIOs, a serial port, communicate with a slave device, perfrom a flashing task.
While testing the program, I found that the program is OK if I use it just once, however, if I want to run it coninuously using a Do-While Loop, it failed with
Error 1172.
As far as I could understand, it seems that the DLL creates a log file in C:\ while it was called for the first time, and the process does not stop taking control of this log file even after the DLL is closed.
Then when the DLL is called for the second time, it looks for the same log file to write new info but as it was taken control by the previous process, there comes an error.
Please find the attached files.
Hope there would be somebody who is able to help me to point out my mistakes in my vi or suggest me a solution for it.
Thanks and Best Regards
Aung
(As the system does not accept the DLL attachment, I changed the extension to .pdf for the DLL File)
Solved!
Go to Solution.
Attachments:
I Basic Flasher.vi ‏60 KB
Failure.xls ‏86 KB

-message deleted -
Message Edited by Ray.R on 11-17-2009 08:01 PM

Similar Messages

  • Error on /SafeMode: error while trying to run project uncaught exception thrown by method called

    i try run VS 2012 with /SafeMode. I create new empty Winform. When I start debug, I got:
    "error while trying to run project uncaught exception thrown by method called through reflection"

    Hi Matanya Zac,
    Did you restart your machine? How about installing the VS2012 update 4?
    >>error while trying to run project uncaught exception thrown by method
    Did you install the VS update in your VS IDE? I met this issue before which was related to the VS update:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/5ead8ee9-ea09-4060-88b0-ee2e2044ff82/error-while-trying-to-run-a-project-uncaught-exception-thrown-by-method-called-through-reflection?forum=vsdebug
    If still no help, I suggest you repair your VS, and then restart your machine, test the result.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • [Load data from excel file [1]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009. There may be error messa

    Error
    [Load data from excel file [1]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009.  There
    may be error message
    I am using BIDS Microsoft Visual Studio 2008 and running the package to load the data from excel .
    My machine has 32 bit excel hence have set property to RUN64BITRUNTIME AS FALSE.
    But the error still occurs .
    I checked on Google and  many have used Delay validation property at Data flow task level to true but even using it at both excel connection manager and DFT level it doesnt work
    Mudassar

    Thats my connection string
    Provider=Microsoft.ACE.OLEDB.12.0;Data Source=E:\SrcData\Feeds\Utilization.xlsx;Extended Properties="Excel 12.0;HDR=NO";
    Excel 2010 installed and its 32 bit edition
    Are you referring to install this component -AccessDatabaseEngine_x64.exe?
    http://www.microsoft.com/en-us/download/details.aspx?id=13255
    Mudassar
    You can try an OLEDB provider in that case
    see
    http://dataintegrity.wordpress.com/2009/10/16/xlsx/
    you might need to download and install ms access redistributable
    http://www.microsoft.com/en-in/download/details.aspx?id=13255
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Error: The AcquireConnection method call to the connection manager failed with error code 0xC0202009 using DB2 connection

    I have a SSIS project that I am newly running on the SQL server (2005) .  It was previously run on my PC.  I am importing data from a DB2 server to the SQL server.
    I am in the SA group on the server
    My connection to DB2 works
    When open the package and run it in preview mode, I can retrieve the data.
    When I execute the package I get the below errors:
    [MIDAS OLE DB Source [1]] Error: The AcquireConnection method call to the connection manager "NGMDSPA.alharris" failed with error code 0xC0202009.
    [DTS.Pipeline] Error: component "MIDAS OLE DB Source" (1) failed validation and returned error code 0xC020801C.
    What I have already done that has not worked:
    The original Protection level was set to EncryptSensitiveWithPassword. 
    I have reset the Package Password.
    I have set the protection level to DontSaveSensitive
    I saved the package on the server and set a Package Password.
    I created a new package, set the Protection level to DontSaveSensitive, set a package password in a configuration file using the Package Configuration Wizard.
    Error continues

    Yes.  The Drivers are installed and I have a successfull connection.  I am trouble shooting the issue on the server in BIDS.  I can connect to the DB2 server via the Connectionmanager.  I can also preview the data in the OLE
    DB source connection.  Therefore I know that I have a proper connection
    If you're setting option as DontSaveSensitive then you need to pass the connection information from configuration file/ config table. Otherwise it wont be able to use it for connecting to your source/destination servers. This is the recommended way as it
    will enable you to change connection info at runtime.
    If you want connection info to persist you need to use protection level as EncryptSensitiveUsingUserKey or EncryptSensitiveUsingPassword and set a password.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • TS3694 my phone has switched off for the second time this week, however when connecting to itunes the restore process wont complete. the error is 2006 however i have tried a number of USB cords, and none seem to be working.

    my phone has switched off for the second time this week, however when connecting to itunes the restore process wont complete. the error is 2006 however i have tried a number of USB cords, and none seem to be working.
    I am in the noerthern [parts of australia and accessing an apple store is not possiable for another month. this is my only soucrce or telecommunication. please help

    This is what it says about error 2006
    Error 2000-2009 (2001, 2002, 2005, 2006, 2009, and so on)
    If you experience this issue on a Mac, disconnect third-party devices, hubs, spare cables, displays, reset the SMC, and then try to restore. If you are using a Windows computer, remove all USB devices and spare cables other than your keyboard, mouse, and the device, restart the computer, and try to restore. If that does not resolve the issue, try the USB issue-resolution steps and articles listed for Error 1604 above. If the issue persists, it may be related to conflicting security software. If the errors persist on another computer and known-good USB cable, the device may need service.

  • I was now downloading Mt. Lion on my macbookpro and about half way through it gave an error message for the second time. It won't restart!!!! Help???

    I am trying to download Mt. Lion on my macbookpro and about half way through it gives me an " an error has occured" message. This is the second time!!. How do I restart the down load??? Normal app store route does not work???? or get a cd..

    3194
    See the actions for that error here:
    iTunes: Specific update-and-restore error messages and advanced troubleshooting
    iPhone Error 3194 - How to Fix iTunes Error 3194?
    Fix Error 3194 from iTunes during iPhone restore

  • How can I do to acquire and save date in the same time and in the same file when I run continual my VI without interrupti​on.

    I've attached a VI that I am using to acquire amplitude from Spectrum analyzerse. I tried to connect amplitude ouput to the VI Write Characters To File.vi and Write to Spreadsheet File.vi. Unfortunately when I run continual this VI without interruption, labview ask me many time to enter a new file name to save a new value.
    So, How can I do to aquire and save date in the same time and in the same file when I run continual my VI for example during 10 min.
    Thank you in advance.
    Regards,
    Attachments:
    HP8563E_Query_Amplitude.vi ‏37 KB

    Hi,
    Your VI does work perfectly. Unfortunately this not what I want to do. I've made error in my last comment. I am so sorry for this.
    So I explain to you again what I want to do exactly. I want to acquire amplitude along road by my vehicle. I want to use wheel signal coming from vehicle to measure distance along road. Then I acquire 1 amplitude each 60 inches from spectrum analyzer.
    I acquire from PC parallel port a coded wheel signal coming from vehicle (each period of the signal corresponds to 12 Inches). Figure attached shows the numeric signal coming from vehicle, and the corresponding values “120” and “88” that I can read from In Port vi.
    So I want to acquire 1 time amplitude from spectrum analyser each 5
    period of the signal that I am acquiring from parallel port.
    So fist I have to find how can I count the number of period from reading the values “120” and “88” that I am acquiring from In Port (I don’t know the way to count a number of period from reading values “120” and “88”).
    Here is a new algorithm.
    1) i=0 (counter: number of period)
    2) I read value from In Port
    3) If I acquire a period
    i= i+1 (another period)
    4) If i is multiple of 5 (If I read 5 period)
    acquire 1 time amplitude and write to the same
    file this amplitude and the corresponding distance
    Distance = 12*i). Remember each period of signal
    Corresponds to 12 Inches).i has to take these
    values: 5,10,15,20,25,35,40,45,50,55,60............
    5) Back to 2 if not stop.
    Thank you very much for helping me.
    Regards,
    Attachments:
    Acquire_Amplitude_00.vi ‏59 KB
    Figure_Algorithm.doc ‏26 KB

  • Hi, how to load mac without running windows (bootcamp)? The problem is this: the last time i ran the windows, but he hangs and died (can not run further  the logo). now i can not load not windows, not maс! how to be, what to do???

    The problem is this: the last time i ran the windows, but he hangs and died (can not run further  the logo). now i can not load not windows, not maс! how to be, what to do???

    can any body help me, plz!!

  • When I run the same query for the second time it's faster, I want to reset this behavior

    I am running a query in oracle 11g select A from B where C = ':D' B has millions of records.
    The first time i run it it takes about 30 seconds, the second time i run the query it takes about 1 second.
    Obviously it's caching something and i want it to stop that, each time i run the query i want it to take 30s - just like it was running for the first time.
    The reason I want to reset this is because for testing purposes I want to measure this query at the very first time.
    Please help.
    Thanks & Best Regards,
    Dark

    user9359353 wrote:
    I am running a query in oracle 11g select A from B where C = ':D' B has millions of records.
    The first time i run it it takes about 30 seconds, the second time i run the query it takes about 1 second.
    Obviously it's caching something and i want it to stop that, each time i run the query i want it to take 30s - just like it was running for the first time.
    The reason I want to reset this is because for testing purposes I want to measure this query at the very first time.
    Please help.
    Thanks & Best Regards,
    Dark
    No - you do NOT want to do that. Not if you want to get results that really represent how that query will work in reality.
    See these two AskTom blogs where he discusses the reasons for NOT doing this in detail.
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:7413988573867
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:311990400346061304

  • TS1398 When my iphone connects to wifi, everything else in my house will not connect to the internet. They all show 3 to 4 bars on connection strength, but unable to access the internet.  The second I turn off the wifi on my iphone, everything runs perfec

    When my iphone connects to wifi, everything else in my house will not connect to the internet. They all show 3 to 4 bars on connection strength, but unable to access the internet.  The second I turn off the wifi on my iphone, everything in my house runs fine. What is going on?

    Had a similar problem a number of years ago with a laptop my daughter had. The probelm turned out to be the router. What kind of router do you have? Have you checked for firmware updates, or at least tried re-booting it?

  • Error 1172 and Error 1 when opening VeriStand

    Error 1172 comes up and immediately after Error 1 comes up when I try to open VeriStand.  I am remote logging into the computer that this is happening to.  I know that just before I logged in, a co-worker was on it and had VeriStand open just fine.
    He tried to run a project and got Error -63195; which is a different issue altogether, but wanted to make sure I didn't exclude any information that might be useful.
    So I remoted into the computer to try to replicate the error that he got and I can't even open VeriStand without errors.  If I click continue the errors will disappear and I am shown the VeriStand start up screen.  If I click on "Configure Project" I get Error 1 again.  I can't go any further.  Does anyone know what the problem is?
    Attached are a copy of the errors.
    Attachments:
    vserror.png ‏49 KB

    Hello,
    Just saw the second post, you will have to repost to the NI Veristand forums.
    Best Regards,
    Jignesh P
    Applications Engineer

  • Error 1097 the first time calling LinearFit.​vi using the bisquare fit method

    When I start LabView (8.2) and run a certain vi, I get Error 1097 the first time I call LinearFit.vi and the fit method is "Bisquare".  If I try calling LinearFit.vi again, it works fine (no error).  If the method is "Least Square" or "Least Absolute Residual", I don't get the error ever.  Any suggestions on what I may be doing wrong, or if I'm not doing anything wrong, how to get around this annoying error?
    I just tried creating a new vi with nothing but the LinearFit.vi in it, and the error occurs the first two times I run the vi, but not on subsequent attempts.  I've attached the simple vi to this message.
    Attachments:
    linearfiterror.vi ‏9 KB

    Hi Dan,
    I don't know how to check this except to compare the BD. The path to the Linear Fit.vi is "..\National Instruments\LabVIEW 8.2\vi.lib\Analysis\6fits.llb\Linear Fit.vi" and the BD look like this:
    Greets, Dave
    Message Edited by daveTW on 03-21-2007 03:43 PM
    Greets, Dave
    Attachments:
    LinFit main.png ‏16 KB
    LinFit bisquare.png ‏13 KB

  • It works the first time, but after the first syncring it says. Sync encountered an error whike syncring: Unknown Error. Sync will atomatically retry this action). Please help my Favorit Browser for last 8-9 years. Thanks To The Tema Behind It...

    The rules about donations

    Hi crogs571
    The first sync report shows an error with the history:
    <pre><nowiki>1415979204255 Sync.Status DEBUG Status for engine history: error.engine.reason.record_upload_fail
    1415979204255 Sync.Status DEBUG Status.service: success.status_ok => error.sync.failed_partial
    1415979204255 Sync.ErrorHandler DEBUG history failed: <html>
    <head><title>413 Request Entity Too Large</title></head>
    <body bgcolor="white">
    <center><h1>413 Request Entity Too Large</h1></center>
    <hr><center>openresty/1.7.0.1</center>
    </body>
    </html></nowiki></pre>

  • When downloading Firefox, the second time I click run I do not get the set up wizard and Firefox won't install on my PC. Why?

    When I first click download and run, It takes about 2.5 minutes to download the program. It then prompts me to click run again, but this time instead of taking me to the Wizard as it says it will, it processes for about 2 seconds and all prompts go away without installing Firefox.

    Hi sahgin,
    The issue eventually resolved itself, I still don't really know why. I kept up with Windows update, and attempted downloading iTunes again from the Apple website, and it just... worked. It now works fine. I don't know why it took approximately 4 months to work, though.
    I'm sorry I don't have any more helpful information. Posting here was my last resort, and clearly Apple never bothered to reply.

  • Run in the same time with watching the result?

    I have a question
    how can I get 2 or more VI's in the same program run simultaneously, each has several SubVI, and if I press a button then I get the result of a VI and without stopping at the same time on another button and I get the result from other VI?

    Natsheh,
    thank you for your interest in learning LabVIEW. There are two possible ways of approaching your task:
    a) using global or shared variables which store the data and can be accessed from the subVIs as well as from the main VI, or
    b) using VI Server methods to query the actual values of indicators from the subVIs in your main application window.
    Using global variables is the easiest implementation, and a good starting point. When your LabVIEW skills advance, you will want to also look at VI Server technologies, as they provide a more flexible way to access subVI data.
    To get you started, let me please recommend the following introduction to LabVIEW:
    Getting Started with NI LabVIEW Student Training
    http://zone.ni.com/devzone/cda/tut/p/id/7466
    Module 6 of this online training deals with global variables, and should give you a first overview.
    If you are already familiar with LabVIEW Projects, you may as well use Shared Variables. They are introduced here:
    Using the LabVIEW Shared Variable
    http://zone.ni.com/devzone/cda/tut/p/id/4679
    Also, I would like to point you to our "real-world" training courses which are held thoughout the world. The LabVIEW courses Basics I & II together not only cover these aspects (SubVIs, Variables, VI Server calls, ...), but also give you a good start in "thinking LabVIEW" :-)
    Best regards,
    SFK

Maybe you are looking for

  • Sharing pictures from i photo library via e mail

    Hi, I have troubles sharing photos in my 'i photo' library via e mail. In the past I was able to send e mails with the pictures I selected but suddenly - without making any change  - I am no longer able to send messages. Internet is working fine and

  • How to add hyperlink to report total

    Hi, I have a report and the last row display report total ( using apex default feature - checking the sum check box). My last row look similar as show below report total | 10 | 20 | 30 | 0 | 100| My requirement to to add hyper link to the nos. 10 , 2

  • Cannot stop the ds!!!!!!!!!!!!!

    Hi, i want to retransmit the incoming stream while is being received. For this, i create (correctly) cloneables from the original ds and clones from the cloneable. I use the first cloneable for playing the video and the clones of the 2nd one for tran

  • Quicktime - "Error: The operation could not be completed"

    I just took 1 and a half hours' worth of footage in quicktime screen recording, which I would rather not lose if possible. However, when I try to save the footage, it gives me the error listed in the title. I don't seem to have a problem with not bei

  • WRT160N V3 Not working right

    First, it didnt let anything connect to the internet, no PC, no wii, no ipod etc. Then, when i used Network magic to auto repair it, it fixed it, but it says that we are "away from primary network" and on someone elses. This does allow the PC to conn