Hi Team.
What would be a nice feature for myself at least in FC would be if the watch window can display the Hex and Binary number and select able as the dec or hex is currently in the window,
May be is is already there that I am not aware of it ,
Binary representation in watch window
- p.erasmus
- Posts: 434
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 03, 2020 12:01 pm
- Location: Russia / Россия
- Has thanked: 104 times
- Been thanked: 88 times
-
- Matrix Staff
- Posts: 1384
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 184 times
- Been thanked: 322 times
Re: Binary representation in watch window
I don't think there's a way to do it at the moment, but it's a good idea and I will add it to the list.
-
- Valued Contributor
- Posts: 1313
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 317 times
- Been thanked: 458 times
Re: Binary representation in watch window
Hi
I too think it would be a nice selectable feature to change the format.
Meanwhile there are many calculators out there for both on and offline conversion. My favourite is Dec Hex Bin ASCII Converter (by Colly Dog Code), available from the Google Play store. As you enter a value in any of the formats it automatically displays the value in all other. Usually I have it running on an old phone when I mess with RS232 / UART for easy ASCII / Hex conversion (just like a very handy calculator sitting nearby).
Regards
I too think it would be a nice selectable feature to change the format.
Meanwhile there are many calculators out there for both on and offline conversion. My favourite is Dec Hex Bin ASCII Converter (by Colly Dog Code), available from the Google Play store. As you enter a value in any of the formats it automatically displays the value in all other. Usually I have it running on an old phone when I mess with RS232 / UART for easy ASCII / Hex conversion (just like a very handy calculator sitting nearby).
Regards
- p.erasmus
- Posts: 434
- Joined: Thu Dec 03, 2020 12:01 pm
- Location: Russia / Россия
- Has thanked: 104 times
- Been thanked: 88 times
Re: Binary representation in watch window
Hi Chipfryer
Yes I also use a Converter on my Tablet when working with FC ,the reason I ask for this is that for more than 10 years I worked with MPLAB and in the watch window you can select DEC,HEX Bin etc or all at one time and view them in your IDE while inspecting debug results ,it is much more convenient and productive than typing backward and forward between different systems ,when the variable is updated all is updated at once
However for now it is the way it is and maybe in future this will be added and I will be happy ,FC has made a huge jump since V6 this product is getting better and better each and every release and more powerful
Yes I also use a Converter on my Tablet when working with FC ,the reason I ask for this is that for more than 10 years I worked with MPLAB and in the watch window you can select DEC,HEX Bin etc or all at one time and view them in your IDE while inspecting debug results ,it is much more convenient and productive than typing backward and forward between different systems ,when the variable is updated all is updated at once
However for now it is the way it is and maybe in future this will be added and I will be happy ,FC has made a huge jump since V6 this product is getting better and better each and every release and more powerful
Regards Peter - QME Electronics
-
- Valued Contributor
- Posts: 1313
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 317 times
- Been thanked: 458 times
Re: Binary representation in watch window
Hi
I definitely agree there are good improvements in each version, although some can take a bit of "adjusting" to <s>. I started with V3 and I've still got an old combo-board with the BT-plug connections kicking around. Museum piece perhaps? <s>
Regards
I definitely agree there are good improvements in each version, although some can take a bit of "adjusting" to <s>. I started with V3 and I've still got an old combo-board with the BT-plug connections kicking around. Museum piece perhaps? <s>
Regards
-
- Matrix Staff
- Posts: 1384
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 184 times
- Been thanked: 322 times
Re: Binary representation in watch window
To update you on this, the next release (maybe next month?) will allow you to add a suffix after variables in the watch window. This will allow integer variables to be displayed as decimal, hex or binary. Also, float variables can optionally be displayed in standard form (e.g. 1.23e+13).
-
- Matrix Staff
- Posts: 1384
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 184 times
- Been thanked: 322 times
Re: Binary representation in watch window
The v9.2 update has now been released and includes format overrides for variables in the Simulation Debugger watch window. These can be added by adding a suffix after the variable within the watch window entry (for example, "my_var,b" will display that variable's value in binary).
The supported formats are:
These suffixes only work with single variables; expressions and arrays are not currently supported. Variables and expressions without the suffix will be displayed using the default settings.
Integer variables can have their values altered in the watch window using decimal, hex and binary representations. Floating point values can only be entered using their default decimal format (e.g. 0.00234).
The supported formats are:
- ,d - decimal
- ,h - hexadecimal (lowercase)
- ,H - hexadecimal (uppercase)
- ,b - binary
- ,e - standard form
These suffixes only work with single variables; expressions and arrays are not currently supported. Variables and expressions without the suffix will be displayed using the default settings.
Integer variables can have their values altered in the watch window using decimal, hex and binary representations. Floating point values can only be entered using their default decimal format (e.g. 0.00234).