06-05-2014 10:58 AM
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,
Solved! Go to Solution.
06-06-2014 02:07 AM
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!
06-06-2014 06:25 AM
Hi Blokk,
are you able to reproduce Step 3 (connecting to the shared variable?)?
06-06-2014 06:27 AM
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."
06-06-2014 06:29 AM
Hi,
have you tried to ping your smartphone from the host computer?
06-06-2014 06:38 AM
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.
06-06-2014 06:59 AM
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"
😞
06-06-2014 07:03 AM
Hi,
thats good to hear. As I understand now you were able to add your host computer as New Server?
06-06-2014 07:05 AM - edited 06-06-2014 07:10 AM
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!
06-06-2014 07:11 AM
Hi,
maybe this KB will provide some help => http://digital.ni.com/public.nsf/websearch/6E37AC5435E44F9F862570D2005FEF25?OpenDocument