Live Data Feed
![]() |
|
Description: This script demonstrates how JMP works with a live data feed. It opens a feed and then watches for new data to appear in it. When it does, it grabs the data and puts it in a new row of the data table. A control chart is opened on this data column so as new data appear, it is automatically charted.
A live data feed is an external source of data made possible by a physical and a logical communication link. In the demonstration, such a source is simulated by using a random number generator to put values into the stream. The rest of the script is the same as it would be for a real data feed.
Note that actual messages are commented out, but you can remove the simulation lines and take the comments out for a working script. This claim assumes that you have an actual external feed and the communication settings match the situation.
In addition to the data table and the demonstration window with the control charts, two more windows are open. The Datafeed window shows you the current status of the data feed and the Scheduler window shows you the current status of the status of the queued event, which the simulator exploits. The various windows are arranged so that you can easily see them all at once.
Instructions: Open and run the script. The initial dialog offers good values for all parameters to start with, so just click OK. The control charts are fully functional. You can have them run special tests, assign alarm scripts, or any other interactive command in the menu.
Note that the control charts update for each point entered. The mean and range until all the values in the subgroup are present and then it starts on the next subgroup.
You can simulate any process variable that is a Gaussian distribution. In the opening dialog, you can change the process mean and sigma and the subgroup size (please do not select any number less than 2). You can also control the sample rate. It is set at one second between data values. If you decrease this number, then you get values more quickly. If you increase this number, then you get values more slowly.
Note: Do not press any of the buttons on the Data Feed window or the Scheduler window. Normal operation would exploit these controls but in this case the script is controlling every thing. Please use the Stop button in the demonstration window instead.
Requirements: None.


