Omega OMB-DAQ-54 User Manual page 158

Usb data acquisition modules
Table of Contents

Advertisement

daqOpen(LPSTR daqName);
DLL Function
daqOpen(LPSTR daqName);
C
Visual BASIC
VBdaqOpen&(ByVal daqName$)
Delphi
daqOpen(devName: PChar)
daqName
Parameters
Returns
A handle to the specified device
See Also
daqClose, daqOnline
ADCEX1.C, FREQEX1.C, PULSEEX1.C, MULTEX1.C, DIGEX1.C, INITEX1.C, DAQEX.FRM (VB),
Program References
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(DaqDeviceListT * deviceList PDWORD deviceIndex, DWORD deviceCount);
DLL Function
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)
Parameters
DeviceList
DeviceIndex
DeviceCount
Returns
A handle to the specified DeviceList
See Also
daqCloseList, daqOnline, daqOpen, daqClose
MULTDEV.C
Program References
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.
Personal Daq User's Manual
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
daqOpen
String representing the name of the device to be opened
daqOpenList
Array of names that represents the devices to be opened
Array of indexes that represents logical device mapping for the corresponding device name
Number of devices in the array to open
Appendix B,
887095
API Commands
B-25

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Omb-daq-55Omb-daq-56

Table of Contents