Unable to read UDP data with parfeval
Show older comments
Hi,
I am unable to call the read function inside a parfeval thread. I have attached the error for reference.
--------------------------------------------------
Here is the snippet of the code:
f = parfeval(p,@algorithmPipeline,0,app,adcBuffer,printBuffer);
-----------------------------
function algorithmPipeline(app,adcBuffer,printBuffer)
data = read(app.udpSock,1466,"uint8");
end
------------------------------------
The UDP is initialised and the values of app.udpSock are as follows.
UDPPort with properties:
IPAddressVersion: "IPV4"
LocalHost: "192.168.33.30"
LocalPort: 4098
NumBytesAvailable: 226771142
NOTE: When the algorithmPipeline is called normally without using parfeval it is working properly(There are no errors)
Thanks and Regards,
Srinivasan
1 Comment
Srinivasan B
on 28 Sep 2021
Accepted Answer
More Answers (0)
Categories
Find more on UDP Interface in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!