Hardware:
FP-1600 (firmware 3.11) + FP-DI-301
Software:
FieldPoint Explorer (rel. 2.0.4)
CVI 5.5
Operating System:
Windows NT SP5
Purpose:
Asynchronous read with FP_Advise (code below):
Advise process is configured in order to call my service
routine (D_Vu) on input changes (notifyOnChange = 1),
using asynchronous callback mechanism. The poll rate
is 100 ms.
Problem:
At run time, the service routine is called each poll
cycle (10 times per second), but not at data change.
Whats's wrong ?
Code used:
//input change service routine
void CVICALLBACK D_Vu (void* buffer)
{
count++;
}
//configuration code
FP_Open (NULL, &FP_handle);
FP_CallbackFuncPtr D_VuPtr = D_Vu;
FP_CreateTagI
OPoint (FP_handle, "VT340", "FP-DI-301 @1", "coutureOF",
&IO_handle))
FP_Advise (FP_handle, IO_handle, 100, 1, advisebuf,
BUFFER_SIZE, 1, D_VuPtr, NULL, &advise_ID);