LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

instances of a vi in web services

Hello,

 

I am using LabVIEW web services (http://www.ni.com/white-paper/7747/en). I created a vi that gets the value from a form in a webpage, do some calculation, and send result back to the user.

A question came to my mind: if multiple users connect to the webserver, a different copy of my vi will be loaded into the memory, or all users use the same vi.

 

0 Kudos
Message 1 of 2
(2,175 Views)

Hello ManiAm,

 

If there will be multiple copies of the VI is totally depending on how you program your code. You can serve client requests in a FIFO maner or in a parallell way. There is a tutorial describing these with TCP commands more closely, also containing a example. FIFO maner however will be much more memory sufficient if you don't have that many clients that will try to connect at the same time. If you however have many clients that are trying to communicate at the same time, it might be better with a parallell way to handle the requests as the clients wont need to wait for their request as long then. But a better server computer is needed for many clients connecting in parallell.

 

http://www.ni.com/white-paper/4431/en

http://www.ni.com/white-paper/4433/en

http://zone.ni.com/devzone/cda/epd/p/id/3341

 

Best regards

Jonas Mäki

Best regards
JM, LabVIEW CLA
0 Kudos
Message 2 of 2
(2,097 Views)