Jump to content



Photo
- - - - -

Writing An Add-in For Cp


  • Please log in to reply
8 replies to this topic

#1 masoodkardorost

masoodkardorost

    Newbie

  • Members
  • Pip
  • 21 posts

  • Calculators:
    classpad300+
    casio4800

Posted 13 July 2010 - 04:11 PM

hello
I want to write an add-in for classpad330 and I don't know from where should I Start?
I searched and I understood that I can write add ins in cplua and sdk but I'm confused that if i learn for example LUA how can I compile it for cp and use it in cp
please tell me step by step how should i start?
you know I have written some programs in cp program language and I want to transfer these codes in add in.
thank you very much

#2 masoodkardorost

masoodkardorost

    Newbie

  • Members
  • Pip
  • 21 posts

  • Calculators:
    classpad300+
    casio4800

Posted 14 July 2010 - 07:56 PM

hello
I want to write an add-in for classpad330 and I don't know from where should I Start?
I searched and I understood that I can write add ins in cplua and sdk but I'm confused that if i learn for example LUA how can I compile it for cp and use it in cp
please tell me step by step how should i start?
you know I have written some programs in cp program language and I want to transfer these codes in add in.
thank you very much


Isn't there anyone who help me?

#3 Guest_Fingili_*

Guest_Fingili_*
  • Guests

Posted 17 July 2010 - 08:30 AM

If you have wrote programs in CP BASIC, try CPLua. You can port your programs to Lua easily.
Files in Lua can not (yet??) be compiled.
You can get SDK from www.cpsdk.com, but if you want my opinion, don't even bother downloading it. I don't say it's bad: It's excellent, but Lua is more efficient and suitable for your everyday programming.

#4 masoodkardorost

masoodkardorost

    Newbie

  • Members
  • Pip
  • 21 posts

  • Calculators:
    classpad300+
    casio4800

Posted 17 July 2010 - 03:31 PM

If you have wrote programs in CP BASIC, try CPLua. You can port your programs to Lua easily.
Files in Lua can not (yet??) be compiled.
You can get SDK from www.cpsdk.com, but if you want my opinion, don't even bother downloading it. I don't say it's bad: It's excellent, but Lua is more efficient and suitable for your everyday programming.

thanks for answering me :rolleyes:
could you please help me more?
is there any manual for porting a cp basic to lua?or is there any forum on this topic?
if it is possible it will help me very much!
as you may know I'm new in writing a plugin and I dont know how to create a .cpa file
I mean does LUA create it or I should use anothere program or I should copy the codes to CPlua?does it need any change?
but the most important thing for me is to import cp basic codes and use them because it is hard for me to write them again.
again thanks

Edited by masoodkardorost, 17 July 2010 - 03:33 PM.


#5 Lovecasio

Lovecasio

    Casio Freak

  • Members
  • PipPipPipPip
  • 242 posts
  • Location:Hochiminh city Vietnam
  • Interests:Organic chemistry.<br />Pharmacy

  • Calculators:
    fx 570 MS, Casio AFX 2.0+, ClassPad 300

Posted 18 July 2010 - 02:05 AM

First, let's make something clear.
The easiest (and right-out-of-the-box) tool for programming for the ClassPad is the Programs application on your ClassPad. It is basically the BASIC programming language, which has been modified a bit to be used easily for programming on CP. With Programs, you can do many good things, such as calculate the total resistance of a electrical circuit, thermodynamic chemistry or physic, studying a function in maths... However it is rather slow and not expandable. It is limited to the functions already had on your ClassPad.
The second official tool released by Casio is ClassPad SDK. Just imagine that every amazing function or application on your ClassPad has been built by SDK to see how powerfull it is. But, you must have some basic skill on C++ programming because it is the main language on the SDK. Many add-in have been built to expand the functionality of the ClassPad. These add-ins are powerful and run very fast (since they are compiled). It takes sometimes before you can write your add-in program using SDK because you have to learn about the API, which is also included in the SDK documentation.
The third popular tool is CP LUA. Google it to find out what LUA is. Orwell has used the ClassPad SDK to make a "programmable" add-in called CP- LUA, which is very very useful for maths programming. It is far easier than CP SDK, and is very well-expanded. Nearly all (may be I should say all) of the limited of the BASIC programming application on the ClassPad is solved by CP-LUA. It is, again, very powerful, and is easy to use.

So, in conclusion, if you want something simple, everyday maths calculation, BASIC Programming is a good choice. If you need more powerful features and flexibility and not-limited to the functions on your ClassPad, CP-LUA is a must-have. And if you want to make a extremely complicated and independent on any program, SDK is your choice.

#6 masoodkardorost

masoodkardorost

    Newbie

  • Members
  • Pip
  • 21 posts

  • Calculators:
    classpad300+
    casio4800

