R021 Process Adapter
Outline
The Process adapter start a process and reads its output (stdout). The received data is forwarded to a configurable reader. Scripts are used to send data to the process (stdin) and activate the streaming environment (stimulation). The adapter can be combined with other adapters using a multi-adapter port.
Platforms |
|
|||
Requirements |
|
|||
Known limitations |
|
|||
Status |
|
|||
Operations |
|
|||
Parameters: |
|
Video
Source Configuration
- Command: Type in the command.
- Parameter: Type in the command parameters.
- Path: Select the working directory for the process.
- Write input to file: Select a file to log the input stream.
You may specify a file "Write input to file" to store the raw input for debugging purpose.
Serializer
Configure the serializer by selecting a reader and optionally a reader configuration (some reader require a configuration, e.g. the CSV reader).You may use the buttons '+' and '...' to add and manage existing reader configurations (Preferences).
You may use the "Test Line Reader" (extracts lines from the raw input) and "Test Block Reader" (extract fixed size byte blocks) for debugging purpose.
Synchronization
Using a multi adapter port, you can combine an unlimited number of different input adapters. The synchronization section of the adapters allows you to synchronize inputs with different domain bases (e.g. each input has its own time base).
11 SynchronisationStimulation
There may be cases where the application need to be stimulated to make the source data available. In this case, enable the "Enable Script" check and extend the stimulation script according to your needs.
The script is executed after connecting (background thread).
// process: java.lang.Process // log: java.io.OutputStream, // out: java.io.OutputStream, // progress: progress control of type IPortProgress // console: console output of type MessageConsoleStream out.write(0x10); java.lang.Thread.sleep(100); out.write(0x15);