Shop OBEX P1 Docs P2 Docs Learn Events
Flexspin and matlab/octave, the (for me) ideal combination. — Parallax Forums

Flexspin and matlab/octave, the (for me) ideal combination.




For various experiments I like to use the free matlab clone octave.
In my opinion, it is ideally suited for developments for the P2.
Everything can be done in a closed environment.
From the editor with C syntax highlight, simulation on PC, compile, download and communication via the USB interface, all without leaving the octave - platform.
A few screenshots as an example.

Comments

  • pik33pik33 Posts: 2,366

    Interesting idea. If Octave can receive data from a connected P2, it can (post)process and analyze data, draw plots, etc.

  • @Reinhard said:



    For various experiments I like to use the free matlab clone octave.
    In my opinion, it is ideally suited for developments for the P2.
    Everything can be done in a closed environment.
    From the editor with C syntax highlight, simulation on PC, compile, download and communication via the USB interface, all without leaving the octave - platform.
    A few screenshots as an example.

    This is nice!

  • @pik33 said:
    Interesting idea. If Octave can receive data from a connected P2, it can (post)process and analyze data, draw plots, etc.

    Basicly can Octave send and receive data from/to the P2 board, with the Serial package.
    The problem is here, if I leave the loadp2 for reconnect with the Serial object from octave, the running program is lost, because the power line is for short time broken.
    I use the P2 Eval board.
    solution 1: redirect the output from terminal into a file a la loadp2 ............ > data.txt and load and analyze this file. (easy)
    solution 2: load the binary with the Serial object to P2 and substitute the loadp2. (not so easy(for me))

  • Christof Eb.Christof Eb. Posts: 1,195
    edited 2023-01-29 10:40

    @Reinhard said:



    For various experiments I like to use the free matlab clone octave.
    In my opinion, it is ideally suited for developments for the P2.
    Everything can be done in a closed environment.
    From the editor with C syntax highlight, simulation on PC, compile, download and communication via the USB interface, all without leaving the octave - platform.
    A few screenshots as an example.

    Thank you, Reinhard,
    for posting this!
    I have been using P2+Taqoz+Teraterm+notepad++ together with Anaconda distribution of Python with matplotlib and numpy libraries. I will have a look at your path. It is interesting, that the old battle "Which is the best computer language?" has moved to "Which environment has got the most helpful libraries, that you can use?"

  • bob_g4bbybob_g4bby Posts: 412
    edited 2023-01-29 10:38

    That's also true at any level. Which operating system to use? Why, the choice is clear, the one that runs all the applications you require and is likely to make you the most productive. I use all your applications + LabView which is free for community projects. It's also a RAD which suits a single person 'team'. I've tried Octave and Scilab, they're RAD too, you get to where you want to be quickly and designed for and by experimenters.

    I'm surprised that spreadsheets haven't morphed into experiment controllers, as the analysis and graphing are automatic as the data comes in. A natural fit as a backend.

  • ReinhardReinhard Posts: 489
    edited 2023-01-29 14:29

    Now I receive data from P2.
    A small work was to do, because octave accept only numbers (see comment in screenshot)

  • my octave testbench growed up.
    I develop a tiny DSP - Library.
    A typical unit test looks like this:

    1920 x 1080 - 286K
Sign In or Register to comment.