National Instruments FOUNDATION NI-FBUS Hardware And Software User Manual page 80

Table of Contents

Advertisement

Chapter 6
NI-FBUS Function Reference
nifOpenPhysicalDevice
Purpose
Returns a descriptor representing a physical device.
Format
nifError_t
Input
ud
tagOrDevID
name
Output
out_ud
Context
Link, session.
Description
nifOpenPhysicalDevice
must pass a valid session or link descriptor to this function. If you pass a link descriptor,
the NI-FBUS Communications Manager searches only that link for the specified device.
There are two ways you can specify the device. If the
the
specifies the tag of the physical device. If
name
device ID of the device you specify. You can obtain the list of physical device tags and device
IDs of devices on the network with a call to
Return Values
E_OK
E_INVALID_DESCRIPTOR
E_BAD_ARGUMENT
E_NOT_FOUND
NI-FBUS Hardware and Software User Manual
nifOpenPhysicalDevice (
nifDesc_t ud,
uint8 tagOrDevID,
char *name,
nifDesc_t *out_ud)
A valid session or link descriptor on which to open the device.
How to specify the device: zero if by physical device tag, one if by
device ID.
The tag or device ID.
A descriptor for the device you request
returns a descriptor for the physical device you specify. You
nifGetDeviceList
The call was successful.
The input descriptor is invalid.
The
value is not valid.
tagOrDevID
No attached physical device has the specified device ID or
physical device tag.
6-18
parameter is zero, then
tagOrDevID
is one, then
tagOrDevID
.
is the
name
ni.com

Advertisement

Table of Contents
loading

Table of Contents