Matrix Viewer

Contributions to this software library are always welcome. Please ensure that you post program listings rather than .raw files. They give a reasonable idea of what your program does without having to load them into a DM42 and you can also include comments in your code. Check out the following link for a decoder/encoder: http://www.swissmicros.com/dm42/decoder/

You can then copy/paste the listing and post it in "code" tags.
whuyse
Posts: 67
Joined: Thu Dec 21, 2017 12:23 pm

Matrix Viewer

Post by whuyse » Tue Feb 18, 2020 7:08 pm

Matrix Viewer and rudimentary editor

This is a first try, and there are tons of things I will be changing still, but it works quite well as it is.
Try it out with the included test matrices M44 and C24x5.
  • before you start
    MVIEW is packaged with all its subroutines, the digit font matrix DF and a few test matrices in one state file, in attachment
    upgrade to DMCP-3.17 / DM42-3.15rc1 before importing the file!
  • usage
    Just recall the matrix you want to view to the stack and XEQ "MVIEW".
    Use the menu buttons to roam the matrix, and use the EXIT menu button 2 (NOT the EXIT button bottom left!!) to exit.
    To edit a number, press Edit. This effectively stops the program with the current number on the stack, and the
    DM42 matrix editor active. Feel free to change anything in the matrix, Press R/S to continue - it will save the
    number in stack level X to the current position. While in editor mode you can also use the GOTO functionality.
  • some info
    - MVIEW can be used in GrMod 2 and 3, even if the individual numbers are very small in GrMod 3. The up/down menu buttons will switch between GrMod 2 and 3.
    - The menu is not a menu; responding to a MENU key clears the LCD, sadly, so that the whole screen would have to be redrawn at every key press. Instead, what looks like a menu is a GETKEY simulation, that's why you can't use the EXIT key (or R/S, for that matter) as it will halt the execution, leaving the matrix EDITed and all local variables defined. Should you have pressed EXIT anyway, just do Rv 2 R/S to cleanly exit.
    - The view window uses font 2 (6x4) as it is possible to show a full number in 200 pixels
    - the indexes use font 1 (5x3), the grid cells font 3 (7x5).
    - row or column cannot be higher than 999
    - numbers in the grid are truncated instead of rounded, for speed (for now)
Hope you like it,
Werner
Attachments
Mview.zip
DM42 state file
(13.98 KiB) Downloaded 123 times
Last edited by whuyse on Thu Feb 20, 2020 3:23 pm, edited 1 time in total.
42S #3249S01123
DM42 #00345

Thomas Okken
Posts: 711
Joined: Tue May 02, 2017 3:48 pm
Location: United States
Contact:

Re: Matrix Viewer

Post by Thomas Okken » Wed Feb 19, 2020 2:35 am

Wow, that is amazing! But you should have included a few screen shots. If I may:
20200218-22250846.bmp
20200218-22250846.bmp (12.31 KiB) Viewed 3178 times
20200218-22261349.bmp
20200218-22261349.bmp (12.31 KiB) Viewed 3178 times
20200218-22282948.bmp
20200218-22282948.bmp (12.31 KiB) Viewed 3178 times

Geoff Quickfall
Posts: 326
Joined: Wed May 24, 2017 8:44 pm
Location: Vancouver Canada
Contact:

Re: Matrix Viewer

Post by Geoff Quickfall » Wed Feb 19, 2020 4:19 am

Holy jumping, that is amazing coding and display control.

Geoff

User avatar
H2X
Posts: 592
Joined: Tue Apr 25, 2017 6:00 am
Location: Norway

Re: Matrix Viewer

Post by H2X » Wed Feb 19, 2020 6:13 am

+1!

Thanks for sharing! :-)
DM42 #40 running WP43C | DM41X #50
The earth is flat. It just appears round because it is massive and curves spacetime.

User avatar
Walter
Posts: 1550
Joined: Tue May 02, 2017 9:13 am
Location: Close to FRA, Germany

Re: Matrix Viewer

Post by Walter » Wed Feb 19, 2020 7:32 am

Good job!
DM42 SN: 00041 Beta
WP 43S running on this device

HP-35, HP-45, ..., HP-50, WP 34S, WP 31S, DM16L

fridlmue
Posts: 15
Joined: Mon Dec 09, 2019 8:57 am
Location: Germany - Saxony

Re: Matrix Viewer

Post by fridlmue » Wed Feb 19, 2020 8:22 am

Wow, great! I waited for something like this :geek:
HP-41cx, HP-35s, DM42

User avatar
akaTB
Posts: 483
Joined: Tue May 02, 2017 11:56 am
Location: Milan, Italy

Re: Matrix Viewer

Post by akaTB » Wed Feb 19, 2020 11:37 am

Wow! Excellent use of display estate.
Bravo!
Greetings,
    Massimo
ajcaton
-+×÷ left is right and right is wrong :twisted: Casted in gold

Bill (Smithville NJ)
Posts: 34
Joined: Sat Jul 22, 2017 7:14 pm

Re: Matrix Viewer

Post by Bill (Smithville NJ) » Wed Feb 19, 2020 1:52 pm

I'm having a problem getting the state file to load.

I get the message " State File Corrupt"

I've downloaded it several times, used several programs to upzip it,
done byte compares on the the original file versus what's on the
DM42, did a fat check and reformat on the calculator.

Other state files I have saved load fine.

I think I'm running the latest version on the calculator:

DMPC v3.15 (IFC 0313)
DM42 v3.14
Free42 2.2

What else should I try?

Thanks,

Bill
Smithville, NJ

fridlmue
Posts: 15
Joined: Mon Dec 09, 2019 8:57 am
Location: Germany - Saxony

Re: Matrix Viewer

Post by fridlmue » Wed Feb 19, 2020 2:38 pm

Bill (Smithville NJ) wrote:
Wed Feb 19, 2020 1:52 pm
What else should I try?
Update your DM42 to the in just published "release candidate" version 3.17, then it will work. I had the same problem before that.
HP-41cx, HP-35s, DM42

Thomas Okken
Posts: 711
Joined: Tue May 02, 2017 3:48 pm
Location: United States
Contact:

Re: Matrix Viewer

Post by Thomas Okken » Wed Feb 19, 2020 3:23 pm

Bill (Smithville NJ) wrote:
Wed Feb 19, 2020 1:52 pm
I'm having a problem getting the state file to load.

I get the message " State File Corrupt"
fridlmue wrote:
Wed Feb 19, 2020 2:38 pm
Update your DM42 to the in just published "release candidate" version 3.17, then it will work. I had the same problem before that.
Yes, that error message is a bit unfortunate. Free42 2.5 and later makes a distinction between "State File Too New" and "State File Corrupt", but of course that change is too new to be in the DM42 3.14 firmware. Sorry about that!
Last edited by Thomas Okken on Wed Feb 19, 2020 10:34 pm, edited 1 time in total.

Post Reply