How can I insert an Excel (or text) file in a VPL list?

الإجابة How can I insert an Excel (or text) file in a VPL list?

  • 02 Mei 2012 14:48
     
     

    I'm trying to program my NXT to cut Styrofoam with a hot wire, so I made this setup where the NXT needs to move a X-Y platform to cut the right shape.
    I have the coordinates of points which will make the profile when I connect these points. So my problem is, can I insert a list from excel (X and Y coordinates) or eventually make an .txt file from it, and then insert these points to a list in MS VPL list . Here a picture of the points I want to insert



Semua Balasan

  • 05 Mei 2012 0:57
    Moderator
     
     Jawab
    One way to do is would be to create two Lists for x and y fed by two data boxes which contain a comma or space separated string of the numbers. You can use a ForLoop construct and Append ListFunction to takes these strings and populate the Lists.