Please enable JavaScript to view this site.

Note: Deprecated. The f_read_table_s function (from RTE 33.21) is recommended.

Reads, from a file present in flash, an array of data that is stored in consecutive real registers or in a specified real array.

Syntax

i32 f_read_table (string fileName, i32 nEntry, i32 nData, buff)

fileName

Name of the file to read data from.

It must also contain the partition of the flash

nEntry

Number of table entries

nData

Number of data per entry (max 16), that is, the number of data for each row in the file

buff

It must be a variable of one of the following types:

array of variables of type stru_cam

real register rr or nvrr, from which the cam data read from the file must be stored

local array of real variables in which the cam data read from the file is to be stored

array of structures containing only real variables

Result

Returns:

Value

Description

> 0

One or more elements are missing. Returns the number of the row that is missing at least one element

0

Read OK

-1

Read OK. More data in the file

-2

Read OK. Less data in file than expected. Incorrect table

-10

File does not exist

-11

Number of data per line illegal

-12

Number of illegal entries

-14

Empty file

Validity

Task

Note

If functions regarding compact flash management are used, it is recommended that bit 14 of the sys_cfg variable (0x00004000) be imposed to 1, to enable the use of safety routines for flash write/read

The data obtained will then be used in a rule to execute the mv_table() and mv_cam() functions.

The data contained within the file must respect the following rules:

maximum line size: 128 characters

maximum single item size: 18

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC