LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP/IP PROGRAM ERROR

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!!!

Download All
0 Kudos
Message 1 of 18
(3,810 Views)

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?

SERVIDOR_tcpip_BD.png 

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 

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 2 of 18
(3,804 Views)

soory ton!! but can you help me? and i am new at labview i need help!!thanks!!

0 Kudos
Message 3 of 18
(3,796 Views)

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 

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 4 of 18
(3,787 Views)

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!

0 Kudos
Message 5 of 18
(3,779 Views)

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??

0 Kudos
Message 6 of 18
(3,770 Views)

attach the file you want to send and highlight the portion of that file you would like to receive. 

Message 7 of 18
(3,758 Views)

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 

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 8 of 18
(3,743 Views)

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

0 Kudos
Message 9 of 18
(3,727 Views)

What version of LV are you using?

Message 10 of 18
(3,724 Views)