Welcome! Log In Create A New Profile


Loading Code

Posted by ugine 
Loading Code
October 04, 2012 12:55PM
I've got the board up and running fine and entered some real-time code and got everything working.

However, I am having constant difficulty uploading code to the unit from the web site. The documentation says you may have to try it a few times, but after an hour of time-outs I'm now looking for an alternative method of loading the code.

I've tried creating a basic file in PSPad and uploading that, but all I keep getting is 'cannot open file' messages.

I've looked throught the documentation and can't find anything which tells me how to upload files using the latest version of BC_COM2. I can find info relating to previous versions, but that shows options that I don't have on the latest version.

help would be much appreciated.
Re: Loading Code
October 04, 2012 01:07PM
To use the code that is on the internet, instead of selecting the URL, select the body of the code, i.e. everything that is on the blue page.

Then open notepad (or PSPAD as I see you are using that) and paste into that so you have a copy of the code in notepad.

Now save the notepad file to a local directory, it doesnt matter what it is called but by convention normally has .bas on the end. Watch out as notepad normally appends everything with .txt so you can end up with something like test.bas.txt. That dosen't matter to BV_COM but it may make looking for the file confusing. The naming issue will not be a problem with PSPad

Now you have a local file follow this link for a detailed explanation of loading files.

One thing to watch out for and that is you must have just a single carriage return at the end of the file and nothing following that. I.e. just a blank line at the end of the file. If there are any spaces on the blank line it can produce errors when loading the file.

Edited 1 time(s). Last edit at 11/02/2012 09:12AM by jimeer.
Re: Loading Code
November 01, 2012 11:21PM
jimeer Wrote:

> Now you have a local file
> [url=http://www.mbasic.byvac.com/index.php?dir=flb
> /Tutorial/PIC32MX3_Family/02_Loading/]follow this
> link[/url] for a detailed explanation of loading
> files.
Is there something broken on this page?
The link expands to [i]http://www.mbasic.byvac.com/index.php?dir=flb/Tutorial/PIC32MX3_Family/02_Loading/[/i]
but when I "go" there, it's redirected to [i]http://www.pin1.org/wpmb/[/i] which just seems to be the start page
for a whole bunch of generic documentation.

As a side note, if you start at [i]http://doc.byvac.com[/i] and click on the machinebasic link, it takes yo to the above page. But then clicking on the Product Documentation icon takes you back round in a circle to the docs.byvac.com page?
Re: Loading Code
November 02, 2012 09:18AM
Thanks for the update, I have fixed the link above. The product documentation is www.doc.byvac.com so it will take you back to that page. For mBasic documentation click on the "Documentation" menu.
Re: Loading Code
May 21, 2013 11:45PM
In BVCOM2, 'paste' doesnt seem to evoke a response from the kit. For pasting immediate commands?
For example if I manually type wait(5000) I get a prompt back after 5 seconds. If I copy that command & paste it, press return, I get the prompt immediately. If I copy "print 22/7" from notepad or somewhere, paste it to the BV500, I just get 'ok'.
Is there another convenient way to copy the example commands from the web pages without manually typing?
In the timer example, I cant type 'print tmr_get(?TIMER23)' in less than 10 seconds! have I missed something? :-)
Re: Loading Code
May 22, 2013 07:53AM
there is no quick way to re-enter commands, a history function would be ideal - looking for volunteers to modify the BV_COM2 code (written in C and GUI in C++).

Any takers?
Sorry, only registered users may post in this forum.

Click here to login