LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Arduino ADXL325 through COM port

Solved!
Go to solution

So I have created something like this on the picture. Unfortunately, it does not read any values. Also, such an error shows up. I will try to simplify the code, print only numbers and then read it in LabView I suppose.

1.PNG

michcie_0-1578239983862.png

 

0 Kudos
Message 11 of 16
(929 Views)

I said those need to be %.3f.  I did not suggest %f.

 

Put an indicator on your raw string.  That way we know if anything is coming through.

0 Kudos
Message 12 of 16
(921 Views)

I put %f.3 there but took a screenshot without it, my mistake.
So, after adding this "raw data" indicator, angle_xz worked, but angle_yz did not 😐

michcie_0-1578324805871.png

0 Kudos
Message 13 of 16
(900 Views)
Solution
Accepted by topic author michcie

%f or %.3f should work.  It is concerning to me that you are only showing "84" for angle_xz.  It should be showing "84.026".  Are you in a part of the world that uses a comma as the decimal separator?  If so, your format string should be "%.;angle_xz=%fdgangle_yz=%fdg".  The "%.;" at the beginning forces the use of a period as the decimal separator.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 14 of 16
(888 Views)

Yes, you are right and it worked 🙂

0 Kudos
Message 15 of 16
(880 Views)

@michcie wrote:

I put %f.3 there but took a screenshot without it, my mistake.
So, after adding this "raw data" indicator, angle_xz worked, but angle_yz did not 😐

michcie_0-1578324805871.png


It looks like yz worked as well.  It just happened to be 0!

0 Kudos
Message 16 of 16
(875 Views)