Read INI File

<< Click to Display Table of Contents >>

Navigation:  Waijung Blockset > Block References > Misc > File Stream >

Read INI File

Previous pageReturn to chapter overviewNext page

User Interface

How this block appears in a Simulink model?

filestream_readinifile_block

What can be configured?

filestream_readinifile_mask

Configuration item

Selectable option/ Value

Description

INI Section

(Specify INI section)


INI Keys (cell array)

(Specify INI keys)

Each key name is an input port.

Max string length (bytes)

(Max length of string in reading buffer)


INI value type

Pointer | Vector

Pointer: The return value is string buffer pointer, represented in uint32

Vector: The return value is vector data type uint8.

Sample time (sec)

(Sample time)

Specify block sample time

Input port

1. File path

This input port specify file name to open for Write. It can be:

1.1 String pointer, which from "Volatile Data Storage Read" block of variable type "String".

1.2 Vector data of uint8. Note: the data vector must contain 0 to indicate NULL terminate string, example: uint8(['file1.txt' 0])

Output port

1. Status

0: Success, otherwise fail.

2. INI keys

Reading value corresponding to the INI key.

Demos

Device Boot Loader (SD Card)