User`s guide
getxpcpci
whichhavetobeprovidedtoadriverblockdialogboxbeforethe
model build process.
Examples The following example displays the installed PCI devices, not only
the devices supported by the xPC Target block library. This includes
graphics controllers, network cards, SCSI cards, and even devices that
are p art of the motherboard chip set (for example, PCI-to-PCI bridges).
getxpcpci('all')
ThefollowingexampledisplaysalistofthecurrentlysupportedPCI
devices i n the xPC T arget block library, in cluding subvendor an d
subdevice information.
getxpcpci('supported')
ThefollowingexampledisplaysalistofthecurrentlysupportedPCI
devices i n the xPC T arget block library, in cluding subvendor an d
subdevice information and base address register contents.
getxpcpci('verbose')
When called w ith the 'supported ' option, getxpcpci does not access
the target PC.
To displa y t he list of PC I d evices installed on the ta rget PC,
tg1,first
create a target object,
tg1, for that targ et PC. T hen, call getxpcpci
with the 'all' option. F or example:
tg1=xpctarget.xpc('RS232','COM1','115200')
getxpcpci(tg1, 'all')
To return the result of a getxpcpci query in the struct pcidevs instead
of displaying it, assign the function to
pcidevs. 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. Its contents vary
according to the options you specify fo r the function.
18-80