Flowcode 11 Graphical Display Manager Demonstration

Tips, Tricks and methods for programming, learn ways of making your programming life easier, and share your knowledge with others.
Post Reply
BenR
Matrix Staff
Posts: 2161
http://meble-kuchenne.info.pl
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 587 times
Been thanked: 773 times

Flowcode v11 Flowcode 11 Graphical Display Manager Demonstration

Post by BenR »

Hello All,

I've put together a bit of a demonstration of the new graphical display features available in v11 here.

https://youtu.be/8pBGSSQuoaI

Please feel free to comment and ask any questions below.

jgu1
Posts: 916
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 809 times
Been thanked: 202 times

Flowcode v11 Re: Flowcode 11 Serial In Circuit Debug (ICD)

Post by jgu1 »

Hi Ben!

Thanks again for your example and the thorough walkthrough — it’s really useful. I’ve studied it over and over to learn from it, :D and I can see all the advantages of the Display Manager: it makes it fast to create different buttons, text fields, adjust layout, and use various colors.

I’ve asked about this before but didn’t quite create this, so I hope you can help — maybe with an example.

I now understand the different functions you demonstrated. What I can’t figure out is this:

If I want to create a “main menu” with, for example, three buttons — let’s say Volt, Amp, and Watt — I want to be able to press (for example) the Volt button and switch to a “Volt scene.” There, it should continuously display the current voltage value until I press a “Home” button.

After that, I should be able to press the Amp button, and the screen should switch to an “Ammeter scene,” and continuously display the current values until I press a “Home” button there as well.

I can make this work, but the values are only shown once — they are not updated continuously unless I exit and re-enter the scene.

I hope you understand what I mean.

Br Jorgeb

BenR
Matrix Staff
Posts: 2161
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 587 times
Been thanked: 773 times

Re: Flowcode 11 Graphical Display Manager Demonstration

Post by BenR »

Hello Jorgen,

The button handler macro changes scene as required and then in the main loop you need to check which scene is active and then process the code specific for that scene. e.g. on the voltage scene you would sample the voltage and display. On the current scene you would sample the current and display.

Do you want to post what you have so far and I'll have a quick look for you. You basically need to do the update as part of the main loop.

Or I can create another quick demo video showing how to do this if that would be useful.

jgu1
Posts: 916
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 809 times
Been thanked: 202 times

Flowcode v11 Re: Flowcode 11 Graphical Display Manager Demonstration

Post by jgu1 »

Hi Ben!

If you please Will: Or I can create another quick demo video showing how to do this if that would be useful.

Absolute, please, I am grateful, so please :D

Jorgen

jgu1
Posts: 916
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 809 times
Been thanked: 202 times

Flowcode v11 Re: Flowcode 11 Graphical Display Manager Demonstration

Post by jgu1 »

Hi Ben!

First, I have used the ADS1115 in another project today, this component work very fine in FC11, perfect both in simulation and on HW, and is very liniary and stable ;)

I have continued studying and practicing with DisplayManager and experiments and trying things out. In my practice program, I have added the ASD1115 component and used it as a voltmeter, and indeed it works in simulation. However, when I press the "voltmeter button," it also goes to the Scene with the voltmeter, but only once. It does not update continuously if I change the voltage; it only updates if I go to "home" and then back to the voltmeter, at which point the new voltage is shown. I would like it to update continuously while I am in "Voltmeter Sceene", how do I do that?
I learned a lot with Displaymanager the last 3 hours :lol:

I wanted to test it on hardware but I get an error when compiling, and I cannot figure out what I am doing wrong. I hope you have time to take a look at it. :)

Thank you in advance.

Jorgen
Attachments
DisplayCreatorSelf2 A.msg.txt
(645 Bytes) Downloaded 15 times
DisplayCreatorSelf2 A.fcfx
(49.29 KiB) Downloaded 15 times

BenR
Matrix Staff
Posts: 2161
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 587 times
Been thanked: 773 times

Re: Flowcode 11 Graphical Display Manager Demonstration

Post by BenR »

Hi Jorgen,

I'm going to make another video for you tomorrow which I hope will help.

jgu1
Posts: 916
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 809 times
Been thanked: 202 times

Re: Flowcode 11 Graphical Display Manager Demonstration

Post by jgu1 »

Super Ben :D

Jorgen

Post Reply