필터 지우기
필터 지우기

HTTP API Request to equipment w/ Matlab

조회 수: 1 (최근 30일)
Dennis Premoli
Dennis Premoli 2022년 11월 28일
답변: Suvansh Arora 2022년 12월 1일
TL;DR Trying to bring together HTTP API and Matlab
Hi everyone,
I'm writing here as I feel like I'm in over my head right now ahah
I have a piece of equipment that comes with a Web UI and a HTTP API. I also have documentation for this API. That said, I have 0 knowledge of HTTP. Therefore, I am trying to understand how to use Matlab's native support for HTTP requests to change a few settings of the equipment using hte API.
The main setting I am trying to change is the following:
> TX: curl -v -X POST http://IP_ADDRESS/api/$/status/operationMode/set -d '{"mode": "RESET"}'
Essentially switching it from "Reset" mode to "Measure" mode.
It seems feasible, and probably trivial to someone who's done this before, but I'm really feeling overwhelmed with all the info (lack of info) and documentation about this sort of stuff. I've looked at some exmaples on the Matlab documentation, but I'm still lost.
Any help would be greatly appreciated.
Thanks!

답변 (1개)

Suvansh Arora
Suvansh Arora 2022년 12월 1일
In order to implement “curl requests” using MATLAB, please follow the related ML answers article for your reference:
I hope the above information helps you.

카테고리

Help CenterFile Exchange에서 Call Web Services from MATLAB Using HTTP에 대해 자세히 알아보기

태그

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by