Measurement Computing Personal Daq rev.6.0 User Manual
Page 162
B-30 API Commands
Appendix B,
887095
Personal Daq User’s Manual
Table 1.
daq Device Property Definitions daqGetDeviceProperties
Property
Description
Format
deviceType
Main Chassis Device Type Definition
DWORD
basePortAddress
Not Used
DWORD
dmaChannel
Not Used
DWORD
protocol
Host computer Interface used
DWORD
alias
Device Alias Name
STRING
maxAdChannels
Maximum A/D channels (with full expansion)
DWORD
maxDaChannels
Not Used
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
Not Used
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
Not Used
DWORD
daFifoSize
Not Used
DWORD
adResolution
Maximum A/D Converter Resolution
DWORD
daResolution
Not Used
DWORD
adMinFreq
Minimum Scan Frequency (Hz)
FLOAT
adMaxFreq
Maximum Scan Frequency (Hz)
FLOAT
daMinFreq
Not Used
FLOAT
daMaxFreq
Not Used
FLOAT
MainUnitCjcChannels
Number of CJC channels on the main unit
DWORD
TotalCjcChannels
Number of CJC channels in the system
DWORD
SerialNumber
Serial Number for the device
DWORD
ExpansionUnits
Number of expansion units
DWORD
SubDeviceType
Type of expansion unit
DWORD
Table 2.
General I/O Definitions
Digital I/O Port Connections devPort - daqIODevicePort
Personal Daq Port
Value
Description
DiodpPdaqPort1 00h
Local Port 1
DiodpPdaqPort2 01h
Local Port 2
DiodpPdaqExpPort1 02h
Expansion Port 1 (PDQ Option)
DiodpPdaqExpPort2 03h
Expansion Port 2 (PDQ Option)
DiodpPdaqPowerUpPort1 10h
Power-up Setting for Local Port 1
DiodpPdaqPowerUpPort2 11h
Power-up Setting for Local Port 2
DiodpPdaqPowerUpExpPort1 12h
Power-up Setting for Exp Port 1
DiodpPdaqPowerUpExpPort2 13h
Power-up Setting for Exp Port 2
I/O Port Type devType - daqIODeviceType
Personal Daq Type
Value
Description
DiodtPdaqDigIO 0ch
For all units except Personal Daq/54
I/O Operation Code Definitions whichDevice
Personal Daq Device
Value
Description
Device Index
Varies
See daqOpenList function
whichExpPort - daqIOExpansionPort
Device Expansion Port
0
Field ignored for Personal Daq
daqIOOperationCode
DioocReadByte 0
DioocWriteByte 1
Note
:
daqIOOperationCode
does not
DioocReadWord 2
apply to Personal Daq/54.
DioocWriteWord 3
DioocReadDWord 4
DioocWriteDWord 5