17
hardware function, which normally will not be used during normal programming. Refer
to "Chapter 5, Register Detail" for its offset addresses and corresponding functions if
you need to use this it.
Parameter
:
Index
:
card index
,
select card number to operate.
nOffset
:
offset address, which can be found on the user manual.
*pResult
:
The fetched value.
Return value
:
0
:
Success
;
-1: Failure.
WriteDevice()
long
_stdcall
WriteDevice(
unsigned
long
Index,
unsigned
long
nOffset,
unsigned
long
DataToWrite)
Notes
:
To perform 32-bit write IO operation on the board register. This function is a low-level
hardware function, which normally will not be used during normal programming. Refer
to "Chapter 5, Register Detail" for its offset addresses and corresponding functions if
you need to use this it.
Parameter
:
Index
:
card index, to select the card to manage
nOffset
:
offset address, which can be found in this manual.
DataToWrite
:
the data to write.
Return value
:
0
:
Success
;
-1: Failure.
AiConfig()
long
_stdcall
AiConfig(
unsigned
long
Index,
unsigned
long
StartMode,
unsigned
long
IrqMode,
unsigned
long
ScanMode)
Notes
:
Configure the DAQ card register, that is write offset address 32.
Parameter
:
Index
:
card index, to select the card to manage.
StartMode
:
start mode, 0 for software startup, 1 for external trigger timing start
IrqMode
:
interrupt mode, 0 for external trigger interrupt, 1 for FIFO half full interrupt
Attention
:
only when StartMode is 1, interrupts are effective.
Содержание PCI-1255
Страница 1: ...PCI 1255 Multifunctional DAQ Device User Manual Smacq Technologies Co Ltd 2015 09 10...
Страница 15: ...14 Figure 3 1 Basic tests using example codes...
Страница 26: ...25...