– "CR": ASCII character 13 (carriage return)
– "LF": ASCII character 10 (line feed)
– "CRLF": Uses both CR and LF in sequence.
Description
Example
/* Example - send a message to external device over the serial port to trigger data messages. This can be used to send control messages to a sensor or other attached device.*/
exfeed = Open Datafeed(
Connect( Port( "com1" ), Baud rate( 4800 ), Parity( "even" ), DataBits( 8 ) ),
Set Script(
ex = exfeed << Get Line;
Show( ex );
)
);
exfeed << Write( "Ready" );
Description
Sends a quoted string to the data feed device. If EOL has been set for the data feed, the quoted strings are terminated by the specified EOL value. If EOL has not been set, the line is terminated with CRLF.
Example
/* Send a message to external device over the serial port to trigger data messages. This can be used to send control messages to a sensor or other attached device.*/
exfeed = Open Datafeed(
Connect( Port( "com1" ), Baud rate( 4800 ), Parity( "even" ), DataBits( 8 ) ),
Set Script(
ex = exfeed << Get Line;
Show( ex );
)
);
exfeed << Write Line( "Ready" );
Description
Sends a list of quoted strings to the data feed device. If EOL has been set for the data feed, the quoted strings are terminated by the specified EOL value. If EOL has not been set, the line is terminated with CRLF.
Example
/* Send a message to external device over the serial port to trigger data messages. This can be used to send control messages to a sensor or other attached device.*/
exfeed = Open Datafeed(
Connect( Port( "com1" ), Baud rate( 4800 ), Parity( "even" ), DataBits( 8 ) ),
Set Script(
ex = exfeed << Get Line;
Show( ex );
)
);
exfeed << Write Lines( {"Ready", "Set", "Go"} );