Component: Injector (Flowcode vNet) (Test Injectors)
Author | Matrix Ltd |
Version | 1.0 |
Category | Test Injectors |
Contents
Injector (Flowcode vNet) component
Comms data injector to allow components to talk to each other between instances of Flowcode. The injector allows the data to be sent and received between multiple instances of Flowcode either running on a single machine, across a network or via the internet.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_InjectorVnet.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_InjectorVnet.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Simple Single Instance
Sends out data and prints incoming data to an LCD. Uses the same port number for transmit and receive.
Simple Multi Instance
The first program sends out data.
The second program receives the data and prints to an LCD.
Remote Lock
Here is an example of using the vNet injector to simulate a multi microcontroller system.
Microcontroller 1 is connected to a keypad and has a RS232 communications connection.
Microcontroller 2 is connected to a solenoid and has a RS232 communications connection.
Any key presses detected on microcontroller 1 will be sent via RS232 to microcontroller 2. If the correct byte sequence (1234) is received by microcontroller 2 then the solenoid is fired to unlock a door for 5 seconds.
Communications over the vNet injector can be monitored using the console.
Modbus Master and Slave example using vNet
Example of communicating using Modbus Master and Slave using two instances of Flowcode and the vNet injector component.
Macro reference
IOGetInputPin
![]() |
IOGetInputPin |
![]() |
Pin |
![]() |
Return |
IOSetOutputPin
![]() |
IOSetOutputPin |
![]() |
Pin |
![]() |
State |
![]() |
Return |
Initialise
![]() |
Initialise |
Sets up the injector ready to receive commands or send data | |
![]() |
Return |
UARTBaud
![]() |
UARTBaud |
![]() |
Channel |
![]() |
Rate |
![]() |
Return |
UARTCheckRX
![]() |
UARTCheckRX |
![]() |
Channel |
![]() |
Return |
UARTInitialise
![]() |
UARTInitialise |
![]() |
Channel |
![]() |
Return |
UARTReceive
![]() |
UARTReceive |
![]() |
Channel |
![]() |
Return |
UARTSend
![]() |
UARTSend |
![]() |
Channel |
![]() |
Data |
![]() |
Return |