close

Close connection between development and target computers

Description

example

status_char_vector = close(target_object) closes the connection between the development computer and a target computer. The target object and other associated objects are still valid, and will automatically connect to the target computer the next time they are accessed.

Examples

collapse all

Access target computer 'TargetPC1' and close the connection.

Get a target object for target computer 'TargetPC1'

tg = SimulinkRealTime.target('TargetPC1')
Target: TargetPC1
   Connected            = Yes
   Application          = loader

Close the connection

close(tg)
ans =

Communication is closed

Input Arguments

collapse all

Object that represents the target computer. Before calling this function, make sure that you start the target computer with the Simulink® Real-Time™ kernel and apply the required Ethernet link settings.

Example: tg

Output Arguments

collapse all

Returns literal character vector on every call, unless close failed.

Introduced in R2014a