Get Complex Array Item At Index
File:TArduinoComplexArrayGetItem.png
Summary
Retrieves a complex array item at a specified index.
Description
The **Get Complex Array Item At Index** component extracts a single element from a complex array based on the **Index** property or pin. If the specified index is valid, the corresponding complex value is output at the **Out** pin. If the array is empty, the **Empty** pin is triggered. If the index is out of range and Ignore Out Of Range is disabled, the **Out Of Range** clock pin is triggered. This component is useful for random access of array elements without iterating through the entire array.
Diagram:
Categories
- File:TArduinoComplexCategory.png Category Complex – Complex number processing.
- File:TArduinoArraysCategory.png Category Arrays – Array access and retrieval.
Properties
- Enabled – Enables or disables the component.
- Ignore Out Of Range – If enabled, prevents errors or clock events when the index is invalid.
- Index – The array index to retrieve (integer).
Pins
- In – Complex array input.
Output Pins
- Out – Outputs the complex value at the specified index.
- Empty – Clock pin triggered if the array is empty.
- Out Of Range – Clock pin triggered when the index is outside the array bounds (disabled if Ignore Out Of Range is true).