Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending data to an sbRIO from an Android device

Hi there,

 

I don't know much about internet protocols, but I think what I'm trying to achieve is simple, and yet I havn't found a solution. Then again, maybe I just didn't do a good enough search job...

 

Say I have an sbRIO-9642 connected to a wireless router, and an adnroid smartphone connected thorugh wifi to the same router. Is it possible to have my phone sending data to the sbRIO?

 

Someone once told me that this cannot be done, because the communication between the sbRIO and a PC running LabView (either over a router or through an ethernet cable going directly between the two) is not the same as between 'normal' internet devices such as computers and smartphone, because LabView uses a communication protocol specifically designed for having a PC talking to an sbRIO. In other words, my PC and my sbRIO communicate with each other in a way that is not the same as with two computers (TCP/IP or something like that, I guess).

 

As I said, I don't know much about all those communication protocols, but shouldn't it be simple enough to just have the android send a few numbers to the sbRIO?

 

 

Thanks,

Roee.

0 Kudos
Message 1 of 4
(6,155 Views)

Hello RoeePartoush,

 

While your Android device and the sbRIO cannot directly communicate like a PC (with NI-RIO drivers) and the sbRIO can, you could potentially use some of the communications standards to communicate to the sbRIO.  For example, using TCP/IP communication, you could have the sbRIO listening on a specific port for a connection, then make that connection and transfer data from your Android device.  Additionally, you could host a web service on your sbRIO that you could use to access a remote panel through a web browser fo perform functions.  From a remote panel, you could access controls and variables on the sbRIO.  

 

We also have Data Dashboard available for Android devices that can display shared variables on the sbRIO if you are just looking to view data.  I have linked it below:

 

Data Dashboard for Android

 

So, yes there are ways for communicating with your sbRIO from your Android phone.  They are not as easy as using a PC, but there are ways.  I would recommend looking into the TCP/IP communication standard and seeing if you could implement something on your Android device to do what you need.  Let me know if you have any questions!

 

| Zach J. | Systems Engineer, HIL and Test Cells | National Instruments |
0 Kudos
Message 2 of 4
(6,133 Views)

Hello

 

I have a problem very  look like to your, I need communicate my android device with my LabWIEW and take some data from the device process and send response to the sbRio using wifi, it's possible??

 

 

PS: Sorry for my english..

 

0 Kudos
Message 3 of 4
(6,019 Views)

Hello,

 

Just as Zach previously mentioned there are different ways to use your Android Device with LabVIEW and sending/ collecting data.  The simplest that is designed for Android and mobile devices is Data Dashboard.  This allows you to use Web Services and shared variables to easily share data to your Smartphone.

 

You can also set up a Remote Front Panel with a Web Server.  This would allow you to view and get data from an internet browser.

 

Regards,

M. Whitaker
ni.com/support
0 Kudos
Message 4 of 4
(5,993 Views)