Syntax

rthosts_obj.add(rthostenv_obj)

rthostenv_obj is optional.

Arguments

rthostenv_obj

Real-time host environment object returned by

rthostenv_obj = simwb.rthostenv

Description

add is a method of the simwb.rthosts object. If no input argument is specified, add will add a new real-time host environment object to the simwb.rthosts collection. The default name for the environment object is 'SimWB_RTHost'. If an environment with this name is already present in the collection, a new environment object with an incremented index to 'SimWB_RTHost' is added to the collection.

If the rthostenv_obj input argument is specified, it is added to the simwb.rthosts collection. If an environment with rthostenv_obj.Name name is already present in the collection, a new environment object with an incremented index to 'SimWB_RTHost' is added to the collection.

Example: rthosts_add.m