Enhancements of Flowcode4 Pro

For C and ASSEMBLY users to post questions and code snippets for programming in C and ASSEMBLY. And for any other C or ASM course related questions.

Moderators: Benj, Mods

Post Reply
billduck
Posts: 159
Joined: Thu Jul 01, 2010 1:57 am
Has thanked: 23 times
Been thanked: 16 times
Contact:

Enhancements of Flowcode4 Pro

Post by billduck »

I am wondering what enhancements come with the professional version of Flowcode4.
I am finding it to be a challenge to to floating point trig. How do you display a floating point (fractional) result on a LCD.
Thanks.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Enhancements of Flowcode4 Pro

Post by Benj »

Hello,

To display a floating point number on the LCD you have to convert the float variable into a string. There is a function to do this available from the string manipulation icon. The Flowcode marketting datasheet details all of the key features between the different license variations.

User avatar
DavidA
Matrix Staff
Posts: 1076
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Has thanked: 58 times
Been thanked: 258 times
Contact:

Re: Enhancements of Flowcode4 Pro

Post by DavidA »

The marketing data sheet is located here :

http://www.matrixmultimedia.com/datashe ... C-60-4.pdf

the details you want are on page 8.

billduck
Posts: 159
Joined: Thu Jul 01, 2010 1:57 am
Has thanked: 23 times
Been thanked: 16 times
Contact:

Re: Enhancements of Flowcode4 Pro

Post by billduck »

Where is the "string manipulation icon?". I am using the student version, and I only see string, when a variable is declared.
Thanks.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Enhancements of Flowcode4 Pro

Post by Benj »

Hello,

The string manuipulation icon is directly below the calculation icon in the command toolbox.

Sean
Valued Contributor
Valued Contributor
Posts: 548
Joined: Tue Jun 26, 2007 11:23 am
Has thanked: 6 times
Been thanked: 44 times
Contact:

Re: Enhancements of Flowcode4 Pro

Post by Sean »

The V4 AVR floating-point article (Articles section of the forum) shows how the standard library sprintf function can be used in a Flowcode C block to convert numbers to strings - using a variety of formats - before printing to an LCD.

Post Reply