Page 1 of 1
User Console
Posted: Wed Jan 27, 2021 11:49 am
by jay_dee
Hi,
The consoles are proving very useful within App Dev, I have UART and Circ Buffer console tabs.
Is it currently possilbe to have a user defined console, much like I can place a breakpoint for bedugging.
So I could insert a 'Console' request at a given point in the FC and during simulation all data that flows through that point is displayed in console format?
Re: User Console
Posted: Wed Jan 27, 2021 12:53 pm
by Steve-Matrix
There is a "console" section of Built-in Functions that can do this. You would essentially have to create the text lines and add them to a console output, which would give you control over the exact information you wish to display.
Re: User Console
Posted: Wed Jan 27, 2021 2:59 pm
by BenR
I'm thinking of creating a component to drive the console. I'm currently looking at key and value pairs type setup where each line has a key and an optional value both of which are stored as readable strings.
for example
Fruitbowl
Fruit: Bannana
Colour: Yellow
Size: 25.5
Would this do what you want or would you need more control?
Re: User Console
Posted: Wed Jan 27, 2021 3:26 pm
by jay_dee
Interesting, I think I have miss interpreted the consoles or at least I only use them in a very limited way.
typically I get a stream of raw data in my console view.

- UART Console
- Console.PNG (4.5 KiB) Viewed 6821 times
My assumption was that this console feature was a sampling of the raw data stream passing in/out of a component and was hoping I could achieve the same sort of thing by having an effectivly empty component but that still allows sampling/viewing of the raw data but at a user perscribed point in the flowcode.
All sounds quite different to what you are both describing, to my ears at least.

Re: User Console
Posted: Fri Jan 29, 2021 9:58 am
by BenR
Hello,
I've created a new Console Writer component that allows you to easy create a tab on the console window and add content to it. It's a text only version at the moment so please let me know if you would also like to see a binary data equivalent of the component.
Re: User Console
Posted: Fri Jan 29, 2021 2:25 pm
by jay_dee
Thanks Ben, my FC App Dev was working with text strings so this worked just fine as a debugging tool.
Really helps being able to peek into a simulation like this. Great stuff. J.
Re: User Console
Posted: Thu Mar 04, 2021 2:17 pm
by jay_dee
Hi Ben,
I've been using the console writer for a couple of projects and its a helpful tool. Would it be possible to put a 'number' version on the (ever expanding!) job list.
It would help to be able to 'sample' values and get them written to a streaming console type window.
Decimal byte and integer values is the main aim but hex and bin representations could be helpful as well.
