WRITEC_f Block

This block writes the data in binary `C' file.  It has one control port and one input port.  Generally file is saved in the same directory where *.xcos file is saved but user can change the name and path of the writing file.  Before using this block, user must have writing permissions.

In this figure, we have explained that the character type data with size two is saved in binary format. First byte is for one of the two data elements of a record and second byte is for other of the two data elements of a record.  The number of bytes required depends on the type of data and size of data.  A character data type requires one byte memory space and if record size is two then two bytes are required to save a record.  Note that, index origin has been implemented in different programming languages differently. The equivalent decimal number in each memory byte represents the binary value saved in that memory cell.