07-27-2014 05:48 PM - last edited on 10-26-2015 04:28 PM by LiliMcDonald
I am using labview Multi-connection cleint and server to build my own multi-client server connection.
The problem i am having is that the data does not get through the flatten to string vi. Would anyone be kind enough to tell me why is that happening? and what I do to fix it.
Attached code . My goal is to send data to the client via tcp/ip and use the data to perform certain task.
Thanks a whole lot
Admin Note - VIs removed per user's request.
07-27-2014 06:09 PM
07-27-2014 06:18 PM
following the data flow with the lightbulb on, once it makes it out the tcp read from the client it doesnt flow through the unflatten to string so the data does not come out. but I placed an indicator befor the string goes thru the unflatten to string vi and it output something in binary of course.
I am not sure why is that happenning.
07-27-2014 07:30 PM
07-27-2014 07:52 PM
One major problem is that you are sending a cluster flattened to string for each iteration of the for loop in the server and trying to interpret each received string as an ARRAY of clusters. I get error 116 from the Unflatten from String when I use array of cluster for the type but it works fine when i use the cluster.
Lynn
07-27-2014 09:03 PM
Thanks for you input @JOhnsold, you are right about passing the wrong data type to the unflatten string. Unfortunately, as im looking at the code after i made the fix, the problem still remains. if you look at the data flow, you will notice that the from the server the data stop right before the TCP write that is inside the for loop. therefor it never gets to the client. I test the examples it work fine. the simplest addition i made to it it's causing all of that.. that's interesting....
07-28-2014 08:47 AM
Take a screenshort of what you are seeing.
That would help us to understand what you have probelms with.
07-28-2014 10:04 AM - last edited on 10-26-2015 04:28 PM by LiliMcDonald
Instead, I decided to upload the code and recent mods I have made to it .
see attached
Admin Note - VIs removed per user's request.