LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can VI server handle (and queue) many requests that come in at the same time?

I have a robot control program that allows users to control a robot through the internet. I wonder what would happen if many users send commands to control a robot at the same time. Will the VI server automatically queue all requests? If so, how many is the maximum request that VI server can queue? Do I have to set some option in LabVIEW to make the VI server queue those requests?
0 Kudos
Message 1 of 2
(2,559 Views)
Actually, LabVIEW does not queue the requests to run the VI. I assume that you are wanting users to open a reference to your VI and then run it? What actually happens is that, when User A tries to run the VI, if it is already being run by User B, then User A will receive an error.

However, there are a couple of other options you have, depending upon how your application works. Possibly the best thing to do would be to use remote panels. This allows users to request control of the VI, and only then run the VI. Otherwise, they must wait until control is released by another user. You could also use TCP and allow reentrant running of you VI. To see how this is done, take a look at the DateServerUsingReentrantRun.vi example which ships with LabVIEW.
J.R. Allen
0 Kudos
Message 2 of 2
(2,559 Views)