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: https://technical.swissmicros.com/decoders/dm42/

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

Matrix Viewer

Post by whuyse »

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 504 times
Last edited by whuyse on Thu Feb 20, 2020 4:23 pm, edited 1 time in total.
41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE, DM15L
Thomas Okken
Posts: 1102
Joined: Tue May 02, 2017 5:48 pm
Location: Netherlands
Contact:

Re: Matrix Viewer

Post by Thomas Okken »

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 8297 times
20200218-22261349.bmp
20200218-22261349.bmp (12.31 KiB) Viewed 8297 times
20200218-22282948.bmp
20200218-22282948.bmp (12.31 KiB) Viewed 8297 times
Geoff Quickfall
Posts: 328
Joined: Wed May 24, 2017 10:44 pm
Location: Vancouver Canada
Contact:

Re: Matrix Viewer

Post by Geoff Quickfall »

Holy jumping, that is amazing coding and display control.

Geoff
H2X
Posts: 885
Joined: Tue Apr 25, 2017 8:00 am
Location: Norðvegr
Contact:

Re: Matrix Viewer

Post by H2X »

+1!

Thanks for sharing! :-)
What is the metric tensor in imperial units?
User avatar
Walter
Posts: 3070
Joined: Tue May 02, 2017 11:13 am
Location: On a mission close to DRS, Germany

Re: Matrix Viewer

Post by Walter »

Good job!
WP43 SN00000, 34S, and 31S for obvious reasons; HP-35, 45, ..., 35S, 15CE, DM16L S/N# 00093, DM42β SN:00041
fridlmue
Posts: 23
Joined: Mon Dec 09, 2019 9:57 am
Location: Germany - Saxony

Re: Matrix Viewer

Post by fridlmue »

Wow, great! I waited for something like this :geek:
HP-41cx, HP-35s, DM42
User avatar
akaTB
Posts: 794
Joined: Tue May 02, 2017 1:56 pm
Location: Milan, Italy

Re: Matrix Viewer

Post by akaTB »

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 9:14 pm

Re: Matrix Viewer

Post by Bill (Smithville NJ) »

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: 23
Joined: Mon Dec 09, 2019 9:57 am
Location: Germany - Saxony

Re: Matrix Viewer

Post by fridlmue »

Bill (Smithville NJ) wrote:
Wed Feb 19, 2020 2: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: 1102
Joined: Tue May 02, 2017 5:48 pm
Location: Netherlands
Contact:

Re: Matrix Viewer

Post by Thomas Okken »

Bill (Smithville NJ) wrote:
Wed Feb 19, 2020 2: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 3: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 11:34 pm, edited 1 time in total.
Post Reply