Simulink digital input to decimal from HX711
Mostrar comentarios más antiguos
Hi, I have a Simulink Real Time setup with a MCCDAQ PCIM-DAS1602/16 data acquisition card, a S-type load cell and a HX711 load cell amplifier/ADC which outputs a serial binary number from a data pin, as it really is made for an Arduino. I understand that Simulink has the ability to convert binary numbers to decimal numbers, but I can't really figure out which block does this and how it is supposed to work with Simulink Real Time.
I want to connect the data pin to one of the digital input pins on the DAQ, convert the 32 character long serial string of 0s or 1s to decimal in Real Time. Hope I have explained myself well enough.
Help is greatly appreciated :)
5 comentarios
Magne Kloster
el 3 de Mayo de 2017
Sudarshan Kolar
el 8 de Mayo de 2017
Hello Magne,
By "which block does this", are you referring to a simulink block that does the conversion or the corresponding block in the hardware?
Please clarify.
Sudarshan
Magne Kloster
el 8 de Mayo de 2017
Sudarshan Kolar
el 10 de Mayo de 2017
Hi,
Please refer the following link:
https://www.mathworks.com/matlabcentral/answers/28501-binary-to-decimal-conversion-in-simulink-and-vice-versa
Sudarshan
Jiang Ping
el 14 de En. de 2019
hi have you figured this out? I am also having trouble processing signal from HX711 in simulink.
Respuestas (1)
Jon Lobo
el 24 de Jul. de 2017
0 votos
If the data follows a certain format, like the binary representation for a floating point number, then you probably want to use the byte pack/unpack blocks that are available with Simulink Real-Time.
Categorías
Más información sobre System Configuration en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!