Proteus atoi() function

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi everyone.

Iam not quite sure if this is the right forum for my question but Ill give it a try....

I just tested Proteus as a simulation tool and tried to convert a string to an integer.

Unfortunately Proteus does not seem to regocnice functions like toInt() or atoi().

Any help would be great!

Thanks in advance,

Best regards,

Michael

Last Edited: Mon. Jan 9, 2017 - 07:35 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

have you #included stdlib.h?

 

Edit: If you have then I suggest you post your code to give everyone reading this a better chance of spotting the problem. Also, what exactly do you mean by does not recognize? As in does not compile due to build errors, or as in does not seem to successfully convert ASCII strings to ints? (in the case of atoi()) I notice you mention toInt() as well, which is an Arduino function, so in order to use that you'll also need to include all of the relevant Arduino files. I never bothered with Arduino myself, but as I understand it, some of the later versions of Proteus (v7 and above I think?) let you import Arduino sketches, so it may well be that you missed out a step during the import process perhaps? A quick google shows up this.

Last Edited: Mon. Jan 9, 2017 - 07:31 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Howard and thanks for your quick reply.

NO I haven't :-(

Ill try it and get back to you!!

/M

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 2

You could also ask the Proteus forums:

 

http://support.labcenter.co.uk/f...

 

They should know their software better than anyone

 

Jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user