LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

webservice - multiple clients

Hello,

 

I have developed communicator that allows users to exchange some informations between each other. There is server application written in labview that handles clients that are connected and this works good. It can only work on PC.

 

When client connects there is handler created on server side that interacts with that client.

Is there a way to extend this functionality to mobile devices so that people on PC and mobile could use that?

I was thinking about webservices, but I have never used it before and I don't know if that can be done in simple way.

 

In client there is login window, main panel, client can open chat windows with other users and some popups are displayed by cilent when server sends that request.

 

Do You know if that can be done?

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

Yes, it can be done.

 

Depending on what sort of communication you're using at the moment, you might want to take a look at my WebSockets library (linked in my signature) - the example in the package is a simple example of sending and receiving messages between LabVIEW and a browser - it works on most PC and mobile browsers. It just wraps the TCP/IP functions and with a bit of html/javascript you can communicate between browsers and LabVIEW with low latency.

 

For handling multiple clients - you'll need to implement an appropriate architecture - listening for connections and then either spawning an asynchronous 'connection handler' VI or store the connection references in an array. There's a TCP/IP example for having multiple clients which uses the latter method.

 

 


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 2 of 2
(2,947 Views)