LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Several WebDav connections - Error 1055: Unregister for Events

Solved!
Go to solution

Hello,

 

I use WebDav to fetch files from the PLC to the computer.

It is working when I use only one connection.

When I use the same WebDav vi several times to fetch files from different folders, I get the Error 1055: Unregister For Events.

Error1055.PNG

 

The first vi continues working, but the second one stops.

 

The vi is attached in the following snippet:

In order to run it, the attached VIs are also needed ("FileInfo to Name and Path.vi" and "WebDAV Sync State.ctl").

WebDAV InputDataSync.png

 

The second vi that I want to run simultaneously is exactly the same, but with different Queue name and different data folders:

 

WebDAV OutputDataSync.png

 

If I delete the "Unregister for Events" function on the right side, then I don't get any error, but the second vi stops running without stopping explicitly the while loop.

 

What could be wrong?

 

Thank you.

 

Download All
0 Kudos
Message 1 of 2
(3,095 Views)
Solution
Accepted by nikosfs

The problem seems to be related to the use of an event structure inside a timed loop.

Timed loops are designed to be executed in certain time intervals, while the program alsways waits on the event structure inside the loop until an event occurs. These two behaviors are strictly opposite to each other, which might to cause problems in this particular case.

 

Replacing the timed loops by while loops, seems to solve the problem

 

Andreas Jost

Applications Engineer

National Instruments

Andreas
CLA, CTA
Message 2 of 2
(3,019 Views)