Showing results for 
Search instead for 
Did you mean: 

Send the data collected by the android cell phone sensors to Labview installed on a PC

Go to solution



My question is if someones knows a way to connect the cell phone and the PC to share the values of the sensors of an android cell phone (barometer, termomether, gyroscope, etc).


Can the DATA dashboard app or any other app available on the Android market access the data of these sensors and send them via a shared variable to the PC?


Any ideas?


Thanks in advance

0 Kudos
Message 1 of 12
Accepted by topic author itorrano

There might be an App that allows you to transmit the values over the WiFi connection via TCP/IP or UDP. That's probably the easiest way to do it (and means you don't have to write your own . You then just need to write the LabVIEW code to connect to the phone and listen for /read the data.


For example - this looks like such an App (but there are many others):

LabVIEW Champion, CLA, CLED, CTD
0 Kudos
Message 2 of 12
To reinforce Sam's excellent advice, if you have the option, it is almost always better to leverage standard protocols and interfaces.


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 12

thanks both for your quick reply.


I will try what you commented.

0 Kudos
Message 4 of 12



I tried this app that enables UDP streaming of any sensor values available on the Android cell phone.


I am trying now to modify the example available "Simple UDP.lvproj" on Labview help to read the data sent by the cell phone via UDP.


I am modifying the "Simple-UDP" but I get an error when I introduce the ip adress of my cell phone. Please find enclosed a screenshot of the error. I also attach the example.


Sorry for my ignorance since I am quite new to Labview environment and I am not very familiar to network communication systems.


I would be really appreciated it if someone can help to configure it correctly.


Thanks in advance

0 Kudos
Message 5 of 12

Sorry I forget to attach the files. 

Download All
0 Kudos
Message 6 of 12
Accepted by topic author itorrano

The IP address you are listening to, looks like the internet IP address of the phone. There are various reasons this won't work - Reason 1 is that IP addresses on mobile networks are shared amongst multiple devices. Reason 2 is that UDP packets get blocked across subnets, if I remember correctly.


For it to work, your phone will need to be on the same network - i.e. it will need to be done over WiFi. 

LabVIEW Champion, CLA, CLED, CTD
0 Kudos
Message 7 of 12

Thanks for your answer.


Yes I was making quite obvius mistake, sorry.


I have set up everthing correct now and it is working well. 


Thanks for your support

0 Kudos
Message 8 of 12

Please feel free to mark the appropriate post as a solution and give Kudos where appropriate for useful answers. This helps others find solutions to their problems. 🙂

LabVIEW Champion, CLA, CLED, CTD
0 Kudos
Message 9 of 12

Respected all, i am getting the value in a unknown format. eg: - <ÉÀg=ĝ[¿~ê how to convert as understandable format ?

0 Kudos
Message 10 of 12