This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

logging graph data without TI.CSVFile()

is there a way to save the data from a graph widget to disk without using the TI.CSVFile()? As I know you cannot save binary files in javascript, or is there a way?

Can I access the graph data without javascript? In the example "Logging Graph Data" dojo is used. I dont know how this works. Can I use this or something else within C?

Exists there another way of logging variables without the graph widget?

  • Hello user4458346,

    Can you describe the task you are trying to achieve so I will be able to help better?

    For now I will assume that you are using GUI Composer to make your own GUI Composer application.

    >>>> is there a way to save the data from a graph widget to disk without using the TI.CSVFile()?

    No. Your application code is in Javascript running in a browser environment. Since the browser is sandboxed it does not let you access the machine’s file system. The whole idea behind TI.CSVFile() is to give you access to the file system.

     

    >>>> As I know you cannot save binary files in javascript, or is there a way?

    You cannot write to the machine’s local file system from a Javascript running in a browser environment.

     

    >>> Can I access the graph data without javascript?

    Since my initial assumption is that you are writing GUI Composer application the answer is No.

     

    >>> Can I use this or something else within C?

    I don’t understand this question. If you are writing GUI Composer application you are writhing in javascript.

     

    >>> Exists there another way of logging variables without the graph widget?

    You can use other widgets. Some of the graphs are good for extracting a whole arrays. Other widget can be used to get single value from the target.

     

    Regards

    Dobrin