Behavior of Matlab client + SimpleServer
Posted: Tue Mar 08, 2016 2:00 am
Hi,
I am still stuck with streaming data from a tracking system to MatLab using a Matlab NatNet client and the simpleserver application. Since the statement
data = theClient.GetLastFrameOfData();
would only get the last frame from server, I used a call like this theClient.SendMessage('FrameRequest');
to trigger the server to build and send a frame of data. This seems to work principally, but the server hangs in some situations. To troubleshoot this, I have actually two questions:
1. What is the difference between methods "SendMessageAndWait" and "SendMessage"? Is it only as the name says: the later just sends the message and continues without doing anything regarding it?
2. On the server side if the server builds and sends a frames, does it overwrite the last frame? or are the frames buffered somewehrer?
Much thanks,
Zeno
I am still stuck with streaming data from a tracking system to MatLab using a Matlab NatNet client and the simpleserver application. Since the statement
data = theClient.GetLastFrameOfData();
would only get the last frame from server, I used a call like this theClient.SendMessage('FrameRequest');
to trigger the server to build and send a frame of data. This seems to work principally, but the server hangs in some situations. To troubleshoot this, I have actually two questions:
1. What is the difference between methods "SendMessageAndWait" and "SendMessage"? Is it only as the name says: the later just sends the message and continues without doing anything regarding it?
2. On the server side if the server builds and sends a frames, does it overwrite the last frame? or are the frames buffered somewehrer?
Much thanks,
Zeno