LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to send more then one data via tcp

Solved!
Go to solution

well guys i'm having some problems with that

i have a program at labview that record and show for me into a graph the voltages and currents

 

now i wanna do a software... that i can track those datas from my company....

so i'm making a server/client via tcp

and i already manage to transmit one data... but i need transmit 6 data both

 

i tryed make a tab control....

but if i put the received data as a tab control

the values don't change x(

 

i will put the code of server and client...

so maybe if u guys see it

u can understand better!

 

thank you guys!

 

server.JPG

 client.JPG

 

0 Kudos
Message 1 of 43
(4,006 Views)

Hi EguU,

you send a string. You can convert every type into string. If the "type cast" function doesn't work, then you can use the "Flatten to string" function.

 

Mike

0 Kudos
Message 2 of 43
(3,985 Views)

well could u give me a simple example

like a image or something else?

 

becuz as i said, i'm a noob at labview yet =x

and i have to convert all the 6 datas to string?

or one by one?

0 Kudos
Message 3 of 43
(3,982 Views)

Hi EduU,

see the attached image, it shows two solutions.

 

Mike

0 Kudos
Message 4 of 43
(3,979 Views)

hey Mike, i tryed that solution but i received an error 74

 

Error 74 occurred at Unflatten From String in teste 3 - client.vi

Possible reason(s):

LabVIEW:  Memory or data structure corrupt.

 

and it doesn't work

i will upload the ss from client and server

maybe u can take a look and help me to find what i'm doing wrong!

 

thx for ur help!

 

 

Download All
0 Kudos
Message 5 of 43
(3,963 Views)

EDIT: deleted original post, information was incorrect.  Sorry!

Message Edited by nathand on 08-19-2009 12:19 PM
0 Kudos
Message 6 of 43
(3,943 Views)

well guys when i saw the solutions Mike sent to me

i thought omg i'm a dump

it's so easy.....

but i did it.. and now this error 74... i already tryed lot of things... but it don't work....

so if any1 else now how to solve it

please tell me!

 

thx for the help

0 Kudos
Message 7 of 43
(3,919 Views)

anyone? =~~

please i need help becuz i'm working on it on my job x(

0 Kudos
Message 8 of 43
(3,893 Views)

It is difficult to debug from screenshots.  Please upload your VI's.

 

Also, use the correct, full spelling for words like "because".  If this is for your job, it would look much more professional to communicate with words correctly spelled.

 

What is the datatype of the array going into your unflatten from string?

 

Also, your TCP read functions are reading 4 bytes for length and then some more bytes based on that.  Your writing VI just sends the array, it never sends the initial 4 bytes to tell the length.  Look at the TCP Data Client and Data Server VI's in the Example Finder.

0 Kudos
Message 9 of 43
(3,886 Views)

ok thanks for answer me!

i will upload the VI's tomorrow when i go to work

i already took a look at tcp examples at LabVIEW

and the data i'm sending at flatten string

is a 2D array that i use to calculated the voltages and currents 

so i did a appended array with those singles and send one information via flatten string

because when i sent only one single, it works perfectly, but when i tryed sent the six singles

i was having some difficult! so Mike send me 2 types of solution... and then i tryed that... but now

i'm receiving this error 74!

 

But tomorrow i will upload the VI's so i think it will be more easier to someone help me

thanks for your post!

0 Kudos
Message 10 of 43
(3,879 Views)