beautypg.com

Daqgetdeviceproperties, Format, Purpose – Measurement Computing Data Acquisition Systems rev.10.4 User Manual

Page 240: Parameter summary, Parameter values, Returns

background image


daqGetDeviceProperties

Format

daqGetDeviceProperties(daqName, deviceProps)

Purpose

daqGetDeviceProperties

returns the properties for a specified device.

Parameter Summary

Parameter Type

Description

daqName LPSTR Pointer to a character string representing the name of the

device for which to retrieve properties

deviceProps DaqDevicePropsT

Pointer to the memory area for which to return the properties
of the device specified by daqName

Parameter Values

daqName:

a pointer to a string of characters—no effective range of values applies

deviceProps:

see table below

Parameter Type Definitions

deviceProps-(DaqDevicePropsT)

Definition Description

Format

deviceType

Main Chassis Device Type Definition

DWORD

basePortAddress

Port Address (ISA Address, LPT Port, etc)

DWORD

dmaChannel

DMA Channel (if applicable)

DWORD

protocol

Interface Protocol

DWORD

alias

Device Alias Name

STRING

maxAdChannels

Maximum A/D channels (with full expansion)

DWORD

maxDaChannels

Maximum D/A channels (with full expansion)

DWORD

maxDigInputBits

Maximum Dig. Inputs (with full expansion)

DWORD

maxDigOutputBits

Maximum Dig. Outputs (with full expansion)

DWORD

maxCtrChannels

Maximum Counter/Timers (with full expansion)

DWORD

mainUnitAdChannels

Maximum Main Unit A/D channels (no expansion)

DWORD

mainUnitDaChannels

Maximum Main Unit D/A channels (no expansion)

DWORD

mainUnitDigInputBits

Maximum Main Unit Digital Inputs (no expansion)

DWORD

mainUnitDigOutputBits

Maximum Main Unit Digital Outputs (no expansion)

DWORD

mainUnitCtrChannels

Maximum Main Unit Counter/Timer channels (no exp.)

DWORD

adFifoSize

A/D on-board FIFO Size

DWORD

daFifoSize

D/A on-board FIFO Size

DWORD

adResolution

Maximum A/D Converter Resolution

DWORD

daResolution

Maximum D/A Converter Resolution

DWORD

adMinFreq

Minimum A/D Conversion Scan Frequency (Hz)

FLOAT

adMaxFreq

Maximum A/D Conversion Scan Frequency (Hz)

FLOAT

daMinFreq

Minimum D/A Output Update Frequency (Hz)

FLOAT

daMaxFreq

Maximum D/A Output Update Frequency (Hz)

FLOAT

If this function fails, make sure the daqName parameter references a valid device that is
currently configured. This can be checked via the Daq* Configuration applet located in the
Control Panel. Refer to the configuration section in your device’s user manual for more details.

Returns

DerrNoError

No

Error

4.5-10 Daq API Command Reference

908794

Programmer’s

Manual