09.12.2012 Views

Basic Characteristics RAPID

Basic Characteristics RAPID

Basic Characteristics RAPID

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

WriteBin Writes to a binary serial channel<br />

Example<br />

Arguments<br />

WriteBin is used to write a number of bytes to a binary serial channel.<br />

WriteBin channel2, text_buffer, 10;<br />

10 characters from the text_buffer list are written to the channel referred to by<br />

channel2.<br />

WriteBin IODevice Buffer NChar<br />

IODevice Data type: iodev<br />

Name (reference) of the current serial channel.<br />

Buffer Data type: array of num<br />

The list (array) containing the numbers (characters) to be written.<br />

NChar (Number of Characters) Data type: num<br />

Program execution<br />

Limitations<br />

Error handling<br />

The number of characters to be written from the Buffer.<br />

The specified number of numbers (characters) in the list is written to the serial channel.<br />

This instruction can only be used for serial channels that have been opened for binary<br />

reading and writing.<br />

If an error occurs during writing, the system variable ERRNO is set to<br />

ERR_FILEACC. This error can then be handled in the error handler.<br />

<strong>RAPID</strong> Reference Manual 8-WriteBin-1

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

Saved successfully!

Ooh no, something went wrong!