View full documentation for this product with your MathWorks Account.

Login now or create an account. You gain additional benefits such as trial software downloads, online service requests and tracking, and bug reports.

  

Function Reference


Software EnvironmentDefine software and hardware environment of host and target PCs
GUIOpen xPC Target ancillary GUIs
TestRun tests from MATLAB Command Window
Target Application ObjectsControl target application on target PC from host PC
Scope ObjectsControl scopes on target PC
File and File System ObjectsControl file and file system objects in target PC file system
xPC Target Environment Collection ObjectUse xpctarget.targets object to manage target PC environment collection objects

Software Environment

getxpcenvList environment properties assigned to MATLAB® variable
readxpcfileInterpret raw data from xPC Target™ file format
setxpcenvChange xPC Target™ environment properties
updatexpcenvChange current environment properties to new properties
xpcbootdiskCreate xPC Target™ boot disk and confirm current environment properties
xpcbytes2fileGenerate file suitable for use by From File block
xpcwwwenableDisconnect target PC from current client application

GUI

xpcexplrOpen xPC Target™ Explorer
xpctargetspyOpen Real-Time xPC Target™ Spy window on host PC

Test

getxpcpciDetermine which PCI boards are installed in target PC
xpctargetpingTest communication between host and target PCs
xpctestTest xPC Target™ installation

Target Application Objects

addscopeCreate scopes
closeClose serial port connecting host PC with target PC
deleteRemove target object
get (target application object)Return target application object property values
getlogAll or part of output logs from target object
getparamValue of target object parameter index
getparamidParameter index from parameter list
getparamnameBlock path and parameter name from index list
getscopeScope object pointing to scope defined in kernel
getsignalValue of target object signal index
getsignalidSignal index or signal property from signal list
getsignalidsfromlabelReturn vector of signal indices
getsignallabelReturn signal label
getsignalnameSignal name from index list
loadDownload target application to target PC
loadparamsetRestore parameter values saved in specified file
rebootReboot target PC
remscopeRemove scope from target PC
saveparamsetSave current target application parameter values
set (target application object)Change target application object property values
setparamChange writable target object parameters
start (target application object)Start execution of target application on target PC
stop (target application object)Stop execution of target application on target PC
targetpingTest communication between host and target computers
unloadRemove current target application from target PC
xpcCall target object constructor, xpctarget.xpc
xpctarget.xpcCreate target object representing target application

Scope Objects

addsignalAdd signals to scope represented by scope object
get (scope object)Return property values for scope objects
remsignalRemove signals from scope represented by scope object
set (scope object)Change property values for scope objects
start (scope object)Start execution of scope on target PC
stop (scope object)Stop execution of scope on target PC
triggerSoftware-trigger start of data acquisition for scope(s)

File and File System Objects

xpctarget.fsbaseManage file system and FTP objects
xpctarget.ftpManage FTP objects
xpctarget.fsManage file system objects

xpctarget.fsbase

cdChange directory on target PC
dirList contents of current directory on target PC
get (ftp)Retrieve copy of requested file from target PC
mkdirMake directory on target PC
pwdCurrent directory path of target PC
rmdirRemove directory from target PC
xpctarget.fsCreate xPC Target™ file system object

xpctarget.ftp

putCopy file from host PC to target PC
xpctarget.ftpCreate xPC Target™ FTP object

xpctarget.fs

diskinfoInformation about target PC drive
fcloseClose open target PC file(s)
fileinfoTarget PC file information
filetableInformation about open files in target PC file system
fopenOpen target PC file for reading
freadRead open target PC file
fwriteWrite binary data to open target PC file
getfilesizeSize of file on target PC
removefileRemove file from target PC
selectdriveSelect target PC drive

xPC Target Environment Collection Object

Add (env collection object)Add new xPC Target™ environment collection object
get (env collection object)Return target object collection environment property values
get (env object)Return target environment property values
getTargetNames (env collection object)Retrieve xPC Target™ environment object names
Item (env collection object)Retrieve specific xPC Target™ environment (env) object
makeDefault (env collection object)Set specific target PC environment object as default
Remove (env collection object)Remove specific xPC Target™ environment object
set (env collection object)Change target object environment collection object property values
set (env object)Change target environment object property values
xpctarget.targetsCreate container object to manage target PC environment collection objects
  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS