Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : MM Edit V 3.7.0
Page 2 of 2 | |||||
Author | Message | ||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 5913 |
That's what comes from rushing things. The old method didn't have a 'close' button so I didn't have code to handle it. The new method has the close button but I forgot to do the code to handle it. Try again: 2017-04-13_050729_MMedit.zip Jim VK7JH MMedit MMBasic Help |
||||
paceman Guru Joined: 07/10/2011 Location: AustraliaPosts: 1328 |
Bee-yoo-tiful. All a goer Jim, thanks again. Greg |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 5913 |
A slight change to the syntax selection window. It wasn't showing the last couple of choices with some versions of Windows. 2017-04-20_025955_MMedit.zip Jim VK7JH MMedit MMBasic Help |
||||
lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3018 |
This may be the wrong place for this question. I'm trying to define a long string--a dozen string array elements 250 bytes long, like A(1) = " (long string here)" A(2) = " (another long string here)" When I download the file with MMEdit, it completes successfully, but I get "Error: Line is too long" I'm guessing this is an MMBasic issue, not an MMEdit issue. What is the maximum allowed line length? Is there a better way to do this kind of thing? Micromite_MK2_V5.1 version 5.3B PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 5913 |
MMEdit doesn't care but MMBasic does. From the micromite manual: "Maximum length of a command line is 255 characters." If it's only a few lines, you could build up the string in stages A(2) = " (first part of a long string)" A(2) = A(2)+" (second part of a long string)" If you want to edit the program using the built-in editor, long lines will be an issue. Jim VK7JH MMedit MMBasic Help |
||||
lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3018 |
Thank you, Jim. I had built these lines using a program, and made the string size 250 characters (breaking up a 3k html file). I guess the variable name, array element definition, and assignment made the line too long. It's a trivial matter for me to change the program to put out 240-character strings. On the micromite, I will rebuild the html file with concatenation, but using the SAddStr long string routine. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
Phil23 Guru Joined: 27/03/2016 Location: AustraliaPosts: 1664 |
So just further to this Jim, I can do this:- Load this code to the MM+ Start a Capture file in the MMedit terminal. Run the code above. Stop the Capture file. Is it possible to run this as a Macro? Or alternatively, could MMedit handle the entire process, dependant on a small BAS file existing on the SD card. IE this sequence:- GetLog "TestLog.exe" 1. Stop the main code running. 2. Load & Run "SendLog.bas" from the SD card. 3. Send SendLog the filename to transfer. 4. Open a Capture file with the above filename. 5. Wait for the output from SendLog.bas to finish. 6. Close the Capture file. I know it sounds like a giant Bandaid, but it could be a handy way of retrieving small log files from Micromites without removing the card. Any other alternate or existing ideas would be appreciated. I'm sure others have various ways of retrieving log files. With all of my MM's on Wifi with ESP-Link, physically visiting a device to retrieve data seems a bit primitive. Cheers Phil. |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 5913 |
To retrieve data while your program is running, take a look at the program I posted last week "Taming the ACS712" http://www.thebackshed.com/forum/forum_posts.asp?TID=9545&PN=2 In it, by sending $9LLxx, I can retrieve the last xx records sending $9LYxx, I retrieve the last xx records from yesterday and $9LW gets the last 8 days of daily summary. The $9 is the address of the module I want to respond, LL for 'List Last' etc I am using arrays to store the data but a file would work just as well. I do have some of the commands saved as macros but eventually I will write a proper program to interrogate the 'mites. IT will be specific to my requirements so not much use to others. I did consider writing an XMODEM library function but decided it not worth the effort. Jim VK7JH MMedit MMBasic Help |
||||
Page 2 of 2 |
Print this page |