User Manual 3155
Programming Reference 4-2
The RIComm.dll
Functions
The RICom.dll controls communication with the PCI bus. There are
five library functions that call this dll. These functions are described in
the following.
FindInstrument
Purpose
Scans PXI baskets for 3155 units and returns the number of instruments found.
C Syntax
INSTRUMENTSTATE FindInstrument (PDWORD pItems)
Resource Classes
PXI, PCI
Parameters
Name
Description
pItems
Returns the number of 3155’s in the system
Return Values
Completion Codes
Description
PCI_SUCCESS
Function executed without errors
Error Codes
Description
PCI_NFOUND_INS_IN_SYSTEM
No 3155’s were found in the system
Description
The
FindInstrument() scans the PCI bus for Plug & Play instruments (3155’s only) and detects
how many instruments are plugged into your system. It also initiates communications and sets up
file images with all of the found devices. Therefore, you must use this function in your program
before you use any other functions.
The information that this function provides is handy for the OpenInstrument() function because it
tells you how many instruments established valid communication link. Once you have this piece of
information you can decide which one to open and use in your application.
The FindInstrument() function returns an integer. For example, if it finds one instrument only, then
the pItems returns 0. Likewise, if there are 5 instruments in your system, then this pItems returns 4.
Содержание 3155
Страница 4: ...This page was left intentionally blank...
Страница 14: ...User Manual 3155 1 2 Overview Figure 1 1 3155 Series...
Страница 16: ...User Manual 3155 1 4 Overview Figure 1 3 WaveCAD Wave Composer Figure 1 4 WaveCAD FM Wave Composer...
Страница 41: ...User Manual 3155 Installation 2 15 Figure 2 15 Device Manager...
Страница 44: ...User Manual 3155 2 18 Installation Figure 2 19 Customer Information Step...
Страница 110: ...User Manual 3155 3 58 ArbConnection This page was left intentionally blank...
Страница 150: ...User Manual 3155 Programming Reference 4 40...
Страница 184: ...User Manual 3155 Programming Reference 4 74 This page was left intentionally blank...
Страница 202: ...User Manual 3155 Specifications A 8 This page was left intentionally blank...