xPC Target | ![]() ![]() |
xPC Target is a PC solution for prototyping, testing, and deploying real-time systems.
This part includes the following chapters:
Alphabetical list of MATLAB functions - The following table is a list of functions and methods you enter in the MATLAB command window. Methods can be associated with a target or scope object.
Function or method name |
Object type |
Description |
addscope |
target |
Creates a new scope with type 'host' or 'target' on the target PC. |
addsignal |
scope |
Adds a signal to a scope and a scope object. The signal is specified using the signal indices from the target object. |
close |
target |
Close the serial connection to the target PC so that the host PC can use the COMM port for another device. |
get |
target |
Returns the value of readable properties from a target object. |
get |
scope |
Returns the value of readable properties from a scope object. |
getlog |
target |
Uploads and returns one of the data logs from the target PC to the host PC. TimeLog, StateLog, OutputLog, TETLog |
getparamid |
target |
Returns the property name or index of a parameter from the target object. |
getscope |
target |
Returns the properties of a previously created scope from the target PC. The scope properties can be assigned to a MATLAB variable to create a scope object. |
getsignalid |
target |
Returns the property name or index of a signal from the target object. |
getxpcenv |
List environment properties in the MATLAB window or assign the list as a cell array to a MATLAB variable. |
|
load |
target |
Downloads a target application from the host PC to the target PC. |
reboot |
target |
Reboot the target PC. If a target application is running, the target application is stopped, and then the target PC is rebooted. |
remscope |
target |
Removes a scope from the target PC. This method does not remove the scope object, on the host PC, that represent the scope. |
remsignal |
scope |
Removes a signal from a scope and a scope object. The signal is specified using signal indices from the scope object. |
set |
target |
Sets writable target object properties to the specified value. |
set |
scope |
Sets writable scope object properties to the specified value. For a list of writable values, use set(scope_object) |
setxpcenv |
First of two steps to change environment properties. See also updatexpcenv. |
|
start |
target |
Starts the execution of a target application on the target PC. |
start |
scope |
Starts a scope, but does not necessarily start the acquisition of data. The acquisition of data is dependent on the trigger mode. |
stop |
target |
Stops the execution of a target application on the target PC. |
stop |
scope |
Stops a scope and the acquisition of a data. |
trigger |
scope |
If TriggerMode='Software' , starts the acquisition of data from the target application. |
unload |
target |
Unloads a target application from the target PC. If a target application is running, it is stopped and unloaded. |
updatexpcenv |
Changes the current environment properties to equal the new properties entered using the function setxpcenv. |
|
xpc |
target |
Creates a target object on the host PC (constructor). |
xpcbootdisk |
Creates a boot floppy disk containing the kernel according to the current environment properties. |
|
xpcscope |
Opens the scope manager window on the host PC for scopes with type host. |
|
xpcscope |
Opens the scope manager window on the host PC for scopes with type host. |
|
xpcsetup |
Opens the Setup window. |
|
xpcsetup |
Opens the Setup window. |
|
xpctargetspy |
Open the Target Spy window on the host PC. Use this GUI to upload the target PC screen to the host PC. |
|
xpctargetspy |
Open the Target Spy window on the host PC. Use this GUI to upload the target PC screen to the host PC. |
|
xpctest |
Test the xPC Target installation. |
|
xpctest |
Test the xPC Target installation. |
![]() | Using Target Scope Blocks with Stand-Alone | Environment Reference | ![]() |