Skip to content

fs_dir_list

pierre drezet edited this page Aug 20, 2025 · 1 revision
FileSystemDirList1 Misc ↓ Params ↓ Ports ↓

This component is used to retrieve a list of entries in a directory, the entries are retrieved one at a time until there are no more entries to retrieve.
The directory is specified by the parameter Directory and is overridden to the data input [In]dir when the input event [In]set dir is asserted. If a valid directory has been specified then the output event [Out]Ready is triggered, else [Out]Error is triggered. The directory path is relative to "userdata" in the EHS root directory unless the "use app dir" option is true, in which case the files are relative to "appdata" which are are packaged in the RESOURCE section of iAB's project.
If it is required, the root directory of the device can be referenced by prefixing the path with the "/" character if OS specific file system data is needed (This should be avoided!).

A list of entries in the directory is presented, one entry at a time, to the data output [Out]name on each occassion that the input event [In]get entry is asserted and the output event [Out]file or [Out]dir is triggered depending on whether the entry is a file or directory respectively. If there are no further entries in the list then the output event [Out]no more is triggered when the input event [In]get entry is asserted. The parameter FindFiles is a Boolean value that specifies if files should be retrieved from the list of entries. Similarly the parameter FindDirs is a Boolean value that specifies if directories should be retrieved from the list of entries.

The reset input event [In]reset will retrieve the first entry in the list the next time that the input event [In]get entry is asserted. If the input event [In]set dir is triggered then this also resets to retrieve the first entry in the list for the specified directory.

name type default min. max. description
Directory S None Media Directory None The path of the directory to list the entries of.
FindFiles B 1 0 1 Boolean value to indicate whether files are retrieved from the list.
FindDirs B 0 0 1 Boolean value to indicate whether directories are retrieved from the list.
In Ev.
set dir Input event, sets the directory to list the entries of.
reset Input event, resets to retrieve the first entry of the list.
Data In
dir Data input, the path of the directory to list.
Data Out
name Data input, the path of the directory to list.
Out Ev.
Ready Output event, triggered when the path specified is a valid directory.
Error Output event, triggered when the path specified is not a valid directory.
file Output event, triggered when the entry retrieved is a file.
dir Output event, triggered when the entry retrieved is a directory.
no more Output event, triggered when there are no more entries to retrieve.
------ Output event.
State Machine None
Toolbox Core Version v1.0.
Licence Type MPL2.0 Component Supplier inx ltd.
Minumum DCC A0000 Profiles All.

Core Components

Events & Triggers

State Management

  • STATE - Represents a State in Lucid
  • state_condition - Event driven state condition --> transition and actions
  • state_debug - To debug state machines this function block is required.
  • state_manager - Each state machine is defined by a State Manager

Array & Data Structures

Buffers & Queues

Primitive Data Constants

Data Converters

Boolean Logic



Mathematics

Alebraic Evaluation

Mathematical Operators

Inequalities

Trigonometry

Other Functions

Data Selection

  • indexed_mux_int - Indexed Mux Int
  • indexed_mux_str - Indexed Mux String
  • map_int - Map Int
  • mux_1b - mux_1b
  • mux_1i - mux_1i
  • mux_1r - mux_1r
  • mux_1s - mux_1s
  • mux_2b - MultiplexTwo Input Bool
  • mux_2i - MultiplexTwo Input Int
  • mux_2r - MultiplexTwo Input Real
  • mux_2s - MultiplexTwo Input String
  • mux_3b - MultiplexThree Input Bool
  • mux_3i - MultiplexThree Input Int
  • mux_3r - MultiplexThree Input Real
  • mux_3s - MultiplexThree Input String
  • mux_4b - MultiplexFour Input Bool
  • mux_4i - MultiplexFour Input Int
  • mux_4r - MultiplexFour Input Real
  • mux_4s - MultiplexFour Input String
  • mux_8b - 8-Input Indexed Boolean Multiplexer Function Block
  • mux_8i - 8-Input Indexed Integer Multiplexer Function Block
  • mux_8r - 8-Input Real Number Multiplexer Function Block
  • mux_8s - Number Multiplexer Function Block
  • num_mux - Numeric Multiplexer Function Block

Data Processing & Parsers

Database & Storage

Demultiplexers

String Functions

File Operations



Basic IO Components

GPIO & Hardware I/O



Graphics and UI Components

GUI & User Interface

User Input

  • keypress - Reads key presses & control keys

Unity & Web Integration

  • inx-unity - Provides media and animation widget interface
  • unity2 - Unity 3D
  • webkit - JavaScript/WebKit Interface (Obsolete)

Language & Localization



Media Components

Audio & Media

Digital TV & Media Control



Communications Components

TCPIP Network & Communication

Wireless & LPWAN Networks

Fieldbus Comms



Digital Signal Processing

  • ADC Polled Analogue to Digital converter.
  • ADC_continuous Advanced ADC supporting clocked ISR modes and advanced signal averaging.
  • FFT8 Fast Fourier Transform of 8 bit binary input data
  • FIR8 Finite Impulse Response filter for 8 bit binary data.
  • IIR8 Infinite Impulse Response filter for 8 bit binary data.
  • [calibrate](ADC calibrate) - Calibrates the ADCs


Control Systems Components

PID Controllers



Machine Learning & Machine Vision

  • mv_camera - Provides access to camera input data image streams
  • mv_idsplay - Renders camera image streams.
  • mv_resize - Resizes an image using given interpolation method
  • mv_crop - Crops and image width and height at a give offset
  • mv_apriltag_reader Plain Old Prgramming AprilTag Reader
  • ml_tflite_inference Machine learning model inference.
  • ml_osvm Online iterative machine learning (training& inference).


Platform Components

System Utilities

  • reboot - Reboot the device
  • rtc - RealTimeClock - provdes date/time from RTC device or OS.
  • rtinfo - RuntimeInfo (e.g. MAC/IP address, memory,... )
  • scheduler - Weekly Scheduler
  • system_exec - Executes linux shell commands
  • rng - Random Number Generator (may use hardware RNG)

Time Components

Application Management

Over the Air Update (OTA)

  • ota - OTA Function Block for updating firmware
  • ota_data_parser - Assembles OTA data files from Devman.


Non-functional Components

Some function blocks that can be used Lucid app are for visual/organisation purposes only and do not translate into any executable ert-components.

Sub System Input/Output Ports

-Note this file is autogenerated from ert-config help files and may not currently be complete or properly categorised!

Clone this wiki locally