Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.1 - Français

Change language to:
English - 日本語 - Português

Please note that the recommended version of Scilab is 2024.1.0. This page might be outdated.
See the recommended documentation of this function

Aide Scilab >> Xcos > palettes > Sources palette > RFILE_f


Read from file

Block Screenshot



This block allows user to read data in a file, in formatted or binary mode. Output record selection and Time record selection allows the user to select data among file records. Each call to the block advance one record in the file.

The pair block is .

Dialog box

  • Time record selection

    an empty matrix or a positive integer.

    If an integer is given the th element of the read record is assumed to be the date of the output event. If empty no output event exists.

    Properties : Type 'vec' of size -1.

  • Outputs record selection

    a vector of positive integer.

    . The th element of the read record gives the value of i th output.

    Properties : Type 'vec' of size -1.

  • Input file name

    a character string defining the path of the file.

    Properties : Type 'str' of size 1.

  • Input Format

    a character string defining the Fortran format to use or nothing for an unformatted (binary) write. If given, the format must began by a left parenthesis and end by a right parenthesis. example: .

    Properties : Type 'str' of size 1.

  • Buffer size

    To improve efficiency it is possible to buffer the input data. read on the file is only done after eachBuffer size call to the block.

    Properties : Type 'vec' of size 1.

Default properties

  • always active: no

  • direct-feedthrough: no

  • zero-crossing: no

  • mode: no

  • regular outputs:

    - port 1 : size [1,1] / type 1

  • number/sizes of activation inputs: 1

  • number/sizes of activation outputs: 0

  • continuous-time state: no

  • discrete-time state: yes

  • object discrete-time state: no

  • name of computational function: readf

Interfacing function

  • SCI/modules/scicos_blocks/macros/Sources/RFILE_f.sci

Computational function

  • SCI/modules/scicos_blocks/src/fortran/readf.f (Type 0)


Ramine Nikoukhah - INRIA

<< READC_f Sources palette SAWTOOTH_f >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Mar 03 11:00:15 CET 2011