Page 43 of 67 FirstFirst ... 3339404142434445464753 ... LastLast
Results 421 to 430 of 670

Thread: The LaserBoy Thread

  1. #421
    Join Date
    Mar 2012
    Location
    Akron, Ohio USA
    Posts
    2,197

    Default

    Quote Originally Posted by Greg View Post
    James: I have a .csv file containing a sample of XY data of the DOGN output as recorded by a data logger. I got as far as pressing "i" for file input, but I don't see a csv file type. I expect you wouldn't mind providing a bit of guidance regarding the steps needed to bring this data in to laserboy.
    No problem!

    There are a few different formats that the LaserBoy text reader can handle, but your data has to be modified to fit one of them.

    https://laserboy.org/forum/index.php...sg2193#msg2193

    If you get a good text editor with find and replace, you can fix up your data really easy. LB does not use commas between elements on a line, only white space.

    Save it as a txt file inside of the txt folder inside the LaserBoy folder. Open it as type txt.

    If you want to, you can send me an example of what you have and I can see about giving you more precise instructions.
    Creator of LaserBoy!
    LaserBoy is free and runs in Windows, MacOS and Linux (including Raspberry Pi!).
    Download LaserBoy!
    YouTube Tutorials
    Ask me about my LaserBoy Correction Amp Kit for sale!
    All software has a learning curve usually proportional to its capabilities and unique features. Pointing with a mouse is in no way easier than tapping a key.

  2. #422
    Join Date
    Mar 2010
    Posts
    581

    Default

    Thanks James! I'm reading through the thread you provided a link to. Here is an excerpt of the data. You'll know quicker than I will what processing will need to be done on this prior to import. The actual file is over 3Mb for 4 seconds recorded at 40K samples / second.

    3.27820E+00, 3.35022E+00
    3.27698E+00, 3.35114E+00
    3.27911E+00, 3.35083E+00
    3.28064E+00, 3.35297E+00
    3.28125E+00, 3.35663E+00
    3.28308E+00, 3.35846E+00
    3.28430E+00, 3.35724E+00
    3.28400E+00, 3.35541E+00
    3.28369E+00, 3.35480E+00
    3.28400E+00, 3.35449E+00
    3.28491E+00, 3.35358E+00
    3.28552E+00, 3.35236E+00
    3.28369E+00, 3.25378E+00
    3.20282E+00, 2.75818E+00
    2.82227E+00, 1.72913E+00
    2.05444E+00, 5.93262E-01
    1.22498E+00,-1.29395E-01
    7.06787E-01,-4.08630E-01
    5.10864E-01,-4.83398E-01
    4.59900E-01,-4.99878E-01
    4.47998E-01,-5.01099E-01
    4.45251E-01,-5.01709E-01
    4.44641E-01,-5.05066E-01
    4.45557E-01,-5.08423E-01
    4.46472E-01,-5.09949E-01

  3. #423
    Join Date
    Mar 2012
    Location
    Akron, Ohio USA
    Posts
    2,197

    Default

    Scientific notation! That's interesting. I don't think C++ ifstream in ascii mode will have any problems with that. I don't know why but I was expecting integers. I'll mess around with this tomorrow. Thanks!
    Last edited by james; 02-08-2021 at 07:35.
    Creator of LaserBoy!
    LaserBoy is free and runs in Windows, MacOS and Linux (including Raspberry Pi!).
    Download LaserBoy!
    YouTube Tutorials
    Ask me about my LaserBoy Correction Amp Kit for sale!
    All software has a learning curve usually proportional to its capabilities and unique features. Pointing with a mouse is in no way easier than tapping a key.

  4. #424
    Join Date
    Mar 2012
    Location
    Akron, Ohio USA
    Posts
    2,197

    Default

    I converted your text to this:

    Code:
    # greg_01.txt
    
    frame xy hex real
    3.27820E+00    3.35022E+00    -1
    3.27698E+00    3.35114E+00    0xffffff
    3.27911E+00    3.35083E+00    0xffffff
    3.28064E+00    3.35297E+00    0xffffff
    3.28125E+00    3.35663E+00    0xffffff
    3.28308E+00    3.35846E+00    0xffffff
    3.28430E+00    3.35724E+00    0xffffff
    3.28400E+00    3.35541E+00    0xffffff
    3.28369E+00    3.35480E+00    0xffffff
    3.28400E+00    3.35449E+00    0xffffff
    3.28491E+00    3.35358E+00    0xffffff
    3.28552E+00    3.35236E+00    0xffffff
    3.28369E+00    3.25378E+00    0xffffff
    3.20282E+00    2.75818E+00    0xffffff
    2.82227E+00    1.72913E+00    0xffffff
    2.05444E+00    5.93262E-01    0xffffff
    1.22498E+00   -1.29395E-01    0xffffff
    7.06787E-01   -4.08630E-01    0xffffff
    5.10864E-01   -4.83398E-01    0xffffff
    4.59900E-01   -4.99878E-01    0xffffff
    4.47998E-01   -5.01099E-01    0xffffff
    4.45251E-01   -5.01709E-01    0xffffff
    4.44641E-01   -5.05066E-01    0xffffff
    4.45557E-01   -5.08423E-01    0xffffff
    4.46472E-01   -5.09949E-01    0xffffff
    Using a text editor with find and replace:
    First I replaced the comma with three spaces.
    Then I replaced the newline character with four spaces + 0xffffff + newline character.
    Then I put the header on it of frame xy hex real.
    The fist line ends with -1 because that is the only point in the set that is only an anchor. It has no color, so I made it blank.
    That opens just fine.
    Not much to look at. It's just a section of an arc.
    Creator of LaserBoy!
    LaserBoy is free and runs in Windows, MacOS and Linux (including Raspberry Pi!).
    Download LaserBoy!
    YouTube Tutorials
    Ask me about my LaserBoy Correction Amp Kit for sale!
    All software has a learning curve usually proportional to its capabilities and unique features. Pointing with a mouse is in no way easier than tapping a key.

  5. #425
    Join Date
    Mar 2010
    Posts
    581

    Default

    Much appreciated. That totally worked. As seen in the attached screen capture, everything is in one frame. I think I remember you describing how this kind of situation can be worked into frames by, among other things, using time as the z axis in your 3D view, but I don't recall where I saw this. Can you highlight some features that I could use to begin exploring and working with this data?

    One other thing: I find the rainbow text really hard to read. Is there a mono color menu text option? Thanks
    Attached Thumbnails Attached Thumbnails screen_cap2.png  


  6. #426
    Join Date
    Mar 2012
    Location
    Akron, Ohio USA
    Posts
    2,197

    Default

    Sorry. You're stuck with the puky rainbow.

    You can switch the display to show either z or vertex order in the depth axis of the 3D display.

    From main, menu u, option g, I think.

    You can break up your data into as many frames as you want in the text file just by dropping the frame xy hex real header on a line above any size chunk of two or more veticies.

    You might notice that you have 129662 vertices in that frame and that number is in red. That means that it exceeds 65536 which is the limit of the ilda file format. If you want to save that frame (you already have it in txt format) you can also save it as a wave of just that one frame. It might not be very useful as a wave file unless you use it as a sample in some other app that can loop a sample, but you can open it again in LB and get your frame back.

    Check out my YouTube Playlist in my signature.
    Last edited by james; 02-09-2021 at 19:56.
    Creator of LaserBoy!
    LaserBoy is free and runs in Windows, MacOS and Linux (including Raspberry Pi!).
    Download LaserBoy!
    YouTube Tutorials
    Ask me about my LaserBoy Correction Amp Kit for sale!
    All software has a learning curve usually proportional to its capabilities and unique features. Pointing with a mouse is in no way easier than tapping a key.

  7. #427
    Join Date
    Mar 2010
    Posts
    581

    Default

    I am able to import captured +-10V incl. DC signals to LaserBoy. Details posted in the CYGN-B thread.

  8. #428
    Join Date
    Mar 2010
    Posts
    581

    Default

    I'm looking for a way to by pressing a key repeatedly delete the last point in a frame, and read the frame length when the head and tail of the line appear closest.

  9. #429
    Join Date
    Mar 2012
    Location
    Akron, Ohio USA
    Posts
    2,197

    Default

    In menu K, you will see that there are vertex cursors. One looks like a square and the other looks like an 8 way cross. I call them the egg and the spider. You can move them around the vertices using the [{ and ]} keys. You'll notice you cannot move past either end of the vector set and you cannot move the egg past the spider or the spider in front of the egg. This is how you select from one to many vectors. A single vector is selected when both the egg and the spider are on the destination end of the same vector (both are together on a single vertex). You can bounce around selecting individual lit segments by tapping the u or U key. You can set the egg on the first vertex and the spider on the last vertex with the \ | key right next to the [{ ]} keys. if you tap the Backspace key, it will delete the vertex under the spider and move the spider to the previous vertex. So, if you press and hold the Backspace it will eventually delete all the vertices in the frame. If the frame stats is on (hit the ? key), in menu K you can see some information about the positions of the egg and spider, including how far apart they are in short integer space.
    Creator of LaserBoy!
    LaserBoy is free and runs in Windows, MacOS and Linux (including Raspberry Pi!).
    Download LaserBoy!
    YouTube Tutorials
    Ask me about my LaserBoy Correction Amp Kit for sale!
    All software has a learning curve usually proportional to its capabilities and unique features. Pointing with a mouse is in no way easier than tapping a key.

  10. #430
    Join Date
    Mar 2010
    Posts
    581

    Default

    Excellent. Thank you! The Egg and Spider reminds me of Qix and Sparx.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •