Daqopen – Measurement Computing Data Acquisition Systems rev.10.4 User Manual
Page 273

daqOpen
Also See: daqClose, daqOnline
Format
daqOpen(LPSTR daqName)
Purpose
daqOpen
opens an installed device for operation.
Parameter Summary
Parameter Type
Description
daqName LPSTR
String representing the name of the device to be opened.
Parameter Values
daqName:
a pointer to a string of characters—no effective range of values applies
Returns
handle
A handle to the specified device (-1 if open failed).
For more details on error messages refer to the Daq Error Table.
Function Usage
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. Refer to Daq Configuration utility sections of your user’s manual (on the CD-ROM) if
needed. An example of assigning a new Device Name follows shortly.
Example of Accessing and Using the Daq Configuration Control Panel Applet
To access the Daq Configuration applet and change its device name:
•
Run the Daq Configuration control panel applet. Navigation from the desktop to the applet is as
follows:
Start
⇒ Settings ⇒ Control Panel ⇒ Daq Configuration
•
Double-click on the Device Inventory’s DaqBoard2K0 icon. The DaqBoard/2000 Properties tab will
appear.
Programmer’s Manual
908794
Daq API Command Reference 4.5-43