Gets information about a specified VXI device from the device configuration table.
[ lStatus = ] VxiGetDevInfoStr ( lLA, lField, pbsResult )
The VxiGetDevInfoStr procedure syntax has the following parts:
|
Name |
Type |
Description |
|
lStatus |
Long |
Status |
|
lLA |
Val Long |
Device logical address |
|
lField |
Val Long |
Field number |
|
pbsResult |
Var BString |
The requested field |
The lLA contains the logical address of the device and may be obtained using the GetDriverAddress function.
The lField specifies the field number in the configuration table as follows:
|
1 |
Device name |
|
6 |
Manufacturer name |
|
8 |
Model name |
If lStatus is negative, an error has occurred. Otherwise, the function is successful.
The following loop displays the name of all devices currently configured.
For lLA=0 to 255
If VxiGetDevInfoStr (lLA, 1, sDevice) < 0
Continue
Endif
Print sDevice
Next