xPC Target | ![]() ![]() |
Determine which PCI boards are installed in the target PC
Syntax
getxpcpci('type_of_boards')
Arguments
type_of_boards |
Values are no arguments, 'all' and 'supported '. |
Description
The information is displayed in the MATLAB window. 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.
xpctargetping
must return success
before using the function getxpcpci
. 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 fieldnames. The struct contains more information compared to the displayed list, such as the assigned base addresses, the base and sub class.
pcidevs = getxpcpci
Display the supported and installed PCI devices.
getxpcpci('all')
Display the installed PCI devices, not only the devices supported by the xPC Target Block Library. This will include graphics controller, network cards, SCSI cards and even devices which are part of the motherboard chipset (for example PCI-to-PCI bridges).
getxpcpci('all')
Display a list of the currently supported PCI devices in the xPC Target block library. The result is stored in a struct instead of displaying it.
getxpcpci('supported')
![]() | getxpcenv | setxpcenv | ![]() |