yogi reddy Posted November 20, 2007 Report Share Posted November 20, 2007 Hi, well am unable to transfer an array of 210 elements (30*7),form a server to client, i have found examples only related to waveforms, but not any related to large data. I have been working on LABVIEW, only since 30 days. I would be pleased, if anyone could show a way to me. Thanking You all, yogi Quote Link to comment
Ton Plomp Posted November 20, 2007 Report Share Posted November 20, 2007 Yogi, could you show what you have already? Ton Quote Link to comment
yogi reddy Posted November 20, 2007 Author Report Share Posted November 20, 2007 well, am enclosing what i have done. it seems all the elements of array are overwritten on 1st element. Quote Link to comment
Ton Plomp Posted November 20, 2007 Report Share Posted November 20, 2007 QUOTE(yogi reddy @ Nov 19 2007, 12:08 PM) well, am enclosing what i have done. it seems all the elements of array are overwritten on 1st element. In the client you probably need to make this change: http://lavag.org/old_files/monthly_11_2007/post-2399-1195474307.png' target="_blank"> I added some comments, describing what happens in your old code (upper part). Ton Quote Link to comment
yogi reddy Posted November 20, 2007 Author Report Share Posted November 20, 2007 Thanks for u'r response :worship: , but,it isn't working yet, am getting error 56. I have changed the second TCP read timeout from 0 to 2000, then it has shown "LABVIEW memory is full". :headbang: Quote Link to comment
Rolf Kalbermatter Posted November 21, 2007 Report Share Posted November 21, 2007 QUOTE(yogi reddy @ Nov 19 2007, 11:22 AM) Thanks for u'r response :worship: ,but,it isn't working yet, am getting error 56. I have changed the second TCP read timeout from 0 to 2000, then it has shown "LABVIEW memory is full". :headbang: Then your sender side is wrong somehow. From what I can see you are trying to send a 2D array of a size I'm way to lazy to find out by parsing the Matlab script, every 10 ms to each connected client. If this array is anything bigger than a few elements by a few elements you happily can throw data at the winsock library that has to exhaust your memory sooner or later. Why you try to send the same data over and over again with 10ms interval to each client is really beyond me. Just send it once when a new connection arrives and then close the connection for now. Also your error handling is sub par by far. Not adding the connection refnum back into your array after an eror is a good idea, but that doesn't mean that the refnum hadn't been valid and shouldn't at least be attempted to get closed. Otherwise you leak memory with every new refnum that gets thrown out of the bath due to some communication error on that refnum. Rolf Kalbermatter Quote Link to comment
bbean Posted November 21, 2007 Report Share Posted November 21, 2007 QUOTE(yogi reddy @ Nov 19 2007, 12:22 PM) Thanks for u'r response :worship: ,but,it isn't working yet, am getting error 56. I have changed the second TCP read timeout from 0 to 2000, then it has shown "LABVIEW memory is full". :headbang: Try using this framework Simple TCP/IP Messaging (STM) Component http://zone.ni.com/devzone/cda/epd/p/id/2739 Command-based Communication Using Simple TCP/IP Messaging http://zone.ni.com/devzone/cda/tut/p/id/3098 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.