LabVIEW Web UI Builder and Data Dashboard

cancel
Showing results for 
Search instead for 
Did you mean: 

connect to shared variable (android)

Solved!
Go to solution

hello,

 

I just started to learn how to use the Labview Data Dashboard for android.

I made a very simple project, with a VI which generates some random numbers. I also added a network published shared variable to this project, and I write the generated random number to this shared variable at every second.

 

I would like to read this value on my android phone (Motorola Razr i, Android 4.1.2) using the Data Dashboard for Android application.

 

I have a wireless access point, and both my laptop (which hosts the LabView project, Labview 2013) and my smart phone is properly connected to this wireless router, and both gets dynamic IP addresses.

 

I start to run my VI on the laptop, and the shared variable inside the lvlib properly deployed, and starts to broadcast (i guess) its value to the network.

I start the DD app on my smart phone, and I choose "Connect to shared variable", I type the local IP address of my laptop, which is 192.168.0.100, and I try to connect.

After some "searching" and waiting, I get a "connection error" message.

 

What do I do wrong?

 

Thanks very much for help,

Best Regards,

0 Kudos
Message 1 of 13
(10,521 Views)

hello,

 

I have found another strange thing. I wanted to also try to use the web service methode, but on my system I cannot find certain elements.

This white-paper:

http://www.ni.com/white-paper/13757/en/#toc4

Here already  at the beginning I am stucked 😞 This white-paper tells me that first I need to deploy web service, but first I need to create one:

"Create a new Web service. Right-click Build Specifications in the Project Explorer window and select New>>Web Service (RESTful). "

 

Well, under my "build specifications", I see every items in this tree from exe to ZIP, but the "Web service (RESTful)" option is missing.

Is this an additional package in LabView?

 

Thanks!

0 Kudos
Message 2 of 13
(10,511 Views)

Hi Blokk,

 

are you able to reproduce Step 3 (connecting to the shared variable?)?

 

 

0 Kudos
Message 3 of 13
(10,504 Views)

Hello,

 

No, as I wrote in my post:

"

I start the DD app on my smart phone, and I choose "Connect to shared variable", I type the local IP address of my laptop, which is 192.168.0.100, and I try to connect.

After some "searching" and waiting, I get a "connection error" message."

 

 

0 Kudos
Message 4 of 13
(10,502 Views)

Hi,

 

have you tried to ping your smartphone from the host computer?

 

0 Kudos
Message 5 of 13
(10,500 Views)

Hi, 

 

you should also check if the services "NI Variable Engine" & "NI System Web Server" are started (type services.msc in your command prompt) on your host computer.

0 Kudos
Message 6 of 13
(10,495 Views)

1., ping works, however usually with a 25% loss, but most of the packages get through.

2., I can also start the NI Distributed System Manager, and it shows the variable is online and broadcasted.

(also, the "NI Variable Engine" & "NI System Web Server"  are started and running)

 

edit: ok, I have found the problem, I had to open ports: 2343, 5000-5020, and 6000-6020 (i found another post where someone had a firewall problem) on the host laptop's firewall.

 

Now I can see two lines on my smartphone under the "Choose a variable":

dashboardtest1 (the name of my lvlib)

System

 

When I tap on "dashboardtest1", where my variable (double type) is located, I get this message:

"No supported variables"

 

😞

 

0 Kudos
Message 7 of 13
(10,491 Views)

Hi,

 

thats good to hear. As I understand now you were able to add your host computer as New Server?

0 Kudos
Message 8 of 13
(10,486 Views)

I can see my laptop from my smart phone, yes, and also the server name.

However, I get the "no supported variables" error msg... 😞

 

I have also attached my test project.

 

thanks for any help!

0 Kudos
Message 9 of 13
(10,484 Views)
0 Kudos
Message 10 of 13
(10,478 Views)