LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

I using the FP_Advise window of the function panel. After running panal, I get an ERROR MESS.:Error-Data

type conflict, Function-FP_Advise, Control-Callback Function, Position-parameter 8, Data type of control-IAHandle, Data type in declaration: void *. Is a function declaraed wrong?I think there was a mistake for the callback, Any help is appreciated ThanksUsing LabWindow/CVI and Field Point
0 Kudos
Message 1 of 2
(2,884 Views)
type conflict, Function-FP_Advise, Control-Callback Function, Position-parameter 8, Data type of control-IAHandle, Data type in declaration: void *. Is a function declaraed wrong?I think there was a mistake for the callback, Any help is appreciated ThanksIt sounds like you are using interactive execution - ie running the FieldPoint Advise function straight from the function panel and not within a program. The FieldPoint Advise function is rather advanced, as it allows asynchronous reading of fieldpoint hardware. It would be very difficult to get this function (as well as FP_Read_Cache) to work properly from the interactive window. Instead, I recommend integrating this function into your project source and debugging from their. For an example of using the FP_Advise function, please refer to the FP AI Read Cache example in the CVI/Samples/FieldPoint directory.

Personally, I almost always use the FP_Read function instead, which is much more straight-forward and easy to use. For most FieldPoint programs, FP_Read works j
ust fine and the extra power of FP_Advise and FP_Read_Cache are not needed.

Regards,
Greg Caesar
National Instruments,
Applications Engineer
0 Kudos
Message 2 of 2
(2,884 Views)