Component: Injector (File) (Test Injectors)
From Flowcode Help
Jump to navigationJump to search| Author | Matrix Ltd |
| Version | 1.0 |
| Category | Test Injectors |
Contents
Injector (File) component
Comms data injector to allow data to be streamed to and from a file during simulation. The component will read data from the incoming file and write data to the outgoing file.
Component Source Code
Please click here for the component source code: FC_Comp_Source_InjectorFile.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Example to log the bytes sent via the UART RS232 component to a file as comma separated decimal numbers.
LogToFile
Contents of the file in the Flowcode project directory after running the simulation.
Downloadable macro reference
| UARTBaud | |
| Channel | |
| Rate | |
| Return | |
| UARTCheckRX | |
| Channel | |
| Return | |
| UARTInitialise | |
| Channel | |
| Return | |
| SPITransfer | |
| Transfer a byte using the SPI bus | |
| Channel | |
| Channel Index: Range 0 - SPI Bus Count - 1 | |
| DataOut | |
| Return | |
| GetConsoleHandle | |
| Gets the handle to the console allowing data displaying on the panel etc. | |
| Return | |
| SPIPrescaler | |
| Modify the speed of the SPI bus | |
| Channel | |
| Channel Index: Range 0 - SPI Bus Count - 1 | |
| Prescaler | |
| Range: 0-2 | |
| Return | |
| UARTReceive | |
| Channel | |
| Return | |
| SPIInitialise | |
| Initialsie the SPI module ready for communications | |
| Channel | |
| Channel Index: Range 0 - SPI Bus Count - 1 | |
| Return | |
| UARTSend | |
| Channel | |
| Data | |
| Return | |
