01-18-2012 05:53 AM
HI! I HAVE DONE A PROGRAM USING THE PROTOCPL TCP IP.
my question is that in this program i have two different errors, one is that i cant see in the client what i am sending, from the server and the other one is that appears in my screen that i have not enought memory to work and all labview is shut down...c
CAN YOU HELP ME??PLEASE!!
THANK YOU!!!
01-18-2012 06:07 AM - edited 01-18-2012 06:08 AM
Hello Alan,
your keyboard is broken, check the shift and caps-lock button. Somehow your header, first and last line are in caps. The rest of the messge lacks any upercasing, weird...
On topic, your server VI is a bad program. It has a memory lake functionality.
The inner loop will never finish in a normal way, only when the memory is full and the program is aborted. (like you experience).
By using a timeout of 0 ms, the Time-out output will always be True, and the loop will continue to run. What's the purpose of this?
Your upper inner while loop (that feeds the queue), will not end until the lower while loop has finished and the queue is killed, what's the purpose of this?
You should have been able to detect these issues by taking debugging steps instead of running of to these forums?
Use the supplied tools (execution highlighting to start with) to track such things!
Good luck,
Ton
01-18-2012 06:14 AM
soory ton!! but can you help me? and i am new at labview i need help!!thanks!!
01-18-2012 07:25 AM
First try to run your server VI with execution highlighting ON.
And you need to establish what you want to do!
What do you want to serve via the TCP/IP connection?
Ton
01-18-2012 07:38 AM
what i want is the information that i read from the excel file send to the client, thats all i want...nothing else more...
i think is quite easy but this error are going to kill me!!!hahaha!!!
sorry but is my project but i am a litte nervous because i have spend lot of time with this and i don't finish...
help me please!
01-18-2012 08:11 AM
i have done it view all the simulation hilighting and no error in my file...but doesn't work good...whats happen,??
have you got any idea??
01-18-2012 10:44 AM
attach the file you want to send and highlight the portion of that file you would like to receive.
01-18-2012 11:00 AM
If you want to sent the file via tcpip, there are several functions in your current program you don't need.:
-Convert the file to an 2d-array of strings, I would do that on the client side
-transport the file inside your server VI via a queue
-expand the 2d-array over and over until your VI crashes.
If you run your VI in execution highlighting mode, you'll see that the read-queue loop, NEVER FINISHES and that the array is growing with every iteration, making your VI crash.
Please post your progress!
Ton
01-18-2012 05:13 PM
sorry but i don't want to send a file,
all i want is to send the first row of one file of excel...but alot of times the same row, adding to this array the ms when is read...
fernando is a simpli exccel file ...nothing more...
i am not at the office so tomorrow i will try to repair it...thanks,,,
ton, i have seen that never stops the lopp but i dont know what put to get the correct way, do you knoew it? thanks
01-18-2012 05:15 PM
What version of LV are you using?