Skip to Main Content Skip to Search
Product Documentation

Function Reference


ClassesxPC Target .NET class descriptions
Target ComputersControl target computer hardware and operating system
Target EnvironmentsManage target computer environment collection objects
Target ApplicationsControl target application on target computer
ScopesControl scopes on target computer
ParametersRead and update target application parameters
SignalsRead and update signal values
Data LogsLog and read back target computer data
File SystemsControl target computer file system and FTP communication with target computer

Classes

xpctarget PackagePackage for all xPC Target MATLAB classes
xpctarget.env ClassStores target environment properties
xpctarget.fs ClassManage the directories and files on the target computer
xpctarget.fsbase ClassBase class of file system and file transfer protocol (FTP) classes
xpctarget.ftp ClassManage the directories and files on the target computer via file transfer protocol (FTP)
xpctarget.targets ClassContainer object to manage target computer environment collection objects
xpctarget.xpc ClassTarget object representing target application
xpctarget.xpcfs ClassControl and access properties of file scopes
xpctarget.xpcsc ClassBase class for all scope classes
xpctarget.xpcschost ClassControl and access properties of host scopes
xpctarget.xpcsctg ClassControl and access properties of target scopes

Target Computers

getxpcinfoRetrieve diagnostic information to help troubleshoot configuration issues
macaddrConvert string-based MAC address to vector-based one
xpcbenchxPC Target benchmark
xpcbootdiskCreate xPC Target boot disk or DOS Loader files and confirm current environment properties
xpcbytes2fileGenerate file suitable for use by From File block
xpcexplrOpen xPC Target Explorer
xpcgetCCCompiler settings for xPC Target environment
xpcnetbootCreate kernel to boot target computer over dedicated network
xpcsetCCCompiler settings for xPC Target environment
xpctarget.xpcCreate target object representing target application
xpctarget.xpc.getxpcpciDetermine which PCI boards are installed in target computer
xpctarget.xpc.targetpingTest communication between host and target computers
xpctargetpingTest communication between host and target computers
xpctargetspyOpen Real-Time xPC Target Spy window on host computer
xpctestTest xPC Target installation
xpcwwwenableDisconnect target computer from current client application

Target Environments

getxpcenvList environment properties assigned to MATLAB variable
setxpcenvChange xPC Target environment properties
xpctarget.env.get (env object)Return target environment property values
xpctarget.env.set (env object)Change target environment object property values
xpctarget.targetsCreate container object to manage target computer environment collection objects
xpctarget.targets.Add (env collection object)Add new xPC Target environment collection object
xpctarget.targets.get (env collection object)Return target object collection environment property values
xpctarget.targets.getTargetNames (env collection object)Retrieve xPC Target environment object names
xpctarget.targets.Item (env collection object)Retrieve specific xPC Target environment (env) object
xpctarget.targets.makeDefault (env collection object)Set specific target computer environment object as default
xpctarget.targets.Remove (env collection object)Remove specific xPC Target environment object
xpctarget.targets.set (env collection object)Change target object environment collection object property values

Target Applications

xpctarget.xpcCreate target object representing target application
xpctarget.xpc.closeClose serial port connecting host computer with target computer
xpctarget.xpc.get (target application object)Return target application object property values
xpctarget.xpc.loadDownload target application to target computer
xpctarget.xpc.rebootReboot target computer
xpctarget.xpc.set (target application object)Change target application object property values
xpctarget.xpc.start (target application object)Start execution of target application on target computer
xpctarget.xpc.stop (target application object)Stop execution of target application on target computer
xpctarget.xpc.unloadRemove current target application from target computer

Scopes

xpctarget.xpcCreate target object representing target application
xpctarget.xpc.addscopeCreate scopes
xpctarget.xpc.getscopeScope object pointing to scope defined in kernel
xpctarget.xpc.remscopeRemove scope from target computer
xpctarget.xpcsc.addsignalAdd signals to scope represented by scope object
xpctarget.xpcsc.get (scope object)Return property values for scope objects
xpctarget.xpcsc.remsignalRemove signals from scope represented by scope object
xpctarget.xpcsc.set (scope object)Change property values for scope objects
xpctarget.xpcsc.start (scope object)Start execution of scope on target computer
xpctarget.xpcsc.stop (scope object)Stop execution of scope on target computer
xpctarget.xpcsc.triggerSoftware-trigger start of data acquisition for scope(s)

Parameters

xpctarget.xpcCreate target object representing target application
xpctarget.xpc.getparamValue of target object parameter index
xpctarget.xpc.getparamidParameter index from parameter list
xpctarget.xpc.getparamnameBlock path and parameter name from index list
xpctarget.xpc.loadparamsetRestore parameter values saved in specified file
xpctarget.xpc.saveparamsetSave current target application parameter values
xpctarget.xpc.setparamChange writable target object parameters

Signals

xpctarget.xpcCreate target object representing target application
xpctarget.xpc.getsignalValue of target object signal index
xpctarget.xpc.getsignalidSignal index or signal property from signal list
xpctarget.xpc.getsignalidsfromlabelReturn vector of signal indices
xpctarget.xpc.getsignallabelReturn signal label
xpctarget.xpc.getsignalnameSignal name from index list

Data Logs

xpctarget.xpcCreate target object representing target application
xpctarget.xpc.getlogAll or part of output logs from target object

File Systems

xpctarget.fsCreate xPC Target file system object
xpctarget.fs.diskinfoInformation about target computer drive
xpctarget.fs.fcloseClose open target computer file(s)
xpctarget.fs.fileinfoTarget computer file information
xpctarget.fs.filetableInformation about open files in target computer file system
xpctarget.fs.fopenOpen target computer file for reading
xpctarget.fs.freadRead open target computer file
xpctarget.fs.fwriteWrite binary data to open target computer file
xpctarget.fs.getfilesizeSize of file on target computer
xpctarget.fs.readxpcfileInterpret raw data from xPC Target file format
xpctarget.fs.removefileRemove file from target computer
xpctarget.fs.selectdriveSelect target computer drive
xpctarget.fsbase.cdChange folder on target computer
xpctarget.fsbase.dirList contents of current folder on target computer
xpctarget.fsbase.mkdirMake folder on target computer
xpctarget.fsbase.pwdCurrent folder path of target computer
xpctarget.fsbase.rmdirRemove folder from target computer
xpctarget.ftpCreate file transfer protocol (FTP) object
xpctarget.ftp.get (ftp)Retrieve copy of requested file from target computer
xpctarget.ftp.putCopy file from host computer to target computer
  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

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