LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get separately the 3 axis of cell phone's accelerometer

Hello, 

I have the same problem as the problem in this post :  https://forums.ni.com/t5/LabVIEW/Accelerometer-3-axis/m-p/3707391#M1043053

but im using my cell phones accelerometer (cell phone: samsung j5 2016). I use the app sensor UDP ( https://play.google.com/store/apps/details?id=com.ubccapstone.sensorUDP&hl=en ) to transfer the accelerometer's data over UDP protocol in my PC and LabView , but i only take one value for each of the 3 axes. I need a value separately for Y axis as im working on a project in which my cell phone will make vertically a track of (max) 180 degrees. 

Thank you in advance!

0 Kudos
Message 1 of 2
(1,874 Views)

Well, as someone who tried to help in the previous Post (but got no useful response from the Original Poster), the problem is all in "getting the data from the device into LabVIEW".  You are using a UDP protocol to get the data -- have you verified that it works, have you programmed it correctly in LabVIEW, have you any experience with LabVIEW's TCP/IP Protocol VIs?

 

If you want help with your LabVIEW code, then post your code.  The best way (in my opinion) to do this is to attach your VI (or VIs -- if you are working with a LabVIEW Project, compress the folder holding the Project files and attach the resulting .zip files).  The least helpful thing to do is to attach no code, the next worse is to attach a picture of a piece of code (which we can't inspect easily, can't run, etc.).

 

Bob Schor

0 Kudos
Message 2 of 2
(1,831 Views)