Posted 18 July 2010 - 04:37 PM

First, let's make something clear.
The easiest (and right-out-of-the-box) tool for programming for the ClassPad is the Programs application on your ClassPad. It is basically the BASIC programming language, which has been modified a bit to be used easily for programming on CP. With Programs, you can do many good things, such as calculate the total resistance of a electrical circuit, thermodynamic chemistry or physic, studying a function in maths... However it is rather slow and not expandable. It is limited to the functions already had on your ClassPad.
The second official tool released by Casio is ClassPad SDK. Just imagine that every amazing function or application on your ClassPad has been built by SDK to see how powerfull it is. But, you must have some basic skill on C++ programming because it is the main language on the SDK. Many add-in have been built to expand the functionality of the ClassPad. These add-ins are powerful and run very fast (since they are compiled). It takes sometimes before you can write your add-in program using SDK because you have to learn about the API, which is also included in the SDK documentation.
The third popular tool is CP LUA. Google it to find out what LUA is. Orwell has used the ClassPad SDK to make a "programmable" add-in called CP- LUA, which is very very useful for maths programming. It is far easier than CP SDK, and is very well-expanded. Nearly all (may be I should say all) of the limited of the BASIC programming application on the ClassPad is solved by CP-LUA. It is, again, very powerful, and is easy to use.

So, in conclusion, if you want something simple, everyday maths calculation, BASIC Programming is a good choice. If you need more powerful features and flexibility and not-limited to the functions on your ClassPad, CP-LUA is a must-have. And if you want to make a extremely complicated and independent on any program, SDK is your choice.


Thanks alot for your attention and spending your time for me
I'm farely good at cp basic and for some reasons it can not comply my needs so I'm finding new solutions and
by reasearching and asking I underestood that cp lua is my solution and I'm learning Lua language from yesterday
and your scrip ensured me more
It seems that the first step is that I should learn Lua So Istarted it yessterday but I still have some question in my mind:
I don't know how to create a .cpa file
I mean does LUA create it or I should use anothere program or I should copy the codes to CPlua?does it need any change?
And the most important thing for me is to import cp basic codes and use them because it is hard for me to write them again.
please answer these 2 question and guide me through this
thanks alot

Edited by masoodkardorost, 18 July 2010 - 04:41 PM.


#7 diiego06

diiego06

    Newbie

  • Members
  • Pip
  • 17 posts
  • Gender:Male
  • Location:Cbba-Bolivia

  • Calculators:
    ClassPad 300

Posted 19 July 2010 - 03:16 AM

Thanks alot for your attention and spending your time for me
I'm farely good at cp basic and for some reasons it can not comply my needs so I'm finding new solutions and
by reasearching and asking I underestood that cp lua is my solution and I'm learning Lua language from yesterday
and your scrip ensured me more
It seems that the first step is that I should learn Lua So Istarted it yessterday but I still have some question in my mind:
I don't know how to create a .cpa file
I mean does LUA create it or I should use anothere program or I should copy the codes to CPlua?does it need any change?
And the most important thing for me is to import cp basic codes and use them because it is hard for me to write them again.
please answer these 2 question and guide me through this
thanks alot


-CPLua don't create .cpa files, you need to use SDK to create those files.
-You need to translate your codes (CP BASIC programs) to CPLua syntax

#8 Guest_Fingili_*

Guest_Fingili_*
  • Guests

Posted 19 July 2010 - 08:35 AM

CPLua doesn't create CPA files. It creates MEM files on classpad's memory.
Converting the syntax of BASIC to CPLua is almost easy, for example you need to change
For 1 :arrow: i To 10 Step 2
Print "hello!"
Next

To CPLua syntax:
for i=1,10,1 do
print("hello!")
end


You see in most cases you can do straightforward line-by-line translation! :rolleyes: This is not the case with the SDK, however.
Just read the PDF manual that you can download from the same page you downloaded CPLua to understand how if, for, etc work then you can easily port you programs!
Wish you success! Upload your progs!

P.S Admins said:
"Don't quote an entire post to post ur reply. Especially if it is the very last post."

#9 masoodkardorost

masoodkardorost

    Newbie

  • Members
  • Pip
  • 21 posts

  • Calculators:
    classpad300+
    casio4800

Posted 19 July 2010 - 05:04 PM

thanks again
if there was a program that convert the codes automaticly it was beter
It can be topic for expert people
but now the question is that Is it possible to convert these MEM files to CPA files?
let me ask in other words I need a CPA file that installs only one time in CP and It is not possible to transfer to another CP or Computer from that CP
I'm trying to find new ways for this reason.
and ofcourse I want to write new programs with more powerful language
can you help me on this?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users