Page 1 of 1

Flow Code V5 Binary Adder tutorial Not working

Posted: Fri Jul 06, 2012 4:42 pm
by Dave Hodgson
Hi Matrix

Many thanks for writing a superb on-line course for using Flowcode. I have followed the online course without a problem until I came to the Binary Adder program. I'm sure I have set up the three variables input1, input2, and sum correctly, and correctly set the two inputs to Port B and Port C, and the output to Port D.
Set the two SWITCHbanks to Port B and C and the LEDarray to Port D. The Calculation box is correctly set to sum = input1 + input2, and the program saved and set to use the PIC 16F1937, and I have tried the program targetted to the PIC 16F877.
But when I run the simulation I am not getting the result e.g. sum to produce anything.
I have used the Run Step Into (F8) option to step through the program, but the online tutorial indicates the Variable window which opens when the program is running should indicate the result of the variables e.g. number 11 and 15 if the turorial set up is used. I am not seeing this happen
In fact the only result that appears to be getting transferred to the LEDarray is the value set up on the C Port SWITCHbank, the program appears to be ignoring the B Port SWITCHbank setting completely. (and Yes the Port B SWITCHbank Connection option is set to Port B)

I feel sure I most not be the only person who has hit this problem any advice would be welcome

Re: Flow Code V5 Binary Adder tutorial Not working

Posted: Fri Jul 06, 2012 5:07 pm
by dazz
Hi Dave

can you join the forum relating to your version of flowcode as you will get more help there, also can you post your flowchart so someone can have a look at it, also have you added the variable to the variable window, as your stepping into the program right click on add variable and double click the variable you want to see (do this for all variables if theres more than one), again if your running simulation at full speed you wont be able to view variables, if this is the case go into build, project options, then change as fast as poss to 1000 or less, this will slowdown the sim so you can moniteor the variables

hth
Regards

Dazz

Re: Flow Code V5 Binary Adder tutorial Not working

Posted: Fri Jul 06, 2012 5:13 pm
by Benj
Hi Dave,

Please can you also post up your flowcode file as a attachment on the forums and I will see if I can spot what the problem is for you.

Re: Flow Code V5 Binary Adder tutorial Not working

Posted: Tue Feb 12, 2013 2:30 pm
by karthik.devaraj
hi,

The thing you've obtained is the flow of code value is responding or you did something wrong, same try in v4.0 and let us know,Hence the adder not working in the sense try total sheep.

One more thing , try to program the switch in active low state