LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

In what cases will the "Server Busy" warning message pop up?

When I call CVI_AppBuildProject, the warning message appears sometimes. My CVI version is CVI 6.0.
Here's my code snippet:

CVI_AppSetProjectTargetType (Handle, NULL,
CVIConst_CVI_TARGET_TYPE_EXECUTABLE,
NULL);
CVI_AppCreateObjectFile (Handle, NULL, path, 0, NULL);

long errReturn0, errReturn1, errReturn2, errReturn3;
CVI_AppSetWarningBoxes(Handle, NULL, 0, &errReturn0);//errReturn0 returns 0
CVI_AppBuildProject (Handle, NULL, NULL);
CVI_AppGetCVIState(Handle, NULL, &errReturn0, NULL, &errReturn1,
NULL, &errReturn2, &errReturn3);

The params returned:
errReturn0 = 0;
errReturn1 = errReturn2 = errReturn3 = 0xcccccccc;
Sorry, I
don't know how to fill in the other 2 params of CVI_AppGetCVIState.

My cvi project has more than 50 files and the building costs about 10 seconds. Could it be the possible reason?
0 Kudos
Message 1 of 3
(2,939 Views)
That message means that the CVI process that you are automating through ActiveX is currently not able to run the function because it is busy. Most likely it is because you make calls to this function to close together and so CVI isn't done with the building the project when you call it again.

Best Regards,

Chris Matthews
National Instruments
Message 2 of 3
(2,939 Views)
I think I've got the reason.
Thank you, Chris Matthews.

Best Regards,
Echo
0 Kudos
Message 3 of 3
(2,939 Views)