Problems when compile the program_ Flowcode 4.5
Posted: Thu Oct 13, 2011 11:57 pm
Hello!
I get the following error when I try to compile.
When I simulate all is fine, but not when I try to compile.
This program will control the PWM according to two ADC signals.
I use Integer for measuring variables so they can be both positive and negative. As I can understand, problem is in my IF statement "If U_res <-20. But it is Integer. It can be negative. So why is the problem here? Is there anyone who could possibly help me with that?
Very grateful for your help!
..........
Flowcode1.c(1570): error: missing right paren
Flowcode1.c(1570): error: error in 'if' expression
Flowcode1.c(1570): error: missing right paren
Flowcode1.c(1570): error: missing semicolon
Flowcode1.c(1570): error: missing right paren
Flowcode1.c(1394): error: failure
failure
Return code = 1
FINISHED
I get the following error when I try to compile.
When I simulate all is fine, but not when I try to compile.
This program will control the PWM according to two ADC signals.
I use Integer for measuring variables so they can be both positive and negative. As I can understand, problem is in my IF statement "If U_res <-20. But it is Integer. It can be negative. So why is the problem here? Is there anyone who could possibly help me with that?
Very grateful for your help!
..........
Flowcode1.c(1570): error: missing right paren
Flowcode1.c(1570): error: error in 'if' expression
Flowcode1.c(1570): error: missing right paren
Flowcode1.c(1570): error: missing semicolon
Flowcode1.c(1570): error: missing right paren
Flowcode1.c(1394): error: failure
failure
Return code = 1
FINISHED