Scripting Guide > Extending JMP > Real-Time Data Capture on Windows
发布日期: 04/13/2021

Real-Time Data Capture on Windows

A data feed is a real-time method to read data continuously, such as from a laboratory measurement device connected to a serial port. A data feed object sets up a concurrent thread with a queue for input data lines that arrive in real time and are processed with background events. You set up scripts to interpret the data lines and push the data to data tables, or do whatever else your process requires.

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

feed = Open Datafeed(
	Connect( Port( "com1:" ), Baud( 9600 ), DataBits( 7 ) ),
	Set Script( Print( feed << GetLine ) )
);

Figure 14.1 A Datafeed Window Shows the Status and Offers Controls 

需要更多信息?有问题?从 JMP 用户社区得到解答 (community.jmp.com).