C PROGRAMMING BASICS IN FLOWCODE

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
PUTS_JO
Posts: 20
Joined: Wed Sep 01, 2010 8:11 am
Has thanked: 1 time

C PROGRAMMING BASICS IN FLOWCODE

Post by PUTS_JO »

BEST C PROGRAMMERS

I am starting from scratch
i want to count up in c program the value of text and then print it on my lcd as a test program
it is working for the normal calculation but not for the c code ;
what am i doing wrong ?
the test file is attached
kind regards
puts johan belgium

ps : the char in the first line must be an int ; but doesnt solve the problem
Attachments
TESTCPROG.fcf
(6.5 KiB) Downloaded 272 times

User avatar
Dan81
Valued Contributor
Valued Contributor
Posts: 268
Joined: Sun Jan 15, 2006 4:07 pm
Location: Albi France
Been thanked: 60 times
Contact:

Re: C PROGRAMMING BASICS IN FLOWCODE

Post by Dan81 »

Hello Johan

Flowcode cannot simulate C code.
LCD was not initialised (macro LCD Start) (useful for real life)
I've modifed your C code , it is not useful to declare FCV_TEXT , Flowcode do it when you declare Text, I have also removed "main"

The file is OK with Proteus ( sorry I tested it with 16F887 and LCD on port B)


Daniel
Attachments
TESTCPROG_v2.fcf
(6 KiB) Downloaded 271 times

PUTS_JO
Posts: 20
Joined: Wed Sep 01, 2010 8:11 am
Has thanked: 1 time

Re: C PROGRAMMING BASICS IN FLOWCODE

Post by PUTS_JO »

BEST DANIEL,

Thanks for your helpful reply.I didn't know that the simulution on c code was not possible.
you talked about 'proteus ' is this something to have as electronics engineer for programming in c flowcode?
i do not know what it is...

Thanks in advance
puts johan :D :D

User avatar
Dan81
Valued Contributor
Valued Contributor
Posts: 268
Joined: Sun Jan 15, 2006 4:07 pm
Location: Albi France
Been thanked: 60 times
Contact:

Re: C PROGRAMMING BASICS IN FLOWCODE

Post by Dan81 »

Hello Johan

Proteus is a software with which you can :
- draw schématics
- simulate (very interesting and powerful, and the results are very close to the real life)
- draw layout.

Very useful when your hardware is not ready.

http://www.labcenter.com/index.cfm

Daniel

Post Reply