User`s guide

getxpcpci
14-61
14getxpcpci
Purpose Determine which PCI boards are installed in target PC
Syntax MATLAB Command Line
getxpcpci(target_object, 'type_of_boards')
Arguments
Description The getxpcpci function displays, in the MATLAB window, which PCI boards
are installed in the target PC. By default,
getxpcpci displays this information
for the target object, tg. If you have multiple target PCs in your system, you can
call the
getxpcpci function for a particular target object, target_object.
Only devices supported by driver blocks in the xPC Target Block library are
displayed. The information includes the PCI bus number, slot number,
assigned IRQ number, manufacturer name, board name, device type,
manufacturer PCI ID, and the board PCI ID itself.
For a successful query,
The host-target communication link must be working. (The function
xpctargetping must return success before you can use the function
getxpcpci.)
Either a target application is loaded or the loader is active. The latter is used
to query for resources assigned to a specific PCI device, which have to be
provided to a driver block dialog box prior to the model build process.
Examples Return the result of the query in the struct pcidevs instead of displaying it.
The struct
pcidevs is an array with one element for each detected PCI device.
Each element combines the information by a set of field names. The struct
contains more information compared to the displayed list, such as the assigned
base addresses, the base, and subclass.
pcidevs = getxpcpci
Display the installed PCI devices, not only the devices supported by the xPC
Target Block Library. This includes graphics controller, network cards, SCSI
cards, and even devices that are part of the motherboard chip set (for example,
PCI-to-PCI bridges).
target_object Variable name to reference the target object.
type_of_boards
Values are no arguments, 'all', and 'supported'.