04-01-2013 06:34 PM
Why wont the controls in my labview VI link to the NI Data Dashboard? My indicators link perfectly. When I set up the server and then do the "poll web service" on the data dashboard, it never shows me the control options to link them.
Solved! Go to Solution.
04-02-2013 10:11 AM
Currently in Data Dashboard 2.0 you can only connect inputs (controls) to a web service if you use a "Call Web Service" button. Polling Web Services only support outputs (indicators).
You have a couple options if you are interested in polling with input values. The Call Web Service button supports configuring repeated calls while you are pressing it. Or you can add a method to your web service on the server side that sets the values of the inputs one time, then have your existing method poll the outputs based on the last value of inputs that were set by the other call. Let us know if you would like more advice on how to set that up.
04-02-2013 02:50 PM
Thank you for the quick answer! I'm going to try to set up the call web service button now. However, can I do that and poll at the same time?
Additionally, can you provide detals on how to change the web service to set the values one time and therefore let me call it on its last inputs? For this type of method, do I need to change the controls on labview before it syncs the outputs with the data dashboard???
04-02-2013 03:02 PM
I've tried using the call web service function, but again, I only see the outputs (indicators) as options for me to link to.
04-02-2013 03:50 PM - edited 04-02-2013 03:50 PM
It is indeed possible to call and poll a web service at the same time. The only restriction is that you can't both call and poll the same web method in one dashboard. I'm not sure why you wouldn't see your controls on your poll web service, but maybe this will help:
I've attached a small example. In this example, I have two LabVIEW VIs that are exposed as two web methods in the same web service.
In Data Dashboard, I set up a dashboard where the "Set Inputs" method is connected to a call web service button and the "Get Outputs from Last Inputs" method is connected to a polling web service. I created controls for the inputs to the call and I created an indicator for the output of the polling. When I run it, I can set values for the input, press the button, and see the result from the output.
If this doesn't help make things clearer, maybe you could post your VIs and dashboard so we could give you more specific advice.
04-04-2013 11:05 AM
That all makes sense to me and I got almost everything to work. I now have two VI's, one with the inputs and one with the outputs. I also created the global VI and I am positive that I linked everything together correctly. Now the only issue I am seeing is that when I try to call the inputs from the labview dashboard on my ipad I can only see the outputs. I have tried calling and polling both VI's and all I see are the outputs as options to link to my data dashboard. Any ideas on why this is happening?
04-04-2013 11:41 AM
I've attached all of my files in hopes that you can see the issue I'm seeing. For some reason I really can't get the inputs to show.
04-04-2013 01:36 PM
At an initial glance, I can't see anything wrong. Maybe it's just an issue of the changes to the Web Service not making it into Data Dashboard? To fix that, make sure you try the following:
If that still doesn't work, could you post the three VIs in your project? They were missing from your last post.
04-07-2013 03:37 PM
Here are the three VIs
04-08-2013 10:53 AM
It looks like there were some problems with your web service URL mapping. The "inputs" method was pointing at the wrong VI (COAST.vi instead of inputs.vi). And the controls on inputs.vi had spaces in their names, which meant that LabVIEW couldn't create the automatic URL mapping. I've attached a project and VI that has these issues fixed. If you rebuild and redeploy the web service, hopefully you will see the inputs in Data Dashboard.