• Products
    • Isadora
    • Get It
    • ADD-ONS
    • IzzyCast
    • Get It
  • Forum
  • Help
  • Werkstatt
  • Newsletter
  • Impressum
  • Dsgvo
  • Press
  • Isadora
  • Get It
  • ADD-ONS
  • IzzyCast
  • Get It
  • Press
  • Dsgvo
  • Impressum

Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags

    [ANSWERED] How to dynamically work and display data with an .xls file

    How To... ?
    txt excel xls data array real time
    4
    9
    1597
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      A_Anglani last edited by Woland

      Hello everyone! I'm working on my interactive performance and I need to connect an .xls file to Isadora. I've followed everything on the Data Array actor and I've found it exceptional BUT I've a little problem with it. I have to modify dynamically my excel file that changes some of my values in real time. So I do like this:

      1. I create my txt file using excel that I mantain open to modify irt.
      2. I do a modification in excel.
      3. The file changes its numbers inside (also in the txt, I can see the modification).
      4. When I read the file using Data Array, Isadora don't change and it stays the same as before.
      5. After a loooot of tries, I understood that closing Excel, and clicking on read of the Data Array, Isadora finally changes the numbers as expected.

      So it appears (and I don't know why) that Isadora has a sort of collision with open files in Excel. It allows modifications irt using Block Notes, but sadly I need the calculations that the Excel provides. What can I do to modify dinamically the numbers and make it change on Isadora screen?

      Here you can find a simple image of the structure but I don't think there's something useful from it. Thanks dear community!

      DusX mark_m Woland 3 Replies Last reply Reply Quote 1
      • DusX
        DusX Tech Staff @A_Anglani last edited by

        @a_anglani

        How are you updating the TXT file? Are you using save or save as? Save might leave the TXT owned by Excel... where save as will not. (just a guess, but possible)

        Troikatronix Technical Support

        • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
        • My Add-ons: https://troikatronix.com/add-ons/?u=dusx
        • Profession Services: https://support.troikatronix.com/support/solutions/articles/13000109444-professional-services

        Running: Win 11 64bit, i7, M.2 PCIe SSD's, 32gb DDR4, nVidia GTX 4070 | located in Ontario Canada.

        1 Reply Last reply Reply Quote 0
        • mark_m
          mark_m @A_Anglani last edited by

          @a_anglani

          I think the issue is that Excel keeps a backup copy of your current file open, so, as @DusX says, it doesn't 'release' it.

          Try saving the file as an "Excel 97-2003 workbook" which is an .xls rather than an .xlsx file, and see if that works.
          And if that doesn't work try saving as a .cvs file instead.

          Let us know how you get on.

          HTH

          Mark (not that Mark)

          Intel NUC8i7HVK Hades Canyon VR Gaming NUC, i7-8809G w/ Radeon RX Vega M GH 4GB Graphics, 32GB RAM, 2 x NVMe SSD
          Gigabyte Aero 15 OLED XD. Intel Core i7-11800H, NVidia RTX3070, 32GB RAM 2 x NVMe SSD
          PC Specialist Desktop: i9-14900K, RTX4070Ti, 64GB RAM, Win11Pro
          www.natalieinsideout.com

          1 Reply Last reply Reply Quote 1
          • Woland
            Woland Tech Staff @A_Anglani last edited by

            @a_anglani said:

            After a loooot of tries, I understood that closing Excel, and clicking on read of the Data Array, Isadora finally changes the numbers as expected

            To me, this is the way I'd expect it to work. I wouldn't want to have the same file open in two programs at once because I'd expect that there would be a high probability of some sort of interference as they'd both be trying to access the file at the same time.

            @a_anglani said:

            So it appears (and I don't know why) that Isadora has a sort of collision with open files in Excel.

             I could be wrong but I don't think that this problem is specific to Isadora. If you try to open the same file in two programs at once, I don't think that they can both simultaneously edit it.


            @a_anglani said:

            I need the calculations that the Excel provides

            You could try to perform the same calculations within Isadora using JavaScript. Another possibility is that you could make the excel document into a Google Sheet and then use the Get/Post URL Text actor to recall the information you need in Isadora.

            TroikaTronix Technical Support
            New Support Ticket: https://support.troikatronix.com/support/tickets/new
            Support Policy: https://support.troikatronix.com/support/solutions/articles/13000064762
            Add-Ons: https://troikatronix.com/add-ons/ & https://troikatronix.com/add-ons/?u=woland
            Professional Services: https://support.troikatronix.com/support/solutions/articles/13000109444

            | Isadora Version: all of them | Mac Pro (Late 2013), macOS 10.14.6, 3.5GHz 6-core, 1TB SSD, 64GB RAM, Dual AMD FirePro D700s |

            DusX 1 Reply Last reply Reply Quote 0
            • DusX
              DusX Tech Staff @Woland last edited by

              @A_Anglani 

              I have replied to your support ticket with this information as well, but for anyone else wanting to know. 
              I was able to confirm that Excel and Calc both lock the file from reading by the Data Array. Calc (Libre Office) has a 'save a copy' feature that can be used to maintain a copy which is readable and will allow editing in both (one in Calc, and one from Isadora).

              This solution is not the easiest, so I also looked into a Javascript solution I used previously.
              Using Javascript and the Papaparse library, it is possible to work on a CSV file in Excel and load the data from Isadora without making a copy. This solution converts the CSV into JSON in Isadora for usage. 

              I have attached an example file.

              Troikatronix Technical Support

              • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
              • My Add-ons: https://troikatronix.com/add-ons/?u=dusx
              • Profession Services: https://support.troikatronix.com/support/solutions/articles/13000109444-professional-services

              Running: Win 11 64bit, i7, M.2 PCIe SSD's, 32gb DDR4, nVidia GTX 4070 | located in Ontario Canada.

              A 1 Reply Last reply Reply Quote 2
              • A
                A_Anglani @DusX last edited by

                @dusx YES we DID it!

                I'm so happy, thanks to you all! I downloaded the load-n-parse_js plugin and tweaked it a little. Having the papaparse.min.js connected to my .csv, that I create with Excel starting from a xlsx and "saving as" a .csv, and using the Javascript reader connected with the JSON parser, I can extract the data from the csv despite being open in Excel, so bypassing Office (and LibreOffice, etc etc) lock to an open Calc file! Yes! Love this community.

                DusX 1 Reply Last reply Reply Quote 2
                • DusX
                  DusX Tech Staff @A_Anglani last edited by

                  @a_anglani

                  Glad I could help.
                  Perhaps I should spend a little time cleaning this example up and offer it via the Add-Ons page.

                  Troikatronix Technical Support

                  • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
                  • My Add-ons: https://troikatronix.com/add-ons/?u=dusx
                  • Profession Services: https://support.troikatronix.com/support/solutions/articles/13000109444-professional-services

                  Running: Win 11 64bit, i7, M.2 PCIe SSD's, 32gb DDR4, nVidia GTX 4070 | located in Ontario Canada.

                  Woland mark_m 2 Replies Last reply Reply Quote 2
                  • Woland
                    Woland Tech Staff @DusX last edited by

                    @dusx said:

                    Perhaps I should spend a little time cleaning this example up and offer it via the Add-Ons page.

                     Yes please <3

                    TroikaTronix Technical Support
                    New Support Ticket: https://support.troikatronix.com/support/tickets/new
                    Support Policy: https://support.troikatronix.com/support/solutions/articles/13000064762
                    Add-Ons: https://troikatronix.com/add-ons/ & https://troikatronix.com/add-ons/?u=woland
                    Professional Services: https://support.troikatronix.com/support/solutions/articles/13000109444

                    | Isadora Version: all of them | Mac Pro (Late 2013), macOS 10.14.6, 3.5GHz 6-core, 1TB SSD, 64GB RAM, Dual AMD FirePro D700s |

                    1 Reply Last reply Reply Quote 0
                    • mark_m
                      mark_m @DusX last edited by

                      @dusx said:

                      <p>@a_anglani</p><p>Glad I could help. <br />Perhaps I should spend a little time cleaning this example up and offer it via the Add-Ons page.</p>

                       Hi Ryan,


                      That would be great, including the real basics for those of us who are javascript illiterate. I got lost with how to use the Papaparse library...

                      Thanks a lot

                      Mark (not him)

                      Intel NUC8i7HVK Hades Canyon VR Gaming NUC, i7-8809G w/ Radeon RX Vega M GH 4GB Graphics, 32GB RAM, 2 x NVMe SSD
                      Gigabyte Aero 15 OLED XD. Intel Core i7-11800H, NVidia RTX3070, 32GB RAM 2 x NVMe SSD
                      PC Specialist Desktop: i9-14900K, RTX4070Ti, 64GB RAM, Win11Pro
                      www.natalieinsideout.com

                      1 Reply Last reply Reply Quote 2
                      • First post
                        Last post