Matlab receive data with udpport

1 view (last 30 days)
Mark S
Mark S on 17 Apr 2022
Hello, I am trying to use udpport for receiving data with matlab. Therefore I want to test it.
Can I test it if my code works? I mean if I can use another program to send some data and test it if I receive this data with matlab? I have used the program Hercules. But that did not work.
So my question:
-Is it possible to send some data with Hercules to matlab udpport?
-Are my settings right?
%% clean up
clear all
close all
u = udpport("LocalHost","","LocalPort",59152);
data = readline(u);
A = sscanf(data,'%f');

Answers (0)


Community Treasure Hunt

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

Start Hunting!