LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

illegal statement termination

I'm modifying traditional DAQ code based on the ai_log example  (which, btw, is currently far from complete).  When I try to compile the code, I get a lot of "illegal statement terminations" on the already written code , specifically these functions:
 static  int     AIRestartDAQ(void);
static  int     AIReadDAQ(void);
static  void    AIDisplayError (short error);
static  void    SetAutoTrigger (void);

I haven't changed anything in these functions or their declarations, and in some functions I haven't changed the code above them, either. To be honest, I'm utterly confused becuase everything looks to be properly declared.
-Jason Espinosa

LabWindows 6.0
PCI-6036E
0 Kudos
Message 1 of 3
(5,068 Views)
btw, these are the errors I get

 ai_async.c - 10 errors
  368, 1   Illegal statement termination.
  369, 1   syntax error; found '{' expecting ';'.
  454, 1   Illegal statement termination.
  455, 1   syntax error; found '{' expecting ';'.
  559, 1   Illegal statement termination.
  559, 32  Illegal expression.
  559, 36  syntax error; found 'identifier' expecting ')'.
  559, 36  Insufficient number of arguments to `ClearCallback'.
  559, 36  syntax error; found 'identifier' expecting ';'.
  559, 43  Illegal expression.

The clearcallback one is especially confusing

Message Edited by Hasone on 06-05-2006 10:18 AM

-Jason Espinosa

LabWindows 6.0
PCI-6036E
0 Kudos
Message 2 of 3
(5,066 Views)
You are missing a closing brace at the end of the #ifdef AI_LOG block inside AITimerCallback.
 
This is the only obvious thing that I could find without the other project files.
 
If you still have problems after fixing this, let me know.
 
Hope this helps,
 
-alex
0 Kudos
Message 3 of 3
(5,053 Views)