My UDP client fell asleep and stop the package receiver, is there any command to make it listening continuously?

2 views (last 30 days)
Dear all,
I have a UDP connection between Visual Studio 2015 (server) and MATLAB 2016b (client). MATLAB receive each second data, but there is a momment that feel asleep and do not reived anything until I move the mouse. This aplication need to be recording during hours and i cannnot move the mouse manually. Is there any command to resolve it?
All the best,
Fran

Answers (1)

Sharmila Raghu
Sharmila Raghu on 29 Dec 2016
I believe in this case the operating system is going to sleep and not MATLAB. The following links are for your reference which provides steps to make sure that the operating system does not fall asleep during the data collection process:
  1 Comment
Francisco Hernando-Gallego
Dear Sharmila, Thanks for your comments. I also thought in this option and I have hold on to never.
The thing is that if I see sender display (VS) and receiver display (MATLAB) there is a moment that VS continuos sending but MS stop receiving, and I am searching for a matlab command or something like this to fell active the receiver.
All the best,
Fran

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!