Read hexadecimal value Simulink

2 ビュー (過去 30 日間)
Laura
Laura 2022 年 12 月 7 日
回答済み: Adit Kirtani 2023 年 3 月 20 日
Hi,
I am trying to read the values from a HX711 ADC for a load cell. I am using a STM32F4 to read the values. Given HX711 outputs the data in hexadecimals, I am wondering if/how I can read those in Simulink?
Thanks!
PS: I am aware of the arduino library for the HX711, but I cannot use an arduino for this project.

回答 (1 件)

Adit Kirtani
Adit Kirtani 2023 年 3 月 20 日
Hi Laura,
I would suggest using a MATLAB function block to convert the hexadecimal values into decimal values. You can refer to this community post for details:
I hope this helps,
Adit Kirtani.

カテゴリ

Help Center および File ExchangeArduino Hardware についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by