Software control of RITM
To work with RITM software control functions in Engee, install the hardware support package by executing the command:
|
This page presents all available functions of the software control of the CPM "RITM" in Engee.
Methods RITM
.
#
EngeeDeviceManager.Targets.RITM.compile_model
— Method
Targets.compile_model(ritm::Any, model::Model, is_ext_mode::Bool)
Assembling a model on RITM.
Arguments
-
ritm::Any
: object of the target RITM platform. Defined with the serial commandsritm = Targets.RITM.Ritm()
andTargets.RITM.set_url(ritm, "http://192.168.56.3:8000/")
. -
model::Model
: object of type Model. -
is_ext_mode::Bool
: flag indicating the mode of model execution.true
- the model is executed in interactive mode.false
- the model is executed in the independent mode.
Examples
model = engee.gcm()
Targets.upload_model(ritm, model)
Targets.generate_executable_code(ritm, model, false)
Targets.compile_model(ritm, model)
#
EngeeDeviceManager.Targets.RITM.generate_executable_code
— Method
Targets.generate_executable_code(ritm::Any, model::Model, is_ext_mode::Bool)
Generates C-binding on RITM.
Arguments
-
ritm::Any
: RITM target platform object. Defined with the serial commandsritm = Targets.RITM.Ritm()
andTargets.RITM.set_url(ritm, "http://192.168.56.3:8000/")
. -
model::Model
: object of type Model. -
is_ext_mode::Bool
: flag indicating the mode of model execution.true
- the model is executed in interactive mode.false
- the model is executed in the independent mode.
Examples
model = engee.gcm()
Targets.upload_model(ritm, model)
Targets.generate_executable_code(ritm, model, false)
#
EngeeDeviceManager.Targets.RITM.set_url
— Method
Targets.RITM.set_url(ritm:Any, url::String)
Sets the address of the RITM machine.
Arguments
-
ritm::Any
: RITM target platform object. Set with the serial commandsritm = Targets.RITM.Ritm()
andTargets.RITM.set_url(ritm, "http://192.168.56.3:8000/")
. -
url::String
: RITM machine address.
Examples
ritm = Targets.RITM.Ritm()
Targets.RITM.set_url(ritm, "http://192.168.56.3:8000/")
#
EngeeDeviceManager.Targets.RITM.start_model
— Method
Targets.start_model(ritm::Any, model::Model)
Runs the model on RITM.
Arguments
-
ritm::Any
: RITM target platform object. Defined with the serial commandsritm = Targets.RITM.Ritm()
andTargets.RITM.set_url(ritm, "http://192.168.56.3:8000/")
. -
model::Model
: object of type Model.
Examples
Targets.start_model(ritm, model)
#
EngeeDeviceManager.Targets.RITM.stop_model
— Method
Targets.stop_model(ritm::Any)
Stops the model at RITM.
Arguments
ritm::Any
: RITM target platform object. Defined with the consecutive commands ritm = Targets.RITM.Ritm()
and Targets.RITM.set_url(ritm, "http://192.168.56.3:8000/")
.
Examples
Targets.stop_model(ritm)
#
EngeeDeviceManager.Targets.RITM.upload_model
— Method
Targets.upload_model(ritm::Any, model::Model)
Uploads the model to RITM.
Arguments
-
ritm::Any
: RITM target platform object. Defined with the serial commandsritm = Targets.RITM.Ritm()
andTargets.RITM.set_url(ritm, "http://192.168.56.3:8000/")
. -
model::Model
: object of type Model.
Examples
model = engee.gcm()
Targets.upload_model(ritm, model)