필터 지우기
필터 지우기

How to create MATLAB gRPC Client?

조회 수: 73 (최근 30일)
Muthukumar Arumugam
Muthukumar Arumugam 2022년 1월 11일
댓글: Duncan McLean 2024년 2월 28일
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
Duncan McLean
Duncan McLean 2024년 2월 28일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by