on't know were the problem is.To correct the error I made all the function calls equal to status,the error still exists.I tried to make the initial variables constant.What is meaning of the error and do I need to restart using the function panel?Thank-you!LabWindows/CVI w/Field Point Explorer.Problem occurs with functions. Here is a segment of my program: Thank-you:
#include "FieldPoint.h"
IAStatus Function;
IAString valvetests;
IAHandle identify_servers;
unsigned long BufferSize;
Buffersize [200];
IAHandle create;
IAByte Written_Device_Data[150];
IAByte Buffer[100];
SYSTEMTIME TIME;
Fun
ction = FP_Open (valvetests, &identify_servers);
Function = FP_CreateTagIOPoint (identify_servers, "FP Res",
"FP-AO-200@1", "Channel 0", &create);
Function = FP_Write (identify_servers, create, Written_Device_Data, BufferSize);
Function = FP_Read (identify_servers, create, Buffer, 100, &TIME);
Function = FP_DestroyIOPoint (identify_servers, create);
Function = FP_Close (identify_servers);
I am trying to find out if the function calls are declared correctly. I get an error of the �intializer must be constant� for the line I have underlined. The error message is repeated 8 times and it refers to the same line. Is there a another why to declare this function? Or do I needed a different library include.