beautypg.com

Daqcreatedevice – Measurement Computing Data Acquisition Systems rev.10.4 User Manual

Page 150

background image

daqCreateDevice

Format

daqCreateDevice(pDevInfo)

Purpose

daqCreateDevice creates a device in the Windows Registry using the specified device information which is
equivalent to creating the device using the DaqX control panel applet.

Parameter Summary

Parameter Type

Description

pDevInfo

DaqDevInfoPT Pointer to the device information structure that defines the device to be created

Parameter Values

pDevInfo: see the DaqDevInfoT table below

Parameter Type Definitions

pDevInfo – (DaqDevInfoT)
Definition

Description

Format

AliasName Device

alias

name

STRING

DeviceType

Main chassis device type (see the DhiHardwareVersion table of the
daqGetInfo function)

DaqHardwareVersion

DeviceSubType Main chassis device sub type (see the DaqHardwareSubType table of

the daqGetInfo function)

DaqHardwareSubType

Reserved1

Reserved for future use

DWORD

Reserved2

Reserved for future use

DWORD

InfoType

Indicates which one of the following structures contain valid interface
specific device information (see the DaqInfoType table below)

DaqInfoType

Tcp

TCP interface information (see the DaqInfoTcpT below)

DaqInfoTcpT

TcpChild

TCP child device interface information (see the DaqInfoTcpChildT
below)

DaqInfoTcpChildT

Parallel

Parallel port interface information (see the DaqInfoParallelT below)

DaqInfoParallelT

Pci

PCI and Compact PCI bus interface information (see the
DaqInfoPciT below)

DaqInfoPciT

PcCard

PC Card interface information (see the DaqInfoPcCardT below) DaqInfoPcCardT

Generic

ISA bus interface information (see the DaqInfoGenericT below)

DaqInfoGenericT

InfoType – (DaqInfoType)
Definition

Description

DaqInfoTypeUnknown Indicates

that

the DaqDevInfoT device information structure has no interface specific

device information

DaqInfoTypeGeneric

Indicates that the Generic structure element of the DaqDevInfoT structure contains valid
interface information

DaqInfoTypeTcp

Indicates that the Tcp structure element of the DaqDevInfoT structure contains valid
interface information

DaqInfoTypeTcpChild Indicates

that

the TcpChild structure element of the DaqDevInfoT structure contains

valid interface information

DaqInfoTypeParallel

Indicates that the Parallel structure element of the DaqDevInfoT structure contains valid
interface information

DaqInfoTypePci

Indicates that the Pci structure element of the DaqDevInfoT structure contains valid
interface information

DaqInfoTypePcCard

Indicates that the PcCard structure element of the DaqDevInfoT structure contains valid
interface information

4.3-24 Daq API Command Reference

908494

Programmer’s

Manual