该帮助的版本不再更新,请参见https://www.jmp.com/support/help/zh-cn/15.2 获取最新的版本.


(Windows only) Sends one line to the end of the data feed queue. Queue Line is primarily useful for testing your script without requiring it to be attached to a device. You can essentially simulate the data coming from the device to make sure the rest of your code handles the values properly when it's really attached to a working device.
(Windows only) Assigns the script that is run each time a line of data is received.
exfeed = Open Datafeed(
Connect( Port( "com1" ), Baud rate( 4800 ), Parity( even ), DataBits( 8 ) ),
Show( ex );
exfeed << Write( "Ready" );
exfeed = Open Datafeed(
Connect( Port( "com1" ), Baud rate( 4800 ), Parity( even ), DataBits( 8 ) ),
Show( ex );
exfeed << Write Lines( "Ready" );
exfeed = Open Datafeed(
Connect( Port( "com1" ), Baud rate( 4800 ), Parity( even ), DataBits( 8 ) ),
Show( ex );
exfeed << Write Lines( {"Ready", "Set", "Go"} );