05-13-2013 09:37 PM
Hello LabVIEW Masters!
Good Day to all of you!
I just want to ask for a piece of advise. I need to do data logging and monitoring from multiple (100+) remote sites. From the remote site, there will be a data logger and a GSM modem that will send a measurement update from certain interval. And from a base station, I will have a main progam that receives through another GSM modem, collects the data for monitoring and disk logging.
I'm thinking of using a Producer-Consumer architecture and I've done that before. However, I had use it before, but the incoming data is from 2 sites only. I done it by having 2 loops, which polls data from each site. But for this application, data will be streaming from 100+ sites. If I use this method, then I have to implement 100+ polling loops also?
Will it make the Main program slow?
Is there a more efficient way to do this?
Please help.. I gladly appreciate any knowledge imparted to me. More Power!!
Thanks and Regards,
Dennis
05-14-2013 01:13 AM - edited 05-14-2013 01:16 AM
It really depends how you build up the server part. If you are going to use TCP/IP you can take a look at the examples, namely
examples\viserver\runvi.llb\DateServerUsingReentrantRun.vi
examples\comm\TCP.llb\Multiple Connections - Server.vi and it's according clients
These implement two ways to have one single server loop handle more than one incoming client request in parallel. The first is better if you have to handle relatively few new connections per minute but with moderate data throughput, the second is better if you have many recurring incoming connections with small amounts of data each time.
05-14-2013 03:47 AM
hello rolfk,
Thank you very much for your response!
I will definitely try your advice.
Best regards,
Dennis