From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

Asynchronous read with FP_Advise

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);
0 Kudos
Message 1 of 2
(4,973 Views)
Kris,

This is a known issue and I will post a fix once it becomes available.

John M
0 Kudos
Message 2 of 2
(4,973 Views)