Register

Need some newbie help please

Discuss issues related to the fx-9860G Software Development Kit
Member
User avatar
Posts: 44
Joined: Tue Jul 02, 2013 11:57 am
Location: London
Calculators: Casio fx-7400G, Casio fx-7400G PLUS, Casio fx-7400GII, Casio fx-9750G, Casio fx-9750G PLUS, Casio fx-9860GII

Re: Need some newbie help please

Postby MrMagoo » Mon Jul 15, 2013 11:06 am

Security isnt so much of an issue, the data will all be from user inputs anyway. There is nothing to hide.
But it was possible for a user to corrupt the data if they messed around with it.

With the bitmaps, do I juest define it in the same header as the menu icons?
"The trouble with internet quotations, is that the majority are totally made up." - Abraham Lincoln 1863

Senior Member
User avatar
Posts: 605
Joined: Sat Sep 15, 2012 6:59 am
Location: Krautland ****
Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750GII, Casio fx-9750GII (SH4), Casio fx-9860G, Casio fx-9860G SD, Casio fx-9860G Slim, Casio fx-9860GII SD, Casio fx-9860GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG20, Casio fx-CG50, Casio Classpad fx-CP400

Re: Need some newbie help please

Postby SimonLothar » Mon Jul 15, 2013 12:24 pm

MrMagoo wrote:With the bitmaps, do I juest define it in the same header as the menu icons?
To keep things clear, you can do that...for the time being. But do not include this header-file in more than one source-file. Otherwise this will inflate your G1A unnecessarily. If I am not totally mistaken, the compiler's optimizer cannot solve this. And be prepared to change the direction. I will post another concept later (I need the SDK, which I do not have here, to verify.).
I'll be back!

Member
User avatar
Posts: 44
Joined: Tue Jul 02, 2013 11:57 am
Location: London
Calculators: Casio fx-7400G, Casio fx-7400G PLUS, Casio fx-7400GII, Casio fx-9750G, Casio fx-9750G PLUS, Casio fx-9860GII

Re: Need some newbie help please

Postby MrMagoo » Mon Jul 15, 2013 4:51 pm

Ive done my inputs, ive done the calculation (and its correct :-)
but it wont print the result.
The result is assigned to a double and converted to a text string using this;
Code: Select all
                sprintf( (char*)printline1, "%g", te );   
      sprintf( (char*)printline2, "%g", tn );
      
      Bdisp_AllClr_DDVRAM();

      locate(1,1);
           Print("Result");
      locate(1,2);
      Print(printline1);
      locate(1,3);
      Print(printline2);
      while (1){
      }


But I just get a blank screen
"The trouble with internet quotations, is that the majority are totally made up." - Abraham Lincoln 1863

Senior Member
User avatar
Posts: 605
Joined: Sat Sep 15, 2012 6:59 am
Location: Krautland ****
Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750GII, Casio fx-9750GII (SH4), Casio fx-9860G, Casio fx-9860G SD, Casio fx-9860G Slim, Casio fx-9860GII SD, Casio fx-9860GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG20, Casio fx-CG50, Casio Classpad fx-CP400

Re: Need some newbie help please

Postby SimonLothar » Mon Jul 15, 2013 6:04 pm

MrMagoo wrote:But I just get a blank screen
Sure you do. :D Call Bdisp_PutDisp_DD() before you enter the while-loop;
Code: Select all
     Bdisp_PutDisp_DD();
     while (1){
      }

BTW: GetKey does this implicitly. Therefor you have seen your printouts in the previous examples.
I'll be back!

Member
User avatar
Posts: 44
Joined: Tue Jul 02, 2013 11:57 am
Location: London
Calculators: Casio fx-7400G, Casio fx-7400G PLUS, Casio fx-7400GII, Casio fx-9750G, Casio fx-9750G PLUS, Casio fx-9860GII

Re: Need some newbie help please

Postby MrMagoo » Tue Jul 16, 2013 9:48 am

D'oh fixed that issue.

Any thoughts on accessing the matrix?
"The trouble with internet quotations, is that the majority are totally made up." - Abraham Lincoln 1863

