01-19-2012 05:52 AM - edited 01-19-2012 05:55 AM
My bad, i tricked you a little. Sorry about that. Change the Servidor to a Listen, and the Client as an Open TCP connection, then i got them to communicate (with localhost as address).
In your new attempt you're closing the TCP connection each loop!
Next is the issue of sending and interpreting the right message.
/Y
01-19-2012 05:58 AM
so i have done that??changing to listen and to conect, but i don't understand " In your new attempt you're closing the TCP connection each loop!"
01-19-2012 06:21 AM
@alan4 wrote:
so i have done that??changing to listen and to conect, but i don't understand " In your new attempt you're closing the TCP connection each loop!"
Your Close TCP connection is placed inside the loop, meaning you'll close it after each sent/listened command. Move it outside, same with Open/Listen.
The idea is: Open connection, Loop 'listen' until done, Close connection.
Your current code does: Loop 'Open connection and listen and close' until done.
/Y
01-19-2012 06:54 AM
yamaeda!!that's right now there are no errors in my codes, omnly i don't identificate the string array i am sending==why?
thanks!!
01-19-2012 08:17 AM
my final program that is...but why another error??i miss something!!can you help @Yamaeda ?
thanks really thanks!!
01-19-2012 09:03 AM
Your server now creates an array until the start value was an error ... i.e. forever!
Now you close connection outside loop, good! You however also send data outside loop, i.e. once when stopping program ... The TCP write should happen inside the loop.
After I changed the first read to 4 you'll get a correct message length read.
If you look at the recieved data you'll see that you do get some data but you cant make it into a 2D array directly, you'll have to use the inverse of your sending functions.
Since you made a Flatten to string before sending you'll need to Unflatten on the recieving end.
You're really close now. 🙂
/Y
01-19-2012 01:53 PM
By the way, if you type cast on one side, you need to type cast on the other also. String to number isn't the same thing.
/Y
01-19-2012 02:09 PM
I modified some, removed the file read to do some testing. The string to double conversion is probably unnecessary, but i changed as little as possible and now it works.
/Y
01-20-2012 12:37 AM
Sorry yamaeda but i need the program bfor the version 2009 of labview!!
thanks!
01-20-2012 01:39 AM
And i cant fix it from here, someone else able to downconvert my modified vi's?
/Y