LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hexadecimal String To Number conversion

Solved!
Go to solution

I was trying this way to simplify both code on stm32 and labview.

I also discussed with a mate and he suggested me to reduce the baud to 9600 and this solved the problem without any others changes. This is a bit weird but works.

0 Kudos
Message 41 of 42
(1,132 Views)

@giomarinna wrote:

I worked hard and I improved my code but there is one last problem.

...

I attach some screenshot which allow you to better understand.

 

block_diag.PNG


 

Screenshots are typically quite useless (with exception). We prefer VIs.

 

I am glad you (apparently) solved the problem, but this code is just pure madness! Properly done, the code would probably fit on a postage stamp. You can unflatten the substring containing all data to an U16 array using little endian, scale, and display in an array. You should also really use more unique names. Having one terminal named "Cell 1" and another one "cell 1", and the numbers not even matched along the wires can give you unlimited headaches in the future. Wouldn't calculating 5/64k once be sufficient? Why is one of the items I16? Do you expect negative values?

 

 

 

0 Kudos
Message 42 of 42
(845 Views)