08-19-2009 06:58 AM
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!
Solved! Go to Solution.
08-19-2009 08:20 AM
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
08-19-2009 08:37 AM
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?
08-19-2009 08:49 AM
Hi EduU,
see the attached image, it shows two solutions.
Mike
08-19-2009 10:51 AM
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!
08-19-2009 11:15 AM - edited 08-19-2009 11:19 AM
EDIT: deleted original post, information was incorrect. Sorry!
08-19-2009 12:55 PM
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
08-19-2009 09:55 PM
anyone? =~~
please i need help becuz i'm working on it on my job x(
08-19-2009 10:19 PM
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.
08-19-2009 11:22 PM
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!