14.03.2014 Views

Quality and Reliability Methods - SAS

Quality and Reliability Methods - SAS

Quality and Reliability Methods - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 2 Statistical Control Charts 49<br />

Real-Time Data Capture<br />

Real-Time Data Capture<br />

In JMP, real-time data streams are h<strong>and</strong>led with a DataFeed object set up through JMP Scripting Language<br />

(JSL) scripts. The DataFeed object sets up a concurrent thread with a queue for input lines that can arrive<br />

in real time, but are processed during background events. You set up scripts to process the lines <strong>and</strong> push<br />

data on to data tables, or do whatever else is called for. Full details for writing scripts are in the JMP Scripting<br />

Language Guide.<br />

The Open Datafeed Comm<strong>and</strong><br />

To create a DataFeed object, use the Open DataFeed function specifying details about the connection, in<br />

the form<br />

feedname = Open DataFeed( options... );<br />

For example, submit this to get records from com1 <strong>and</strong> just list them in the log.<br />

feed = OpenDataFeed(<br />

Connect( Port("com1:"),Baud(9600),DataBits(7)),<br />

SetScript(print(feed

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!