Smartphones, Tablets, and Mobile Devices Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing a Cluster as Shared Variable For XY graph On Android Tab

Highlighted

Hi all,

I am trying to pass a cluster to my dashboard using a shared variable so that i can connect it as input to XY graph. The input cluster is a pair of 1-D arrays of 16 elements each.

I have tried to create a custom Data type by creating a cluster of two 1-D arrays and saving it as a .ctl file and then adding the shared variable as this data type. But when I added the web service method(polling) on the data dashboard it didnot show any variables availabe.

I am attaching Siome snapshots for reference. Please help

.var.PNG

VI.png

cluster.PNG

0 Kudos
Message 1 of 5
(3,454 Views)
Highlighted

You should be using an array of clusters containing two elements each. In other words, it's N clusters of two numbers, not a cluster of 2 arrays of N numbers.

0 Kudos
Message 2 of 5
(2,206 Views)
Highlighted

Hi Adam,

Is this is what you were asking me to do.

Capture.PNG

If yes then, this worked.

Thanks.

0 Kudos
Message 3 of 5
(2,206 Views)
Highlighted

That looks correct to me. Did you refresh? The list of variables is cached so whenever you make a change on the server you should refresh the list by pressing the refresh button in Data Dashboard. The refresh button is in the bottom right of the dialog that lists the variables.

0 Kudos
Message 4 of 5
(2,206 Views)
Highlighted

Hi Adam,

Thanks for all the help. It worked perfectly.

0 Kudos
Message 5 of 5
(2,206 Views)