Personal Daq User’s Manual
Appendix B,
887095
API Commands B-25
daqOpen
DLL Function
daqOpen(LPSTR daqName);
C
daqOpen(LPSTR daqName);
Visual BASIC
VBdaqOpen&(ByVal daqName$)
Delphi
daqOpen(devName: PChar)
Parameters
daqName
String representing the name of the device to be opened
Returns
A handle to the specified device
See Also
daqClose, daqOnline
Program References
ADCEX1.C, FREQEX1.C, PULSEEX1.C, MULTEX1.C, DIGEX1.C, INITEX1.C, DAQEX.FRM (VB),
DAQEX.PAS (Delphi)
Used With
Description
daqOpen
allows you to open an installed Personal Daq device for operation. The
daqOpen
function will initiate a session for the device
name specified by the
daqName
parameter by opening the device, initializing it, and preparing it for further operation. The
daqName
specified must reference a currently configured device.
daqOpen
should be performed prior to any other operation performed on the
device. This function will return a device handle that is used by other functions to reference the device. Once the device has been opened,
the device handle should be used to perform subsequent operations on the device.
Most functions in this manual require a device handle in order to perform their operation. When the device session is complete,
daqClose
may be called with the device handle to close the device session.
daqOpenList
DLL Function
daqOpenList(DaqDeviceListT * deviceList PDWORD deviceIndex, DWORD deviceCount);
C
daqOpenList(DaqDeviceListT *deviceList daqName, PDWORD deviceIndex, DWORD
deviceCount);
Visual BASIC
VBdaqOpenList&(ByVal deviceList$ deviceIndex&, ByVal deviceCount&)
Delphi
daqOpenList( var deviceList: DaqDeviceListT; var deviceIndex:PDWORD deviceCount:
DWORD)
DeviceList
Array of names that represents the devices to be opened
DeviceIndex
Array of indexes that represents logical device mapping for the corresponding device name
Parameters
DeviceCount
Number of devices in the array to open
Returns
A handle to the specified
DeviceList
See Also
daqCloseList, daqOnline, daqOpen, daqClose
Program References
MULTDEV.C
Used With
PersonalDaq55/56
Description
daqOpenList
allows you to open a list of
deviceCount
installed Personal Daq devices. The
daqOpenList
function will initiate a
session for the device names specified by the
deviceList
parameter by opening the devices, initializing them, and preparing them for
further operation. Once initialized, all devices in the list will be referenced via the same handle, and all operations performed on that handle
will affect all devices in the list. The specified
deviceList
must reference currently-configured devices that are currently connected to the
host system. The
deviceList
parameter should consist of device names as returned by the
daqGetDeviceList
function.
The
deviceIndex
parameter will return a list of indexes representing the logical position of the corresponding named device in the
opened device list. This index can then be used to program the appropriate device/channel pair in such functions as
daqAdcSetScan
,
daqAdcSetMux
,
daqAdcRd
…
etc.
The
daqOpenList
call should be performed prior to any other operation performed on the devices. This function will return a device
handle that other functions use to reference the devices. Once the device has been opened, the device handle should be used to perform
subsequent operations on the devices.
Most functions in this manual require a device handle in order to perform their operation. To close the device list when the session is
complete,
daqCloseList
may be called with the returned handle.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com