LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Interaction with server

Hello,
I have to interact with a server, by sending a password, followed by some data.
There has to be this interaction with the server:

I send password to server, I end my string with CRLF = "password"
server sends back "OK"
I send GSMNetwork (string) to server, I end my string again with CRLF
server sends back "OK"
I send GSMRoaming (string) to server, I end my string again with CRLF
server sends back "OK"

The problem is that the server takes some time for authentication (so between line 2 and 3 above) and I have to wait +-13 seconds before I can send the GSMNetwork-data. How can I implement this in LabView?

The rest of the data-transmission is the same (send and receive with server), I just need some help to do the first steps. Can anyone help me?

see attachment for my current version
0 Kudos
Message 1 of 3
(2,554 Views)
Can you simply stick a Time Delay function (Time & Dialog palette) after the second step? The function has error in/error out connections so the data flow is easy. If the time it takes for the server is widely variable, what happens when you send a command too early? Does it respond with an error message or something? If that's the case, putting the next write/read in a loop until you get the expected response would work.

Message Edited by Dennis Knutson on 04-20-2005 09:47 AM

0 Kudos
Message 2 of 3
(2,551 Views)
ok, I tried with a while-loop and that works. thanks!
0 Kudos
Message 3 of 3
(2,533 Views)