Addi-Data APCI-1710 Technical Description page 74

Multifunction counter board, optically isolated
Hide thumbs Also See for APCI-1710:
Table of Contents

Advertisement

APCI-1710
Shared memory:
If you have chosen the APCI1710_Synchronous_Mode, you have no access
to the common function. However, you have the possibility to create a
shared memory (ppv_UserSharedMemory), in which all given compilers or
user defines are saved.
The variable ul_UserSharedMemorySize identifies the size in byte of the
selected user type.
An indicator of the variable pv_UserSharedMemory will be returned to the
interrupt routine with the variable pv_ USerSharedMemory. This function is
not possible in Visual Basic.
The user interrupt routine shall have the following syntax:
VOID v_FunctionName
v_FunctionName
b_BoardHandle
b_ModuleMask
ul_InterruptMask
ul_CounterLatchValue
b_UserCallingMode
pv_UserSharedMemory
The user can use other names for v_FunctionName, b_BoardHandle,
b_ModuleMask, ul_InterruptMask, ul_CounterLatchValue,
b_UserCallingMode und pv_UserSharedMemory.
IMPORTANT!
i
If you use Visual Basic 4 the following parameters have no
meaning. Use the function: "i_APCI1710_TestInterrupt".
BYTE
ULONG
VOID ** ppv_UserSharedMemory,
VOID
b_UserCallingMode,
ul_UserSharedMemorySize,
v_FunctionName
(BYTE
b_BoardHandle,
BYTE
b_ModuleMask,
ULONG ul_InterruptMask,
ULONG ul_CounterLatchValue,
BYTE
b_UserCallingMode,
VOID *
pv_UserSharedMemory)
Name of the user interrupt routine
Handle of the APCI-1710, which has
generated the interrupt.
Mask of the module, which has
generated the interrupt
(see table in the interrupt of the
respecting manual)
Mask of the event, which has generated
the interrupt
(see table of the interrupt mask in the
respecting manual)
The latched values of the counter are
returned.
(See table of the interrupt mask in the
respecting manual)
APCI1710_SYNCHRONOUS_MODE:
The user routine is called directly from
the driver interrupt routine
APCI1710_ASYNCHRONOUS_MODE:
The user interrupt routine is called
directly from the driver interrupt thread.
Indicator of the user shared memory.
(BYTE
b_BoardHandle,
Standard software
73

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the APCI-1710 and is the answer not in the manual?

Table of Contents