Table of Contents
qc_remove_target_uri
Stops a QUARC target from serving on a particular URI.
result = qc_remove_target_uri(model, key) % Remove URI identified by KEY on the target associated with MODEL result = qc_remove_target_uri(config_set, key) % Remove URI identified by KEY on the target associated with the configuration set result = qc_remove_target_uri(target_uri, key) % Remove URI identified by KEY on the target specified by the target URI result = qc_remove_target_uri(key) % Remove URI identified by KEY on the target associated with the current model
Stops a QUARC target from serving on a particular URI and removes the URI from the target's list of URIs. The removal is persistent so the QUARC Target Manager will not serve on that URI the next time it is restarted.
This is a very dangerous function because if all the URIs for a target are removed there will no longer be any means of connecting to that target!
If model is specified, then the target URI associated with the active configuration set of that model is used to identify the target. If a configuration set is specified then its associated target URI is used. If a target URI is specified then it is used directly to access the target.
If no target URI is specified via a model, configuration set or URI then the target associated with the current model is used.
The key argument is the key associated with the URI to remove on the target. Do not specify the URI itself. The key is associated with a URI when the URI is first added to the target. A list of URIs with their associated keys may be obtained using the qc_get_target_uris function.
model
A string indicating the name of the model from which to identify the target eg. 'q_a_lpbk
'.
config_set
A Simulink.ConfigSet
configuration set from which to identify the target (see
MATLAB Command Line
Click to copy the following command line to the clipboard. Then paste it in the MATLAB Command Window:
doc('getConfigSet')target_uri
A string containing the URI used for communicating with the QUARC Target Manager on the target.
key
A string indicating the key associated with the URI to remove e.g. 'SHMEM
'
result
Returns 0 on success and a negative error code on failure. See qc_error and qc_get_error_message for handling error codes. If no result output is assigned it issues an error on failure.
qc_remove_target_uri('SHMEM'); % Removes the URI associated with the key 'SHMEM'
See Also
Copyright ©2024 Quanser Inc. This page was generated 2024-10-17. Submit feedback to Quanser about this page.
Link to this page.