Wolfram Language

Channel Framework

Dashboard for Remote Data

Periodically send a list of points from your Wolfram Cloud account, or any other Wolfram System, to a channel named "points".

In[1]:=
Click for copyable input
task = RunScheduledTask[ ChannelSend[ ChannelObject["points"], <|"points" -> RandomReal[{0, 1}, 100]|>], 1]

In your desktop session, start listening on that channel, and arrange to dynamically plot incoming points as they arrive.

In[1]:=
Click for copyable input
listener = ChannelListen["points"]
Out[1]=
In[2]:=
Click for copyable input
Dynamic[ListLinePlot[ If[AssociationQ[#], Lookup[#, "points"], {}] &@listener["Message"], PlotTheme -> "Marketing"]]
Out[2]=

Remove the listener and stop sending data in the cloud.

In[3]:=
Click for copyable input
RemoveChannelListener[listener]
Out[3]=
In[4]:=
Click for copyable input
RemoveScheduledTask[task];

Related Examples

de es fr ja ko pt-br zh