When I export an expression to Y2 using the C SDK, the expression is disabled by default and therefore will not graph automatically. Using TI basic, you can enable it with FnOn 2. How can I do this through the C sdk?
Here's an example showing how to do it:


Code:
#include <stdint.h>
#include <fileioc.h>

void main(void) {
    ti_var_t equ;
    uint8_t *status;

    ti_CloseAll();
    equ = ti_OpenVar(ti_Y2, "r", TI_EQU_TYPE);
    if (equ) {
        status = ti_GetVATPtr(equ);
        status--;

        // use this to turn on the equation
        *status |= 1;

        // use this to turn off the equation
        *status &= ~1;

        ti_Close(equ);
    }
}


Hope this helps Smile
Wow! Thanks for that Mateo. I would have had no clue. Who knew it was so complicated?
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
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 vote in polls in this forum

 

Advertisement