Clear Filters
Clear Filters

How to create MATLAB gRPC Client?

73 views (last 30 days)
Muthukumar Arumugam
Muthukumar Arumugam on 11 Jan 2022
Commented: Duncan McLean on 28 Feb 2024
Hi,
I'm trying to create gRPC client in MATLAB.
Followed this
and asked this,
After some struggle, now i have created protoc.exe compiler for matlab following
I have experience in C# and C++ gRPC, and im very new to Matlab.
When i created matlab files from proto with protoc.exe i have cretaed, it created only proto message related files and i couldnot file the files for rpc.
I have attached the created files and sample proto i used.
With C# and C++, compiler used to create client/server files for RPC as well and i was able to use that in my code to configure ip address and call them.
I dont know how to use this created files in matlab client.
If this is not the right way to create MATLAB client for gRPC, please guide me.
Thanks in advance.
  1 Comment
Duncan McLean
Duncan McLean on 28 Feb 2024
I'd love to know if you ever got this working.
If I was to look into this, my first pass would likely be to use gRPC for Java or Python since MATLAB can talk to either language. My experience with both bridges is that they are pretty slow. It's also possible to call C++ directly from MATLAB. I've done that much less, but it's definitely faster if performance is a concern.
Of course those sorts of integrations only work well for one time integrations. If you're looking for a general solution that can start at any .proto file and generate appropriate MATLAB class files then it sounds like you were on the right track.

Sign in to comment.

Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!