BasicMicro - Forums

www.basicmicro.com
It is currently Mon May 21, 2012 1:03 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Atom Pro 40 Eeprom works different then Atom 40 Eeprom.
PostPosted: Sat Oct 02, 2010 7:14 am 
Offline
Citizen

Joined: Wed Mar 13, 2002 11:00 am
Posts: 32
Hi Nathan
Installing the Micro Studio 2..., it overwrite the Micro Studio …35.

So for now, I can not test on the old Studio.
but from my code I extract the 6 lines.
The Studio .35 could compile
The Studio 2 returns this error
and goto the pulsin-line

My code
Code:
abc    VAR  long   
  start:
      pulsin  p1, 1, abc
       serout s_out,i9600,["Pulslange = ",dec abc,13]
       pause 1000   
goto start


Compiling...
Error: FILE .........\TESTPULSIN.BAS(LINE 4) : [TOKEN :] : Unexpected argument type
Errors Detected
.


Top
 Profile  
 
 Post subject: Re: Atom Pro 40 Eeprom works different then Atom 40 Eeprom.
PostPosted: Sat Oct 02, 2010 8:34 am 
Offline
Master

Joined: Tue Nov 21, 2006 9:34 am
Posts: 527
Yep, It does not compile for me either...
You might try the long form. Maybe something like:
Code:
abc    VAR  long   
  start:
      pulsin  p1, 1, timeout, 0xffffffff, abc
Timeout:
       serout s_out,i9600,["Pulslange = ",dec abc,13]
       pause 1000   
goto start



Kurt


Top
 Profile  
 
 Post subject: Re: Atom Pro 40 Eeprom works different then Atom 40 Eeprom.
PostPosted: Sat Oct 02, 2010 8:51 am 
Offline
Citizen

Joined: Wed Mar 13, 2002 11:00 am
Posts: 32
Hi Kurt
Oh yes the long form compiles,
I just tried it.
Thanks

Hi Nathan
will be the pulsin command in studio 2 changed..?
.


Top
 Profile  
 
 Post subject: Re: Atom Pro 40 Eeprom works different then Atom 40 Eeprom.
PostPosted: Mon Oct 04, 2010 2:25 pm 
Offline
Site Admin
User avatar

Joined: Thu Mar 01, 2001 11:00 am
Posts: 903
Location: Temecula, CA
Ok, I see the problem. The last release I wanted to make the label and timeout seperate optional arguments but by doing that it can confuse the variable argument for the timeout argument. I've changed it back so you have to have both tlable and timeout of neither. Until the next release you'll have to do the long format of the command. This also applies to rctime.

_________________
Tech Support
Basic Micro - Robotic Technology Evolved


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO