While using the examples given with Fieldpoint server 3.0.1, I ran into difficulties trying to get an additional thermocouple module TC-120 to run in Labwindows CVI 5.5
Here's my setup:
FP-1000 @0
FP-TC-120 @1
FP-AI-100 @2
FP-AO-200 @3
So far I have the analog in and analog output readings are working. However, I can't read the data from the TC-120.
I've added additional variables, such as "itemname3" and "devicename3". Both refer to the TC-120 modules.
From Example:
void CVICALLBACK FPAdviseCallBack(void* buffer)
{
IAByte* Databuffer;
FP_CallbackParamType g_param;
float* value;
int i,j;
g_param = *((FP_CallbackParamType*) buffer); //cast data from void*
Databuffer = g_para
m.buffer;
value = (float*)(Databuffer);
SetCtrlVal (panelHandle, PANEL_AI0, *value);
value = (float*)(Databuffer+4);
SetCtrlVal (panelHandle, PANEL_AI1, *value);
///////////////
Would I need to create an additional callback function for the added TC-120 module. I assume all analog in values are being stored in a single buffer, but if I'm wrong please clarify.
Regards,
Jeff