Skip to main content

Communication Interface

The communication interface uses NexusFlow Bridge to send model signals to an external program and return its outputs to the control network. Use it to connect an external controller or another co-simulation participant.

Component Appearance and Location​

Expand Signals and Communication in the component library and add Communication Interface.

Use Bind Port in the channel tables to configure connections. The interface has no visible canvas ports.

Parameters​

Compute Target

NamekeyTypeDefault / OptionsDescription
Target BridgeClientIdchoice—Select a NexusFlow Bridge paired with your account. It connects through the platform without requiring an inbound listener.
Compute ConfigurationComputeConfigIdchoice—Select a configuration that supports controlled participants. Interfaces using the same configuration revision share one process.

Input Channels (Platform → External Software)

NamekeyTypeDefault / OptionsDescription
Input ChannelsInputChannelstableConfigure one row at a timeEach row defines a scalar channel. The port binding creates the connection. Choose channel names that are unique across both tables. Export the interface again after changing a name, unit, or initial value. Changing only a valid binding in the same direction preserves the interface. An initial value cannot stand in for a missing or invalid binding.
Input Channels / Channel NameInputChannels.nametext—A stable external interface identifier that is unique across the input and output channels.
Input Channels / Bound PortInputChannels.portRefchoice__UNSELECTED__Bind a measurement or another control component's output port.
Input Channels / UnitInputChannels.unittext—A label for documentation. Use the same numerical unit in NexusFlow and the external software.
Input Channels / Initial ValueInputChannels.initialValuereal0A finite scalar initial value. A bound input reads its source port during initialization.

Output Channels (External Software → Platform)

NamekeyTypeDefault / OptionsDescription
Output ChannelsOutputChannelstableConfigure one row at a timeEach row defines a scalar channel. The port binding creates the connection. Choose channel names that are unique across both tables. Export the interface again after changing a name, unit, or initial value. Changing only a valid binding in the same direction preserves the interface. An initial value cannot stand in for a missing or invalid binding.
Output Channels / Channel NameOutputChannels.nametext—A stable external interface identifier that is unique across the input and output channels.
Output Channels / Bound PortOutputChannels.portRefchoice__UNSELECTED__Bind an actuator or another control component's input port. Each signal network can have only one driver.
Output Channels / UnitOutputChannels.unittext—A label for documentation. Use the same numerical unit in NexusFlow and the external software.
Output Channels / Initial ValueOutputChannels.initialValuereal0A finite scalar initial value. After initialization, the external participant supplies the output.

Parameter Guidance​

  • Target Bridge. Select a paired gateway available to the current account and check its connection and permissions.
  • Compute Configuration. Select a configuration that supports co-simulation participants. The workbench records the selected revision. Interfaces in the same model that share a Bridge, configuration, and revision use one external process. Reselect and confirm the configuration after it changes.
  • Input channels. Enter the name, bound port, unit, and initial value for each signal sent from the model to the external program.
  • Output channels. Enter the same four fields for each signal sent back to an actuator or controller input. Check for duplicate drivers.

Channel Direction and Connections​

Channel direction is defined from the external participant's perspective.

TableData directionCompatible port
Input channelsPlatform → external programA measurement instrument output or an enabled CONTROL output on a controller or signal arithmetic component.
Output channelsExternal program → platformAn actuator input or an enabled CONTROL input on a controller or signal arithmetic component.

The two tables support up to 256 rows in total. Names must be nonempty, unique across both tables, and free of leading or trailing whitespace. Each channel exchanges one finite scalar. Enter a finite initial value. Units document the convention agreed by both sides. The interface performs no unit conversion.

Input channels can read existing outputs. Each network fed by an output channel must have a single driver. For example, remove the constant or PID output from an actuator input driven by the external program. Bind every channel to an enabled port of the correct direction.

Modeling Steps​

  1. Configure measurement instruments, actuators, or controllers. Check their parameters and enable the ports you will use.
  2. Add the communication interface. Bind measurement or controller outputs to input channels and bind output channels to the ports that receive external commands.
  3. Give every channel a stable, unique name. Verify the quantity, units, and scalar initial value.
  4. Select the target Bridge and compute configuration. Use Export Compute Interface in the component's context menu to create JSON for Bridge. Before selecting a configuration you can export the current component alone. After selection, the export includes all interfaces in the model that use the same target and revision.
  5. After preparing the external program, confirm the selected configuration. In global settings, set Communication Period and Communication Wait Timeout. Validate and save the model, then use Start Calculation at the top of the workbench.

For example, bind a short pipe outlet pressure instrument to an input channel and a shut-off valve actuator to an output channel. The program reads pressure and returns the requested valve opening as a percentage. Use matching pressure and opening conventions on both sides.

For initial debugging, route the external output to an oscilloscope to check magnitude and timing before connecting it to equipment. See Co-simulation with Simulink.

Configuration Changes and Checks​

  • Channel changes. Export the interface again and update the external configuration after adding or removing channels or changing names, units, or initial values. Rebinding to a valid port of the same direction preserves the external declaration.
  • Empty port list. Confirm that the target component belongs to the current model, that the port is enabled, and that the direction matches.
  • Duplicate drivers. Check the entire network connected to the output channel. Remove the conflicting driver or change the signal wiring.
  • Unavailable Bridge or configuration. Check pairing, connectivity, account permissions, and whether the configuration supports participant computation.
  • Launch failure after configuration changes. Reselect and confirm the compute configuration in the workbench and compare the exported channels with the external program.

Select Platform Image or Bridge for the main kernel under Kernel Execution Mode in global Development and Debugging settings. See Choose a kernel execution mode.