09-22-2010 12:14 PM
Hi everyone,
I have a two systems, server and client with login system inside. The problem is, my logout system. When I logout, I can't login for the second times.
I have try several changes but no points, it just make it more worse. So I really need your help guys.
Here I attach my programs below.
I really appreciate your kindness.
Thank you.
09-22-2010 01:30 PM
The fundamental problem you have is that once the client disconnects your listener gets closed. You need to go back and wait on another connection. Take a look at the example that ships with LabVIEW that deals with multiple connections. You can actually try that example with just one client and simply connect and reconnect the same client. The server just keeps running.
P.S. I like your front panel picture.
09-22-2010 01:37 PM
Hi Smercurio_fc,
I was take a look at the sample that you mention before which multiple connection, but it's not working in my system.
I don't know why, but is it possible because of sequence that I use in client side?
Or you have other opinion maybe?
09-22-2010 01:47 PM
@Papang wrote:
Hi Smercurio_fc,
I was take a look at the sample that you mention before which multiple connection, but it's not working in my system.
I don't know why, but is it possible because of sequence that I use in client side?
I don't understand what you mean by this. Are you referring to the examples? Are you saying that the examples don't work? Did you run the "Multiple Connections - Server" VI first? For the example the sequence should be:
Or you have other opinion maybe?
No, I don't have another opinion because what I said is the way you have to do it because that's how it works.
09-22-2010 02:55 PM
Ups sorry, What I mean is not working in my system those multiple connection samples are not similar with my current programs. The backbone is different so if I follow those samples means I should changes all the the structure of my current programs. And as you see I'm using USB camera VIs which may hard for me if some changes performed.
So any other options rather than following those samples?
09-22-2010
04:16 PM
- last edited on
10-01-2025
01:12 PM
by
Content Cleaner
Your USB camera has nothing to do with this. The connections are being made via TCP/IP, and that's how you're sending the data. The server is what's getting the information from the camera and sending it to clients. Frankly, it doesn't matter where the data is coming from. As I pointed out, once a client disconnects, that connection gets closed and you have to go back to waiting for another connection. This means you have to place the use a Create Listener outside the loop in your server and inside you need a Wait on Listener. I can't explain it any clearer than that. The example shows you exactly how to do it.
@Papang wrote:
I should changes all the the structure of my current programs.
Given what your client VI looks like that's probably a good idea anyway. That client VI is a complete mess. I have no idea what you're doing in that VI. You should seriously consider reading up on good design patterns:
http://zone.ni.com/devzone/cda/tut/p/id/5237
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x1r9CAA&l=en-US
09-23-2010 09:19 AM
It's really really hard for me to understand links that you given.
Could you explain it to me related with my programs in easiest way??
I'm really newbie here. 😞