Senior Member
User avatar
Posts: 605
Joined: Sat Sep 15, 2012 6:59 am
Location: Krautland ****
Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750GII, Casio fx-9750GII (SH4), Casio fx-9860G, Casio fx-9860G SD, Casio fx-9860G Slim, Casio fx-9860GII SD, Casio fx-9860GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG20, Casio fx-CG50, Casio Classpad fx-CP400

Re: Need some newbie help please

Postby SimonLothar » Tue Jul 16, 2013 5:58 pm

MrMagoo wrote:Any thoughts on accessing the matrix?
No new thoughts!

Based on this
viewtopic.php?f=21&t=1569&start=50#p13500
...
Where do you want to save the data, you have to save?
What is the amount of data, you have to save?
I'll be back!

Member
User avatar
Posts: 44
Joined: Tue Jul 02, 2013 11:57 am
Location: London
Calculators: Casio fx-7400G, Casio fx-7400G PLUS, Casio fx-7400GII, Casio fx-9750G, Casio fx-9750G PLUS, Casio fx-9860GII

Re: Need some newbie help please

Postby MrMagoo » Tue Jul 16, 2013 6:24 pm

Well used to use 4 matrices under casio basic.
The bulk of the data will be doubles, but I would also like to store strings as well. Under the old scheme, a piece of data had to be called an interger "106" instead of "item 106" or "point 7" for example.
"The trouble with internet quotations, is that the majority are totally made up." - Abraham Lincoln 1863

Senior Member
User avatar
Posts: 605
Joined: Sat Sep 15, 2012 6:59 am
Location: Krautland ****
Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750GII, Casio fx-9750GII (SH4), Casio fx-9860G, Casio fx-9860G SD, Casio fx-9860G Slim, Casio fx-9860GII SD, Casio fx-9860GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG20, Casio fx-CG50, Casio Classpad fx-CP400

Re: Need some newbie help please

Postby SimonLothar » Tue Jul 16, 2013 9:39 pm

To make a proper decision, it is important to know the amount of data. One double requires 8 bytes. A string requires as much bytes as its length.

The main memory has a capacity of 60000 bytes max. But it is consumed by the built-ins (f. i. basic programs, lists, matrices), too.
I'll be back!

Member
User avatar
Posts: 44
Joined: Tue Jul 02, 2013 11:57 am
Location: London
Calculators: Casio fx-7400G, Casio fx-7400G PLUS, Casio fx-7400GII, Casio fx-9750G, Casio fx-9750G PLUS, Casio fx-9860GII

Re: Need some newbie help please

Postby MrMagoo » Tue Jul 16, 2013 9:51 pm

Ok so I'd like;

8 sets of data that comprise
One alpha string, 8 characters max, and 5 doubles.

50 sets of data that comprise
One alpha string, 8 characters max, and 4 doubles.

If the 50 could be bigger, that would be good.

I generally search for the alpha string, and retrieve the doubles saved to it
"The trouble with internet quotations, is that the majority are totally made up." - Abraham Lincoln 1863

Senior Member
User avatar
Posts: 605
Joined: Sat Sep 15, 2012 6:59 am
Location: Krautland ****
Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750GII, Casio fx-9750GII (SH4), Casio fx-9860G, Casio fx-9860G SD, Casio fx-9860G Slim, Casio fx-9860GII SD, Casio fx-9860GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG20, Casio fx-CG50, Casio Classpad fx-CP400

Re: Need some newbie help please

Postby SimonLothar » Tue Jul 16, 2013 10:42 pm

MrMagoo wrote:Ok so I'd like;

8 sets of data that comprise
One alpha string, 8 characters max, and 5 doubles.

50 sets of data that comprise
One alpha string, 8 characters max, and 4 doubles.

If the 50 could be bigger, that would be good.

I generally search for the alpha string, and retrieve the doubles saved to it
Splendid. That's information one can work on. But not now. Now it's time to rest...
I'll be back!

PreviousNext

Return to Casio fx-9860 SDK

Who is online

Users browsing this forum: No registered users and 39 guests