06-24-2017 04:43 PM
Hello Guys,
Please help me configure this error. Below is the code.
/*****************************FAIL Bit**********************************************/
void FailBoard (int x)
{
char str[5];
long i;
if (GetBitFestoInputs(3,1)
{
GetCtrlVal(panelHandle_Cobot, PANEL_esFail, str);
i = atol(str);
i++;
sprintf(str, "%lu", i);
SetCtrlVal(panelHandle_Cobot, PANEL_esFail, str);
}
return;
}
I got an error syntax error: found '{'expecting')'
Thanks in advance.
Solved! Go to Solution.
06-24-2017 05:34 PM - edited 06-24-2017 05:36 PM
Hi Master_Viper,
the error message is quite clear: a closing parenthesis is missing; the complete message should list also list line and position of the error, which could help you to locate and solve it by yourself.
In any case, if the code is the one you posted the error should be this one (missing parenthesis highlighted in red):
if (GetBitFestoInputs(3,1)) {
06-24-2017 07:22 PM
Sir Roberto,
Can I ask another question but different topic or do I need to create new topic.
Thanks,
Master_Viper
06-26-2017 01:33 AM
If the new question has no relation with this topic it is better to open a new discussion.