OpenNeoDevice Method - intrepidcs API
C/C++ declare -
Parameters - Return
Values - Remarks - C/C++ example
This method opens a communication link the
a neoVI device.
int
icsneoOpenNeoDevice(NeoDevice
*pNeoDevice,
int
*hObject,
unsigned char
*bNetworkIDs,
int
bConfigRead,
int
bSyncToPC);
Parameters
pNeoDevice
[in] A valid NeoDevice
structure filled with information about a specific neoVI device. This
must be obtained by calling FindNeoDevices.
hObject
[out] The address of an int value. This will be set to the handle of the neoVI driver object that is created. It is
needed as an input parameter to other API function calls.
bNetworkIDs
[in] This
is an array of number IDs which specify the NetworkID parameter of each network.
This allows you to assign a custom network ID to each network. Normally, you
will assign consecutive IDs to each of the networks. See NetworkIDList
for a list of current network ID's.
You may also set this parameter to NULL (zero)
and the default network ID's will be used.
bConfigRead
[in] Specifies whether the DLL should read the neoVI's device
configuration
before enabling the device. It is recommended that this value be set to 1.
bSyncToPC
[in] Not
supported
If the port has been opened successfully, the return value will be 1. Otherwise the return value will be zero.
Each successful call to OpenNeoDevice
should be matched with a call to the ClosePort
and FreeObject methods.
Example
int
hObject = 0; //
holds a handle to the neoVI object
int
iRetVal;
int
iCount;
NeoDevice *pDevice = pParmIn; //created previously
intrepidcs API Documentation - (C) Copyright 1997-2020 Intrepid Control Systems, Inc. (www.intrepidcs.com) |
Last Updated : Tuesday, January 19, 2010