HP50g - RESTORE - Help needed - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: General Forum (/forum-4.html) +--- Thread: HP50g - RESTORE - Help needed (/thread-22659.html) |
HP50g - RESTORE - Help needed - brrm - 11-08-2024 07:14 PM Hi all, I need some help with restoring a backup on the 50g. I created a back-up file on the SD card, which is port 3 The file name is BU_20210211.153 In RPN when I enter the file name and press ENTER I get an error saying 'Too Few Arguments' and the stack shows 1: 3:BU In Algebraic mode when I type RESTORE(:3:BU_20210211.153) and press ENTER I get an error saying: Invalid Syntax and the part of the file name following the underscore is highlighted. So apparently something is wrong with the underscore however I don't understand what. Help is appreciated. RE: HP50g - RESTORE - Help needed - FLISZT - 11-08-2024 09:01 PM Hi, It seems that the problem you are experiencing is due to the file name. In that case, I would put the SD card in my laptop and rename the file. Before doing so, I would also make a copy of the original file... you never know. Hope it helps RE: HP50g - RESTORE - Help needed - DavidM - 11-09-2024 01:21 PM (11-08-2024 07:14 PM)brrm Wrote: So apparently something is wrong with the underscore however I don't understand what. The parser built-in to the calculator interprets the underscore character as a signal that you're entering a unit object, eg. something similar to 1.5_m or 9.8_m/s^2. When it "sees" :3:BU_20210211.153, there's no way to parse that into a legitimate unit object, so it throws an error. Keeping in mind that the SD card's contents need to satisfy naming conventions for both the calculator as well as any computer/card reader you may insert the card into, it usually makes sense to have a simple (and short) name for anything stored on the card. "_" and "." have special meanings depending on the platform, so common ground for naming conventions should be considered. If you really, really want to use that naming convention, there's a way to "trick" the calculator into building a legitimate identifier from the string "BU_20210211.153". The steps are as follows: Code: \<< The internal routine at address #5B15h converts a given string to an ID, bypassing the parser entirely. While it can be somewhat useful (such as in this example), it can also create problems for you in unexpected ways if you happen to name an object something that would otherwise be prohibited. I would recommend using a simpler (and shorter) name for the backup object instead. RE: HP50g - RESTORE - Help needed - cdmackay - 11-09-2024 06:26 PM My notes say: :3:BK241109 ARCHIVE # port 3 (SD) need to keep filename ≤ 8 chars for SD card (FAT filesystem) |