LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.NET Web Service Problems ?

I have a VI which uses .NET classes to talk to a URL. Please see attachment.

It works fine but I did notice couple of things. The first time that I run my VI, it takes slightly longer which is understandable since it has to load the assemblies. But if I run my VI few times, and then leave it idle ... it acts funny. It's very slow I run it after the VI is idle. Is the webservice activating some kind of a unloading the assemblies when it times out ? Has anyone faced this problem before ?

Kudos are the best way to say thanks 🙂
0 Kudos
Message 1 of 4
(2,785 Views)
Hi,

I tested your VI here and it did indeed take some more time to execute at the beginning - roughly 3 seconds.  I then ran the program again and it took roughly 1 second.  This leads me to believe that the .NET calls are loaded into memory for future use.  I still, however, have not been able to verify that if I leave the VI idle and then run it, it would act slow.  How slow does it run after leaving the VI idle?  How long do you leave it idle before it acts funny?  What do you mean by the VI acting funny?

I hope this helps,


Regards,

Nadim
Applications Engineering
National Instruments
0 Kudos
Message 2 of 4
(2,758 Views)
I am running my VI with .NET 2.0 and 8.2.1. Are you using the same versions ?

I noticed that if you leave the VI idle for about 5-10 mins and then run it, it takes a while to execute. That's what I meant by funny, sorry wrong terms !

My work buddy did some research and he says that it's the way web service is handled by microsoft and labview.

So far, I've not been able to find a work around for my VI though.

Kudos are the best way to say thanks 🙂
0 Kudos
Message 3 of 4
(2,749 Views)
Hi,


I am using .NET 2.0 and LabVIEW  8.2.  I left the VI idle for roughly 15 minutes and then ran the program.  I could not, however, reproduce the problem.

Have you tried the code on a different computer yet?

Regards,

Nadim
Applications Engineering
National Instruments
0 Kudos
Message 4 of 4
(2,739 Views)