LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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

Solved!
Go to solution

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)

Download All
0 Kudos
Message 1 of 3
(3,132 Views)
Solution
Accepted by topic author Myauk
This is the DLL file (I missed to attached in the post)
0 Kudos
Message 2 of 3
(3,130 Views)
-message deleted -
Message Edited by Ray.R on 11-17-2009 08:01 PM
0 Kudos
Message 3 of 3
(3,015 Views)