Error: Undefined Variable using calculation block
Posted: Tue Oct 09, 2007 1:21 am
I was building a project earlier using FlowcodeV3, my lab partner and I developed a program that accepts a number as input to Port B from switches. Then the program must divide the number by 3 to find out if the remainder is equal to zero or not. If the remainder=0 the program should display the original input number as output to Port A on the LED's. If the remainder!=0 the program should display all LED's HIGH(lit up).
Here is my concern:
I am using two variables in my program. The first variable is which is used for the value entered by the switches on Port B. The second variable is which is used to store the value of the remainder found by dividing .
In my calculation block I entered:
, then pressed ok to get an error saying that one of the variables is undefined.
In the Input block I established the above variables and used.
My partner did everything the same way and his program worked flawlessly. But on my machine I could not get past the calculation block due to this variable problem.
Are there any likely causes of this problem?
Here is my concern:
I am using two variables in my program. The first variable is
Code: Select all
inputNumberCode: Select all
remainderCode: Select all
inputNumber MOD 3In my calculation block I entered:
Code: Select all
remainder = inputNumber MOD 3 In the Input block I established the above variables and used
Code: Select all
inputNumberMy partner did everything the same way and his program worked flawlessly. But on my machine I could not get past the calculation block due to this variable problem.
Code: Select all