14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - 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 14 Extending JMP 469<br />

Real-Time Data Capture<br />

Real-Time Data Capture<br />

A Datafeed is a real-time method to read data continuously, such as from a laboratory measurement device<br />

connected to a serial port. A Datafeed object sets up a concurrent thread with a queue for input lines that<br />

arrive in real time and are processed with background events. You set up scripts to interpret the lines and<br />

push the data to data tables, or do whatever else your process requires.<br />

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

feed = Open Datafeed(<br />

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

Set Script( Print( feed

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

Saved successfully!

Ooh no, something went wrong!