Shop OBEX P1 Docs P2 Docs Learn Events
Viewport v1.0- Get Inside the Propeller! EDIT: This Thread describes an OLD ver — Parallax Forums

Viewport v1.0- Get Inside the Propeller! EDIT: This Thread describes an OLD ver

HannoHanno Posts: 1,130
edited 2007-09-04 20:00 in Propeller 1
WARNING:
THIS THREAD DESCRIBES VERSION V1.0 OF VIEWPORT- NEWEST VERSION IS AVAILABLE HERE:
mydancebot.com


Viewport is a program that let's you view and change variables in your Propeller application in real time.

Viewport shows you the current state and graphs archived data for later analysis. A one line change to your Propeller program enables Viewport to access your variables and give you a user friendly interface to change variables as the program runs- all with no performance impact since it's running entirely in its own cog.

The Viewport Conduit object is coded entirely in assembly to provide a record 2mbps transmit and receive connection- which you can use any way you want. If you're interested in observing quick events you can sample a byte variable 200,000 times per second. Or you can include every variable in your program for detailed analysis.

Viewport is modeled after a digital oscilloscope and lets you manipulate the data as you want. Graphed data can be copied as an image to the clipboard from where they can be shared in email or office applications. Data can also be saved in standard WAV files.

Viewport was developed to build affordable balancing robots "mydancebot", available later this year. Viewport is free for hobbyist using it for personal projects, other licenses will follow shortly.

Please visit http://mydancebot.com/products/viewport/10 for more information, help and to download the installer.[noparse][[/noparse]url]

Post Edited (Hanno) : 9/4/2007 7:54:59 PM GMT
646 x 324 - 32K
782 x 446 - 80K

Comments

  • milwmilw Posts: 12
    edited 2007-05-29 14:06
    This looks really useful! I'll have to check out your Dancebot- I'm working with WowWee's RSV2 and RS Media myself.
    cheers & thx for the great job! -Scott

    ps I'm just new to the Prop, got my Protoboard last Friday
    jumpin.gif
  • JTCJTC Posts: 60
    edited 2007-05-29 16:11
    Wow ! looks very good. I will give it a shot.
    Jim
  • Graham StablerGraham Stabler Posts: 2,507
    edited 2007-05-29 16:55
    Awesome I could really use this right now

    Graham
  • HannoHanno Posts: 1,130
    edited 2007-05-29 19:45
    Thanks for the kind remarks! We've tested the setup on several computers, but we're sure we're missing something somewhere- so please let us know when you encounter problems. Assuming all goes well we'll release additional Viewport Applets over the next months: a 200ksample/sec microphone, an analog electronics dreamkit, a digital dreamkit, and more. Stay tuned!
  • BergamotBergamot Posts: 185
    edited 2007-05-29 19:58
    Cool! scool.gif

    Two questions:

    1. Will the "Digital Dreamkit" display variables as numeric/hex/ASCII instead of graphed? I haven't had a chance to check, so it may do this already.

    2. Will mydancebot use wheels or legs?
  • HannoHanno Posts: 1,130
    edited 2007-05-29 20:53
    Bergamot-
    Currently variables are graphed, and their value is displayed as numeric. In a future Viewport, you will have the option to display as hex, ascii, and binary- as well as graph the individual bits as in a logic state analyzer. Also, right now you can change variables by sending either a numeric byte or long to the Propeller- by clicking a checkbox (0/1) or typing the value in a textbox. This will also be improved to allow entry by scrollbar, as well as binary, ascii and hex.

    The first generation mydancebot will use wheels...
  • M. K. BorriM. K. Borri Posts: 279
    edited 2007-05-29 22:04
    this is supremely awesome!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    http://forums.parallax.com/showthread.php?p=650217

    meow, i have my own topic now? (sorta)
  • Rob7Rob7 Posts: 275
    edited 2007-05-29 22:27
    Hanno,

    Looks great.

    I installed all the software and verified it running.

    Time for a test drive !

    rob7
  • Graham StablerGraham Stabler Posts: 2,507
    edited 2007-05-29 22:48
    I've just been having a play. It doesn't seem to scale the x axis correctly, it just gets compressed on the right hand side for longer periods of time and tends to lock up.

    I like the general concept very much.

    Graham
  • HannoHanno Posts: 1,130
    edited 2007-05-30 21:39
    Thanks Graham for your pm- I think I know what's going on.

    Viewport reads data from the Propeller into a buffer at 2mbps- this buffer is initially set to 10MB to support computers with limited memory. If you set the timescale high enough- ie 2sec/div then it won't have enough data in it's buffer to graph all the way across the screen- no matter how long you run it.
    Luckily, you can configure the size of the buffer in the "Communications" menu. Give it a try! Of course if you set the timescale high enough, the trace may take some time to cover the screen.

    I believe the "locking up" is related to how Viewport shares the COM port with other applications. Since only one program can use the COM port at a time, we made the decision to only connect to the propeller when Viewport is the active window. So, if you Alt-Tab, or click on the Parallax Propeller IDE, then Viewport will release the COM port automatically and let you reprogram the propeller. When the Viewport window becomes active again (you click on it), Viewport will reopen the COM port, detect if configuration changes were made, and then continue graphing your data. This may sound confusing, but is very useful when making changes to your Propeller Application- you don't have to worry about connecting/disconnecting- it just works.

    One additional note to timescale: Since measurements are digital, with no noise or jitter, the graph of a periodic waveform may appear the same at specific timescales. This is caused by sampling the data at periodic timeintervals- the same effect why coachwheels in movies appear to stop or run backwards.

    The easiest way to diagnose Viewport problems is to look at a screenshot- so, if you're uncertain about something then please share a screenshot or pm us and we'll get to it right away!
  • Graham StablerGraham Stabler Posts: 2,507
    edited 2007-05-30 23:46
    I thought it must be buffer related, I didn't realize I would have to set it myself, should have checked, too used to pico scope software I suspect.

    Graham
  • HannoHanno Posts: 1,130
    edited 2007-05-30 23:52
    Graham- you're right, Viewport should handle the buffer sizing- not you. And a 10MB buffer is too small for most computers. The next version will analyze your system to set the buffer size automatically.
  • SapiehaSapieha Posts: 2,964
    edited 2007-09-04 18:50
    Looks very good.

    But only
    _clkmode = xtal1 + pll16x
    _xinfreq = 5_000_000


    My Prop spin On !!

    _clkmode = xtal1 + pll8x
    _xinfreq = 14_318_180

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sapieha
  • HannoHanno Posts: 1,130
    edited 2007-09-04 20:00
    Hi Sapieha,
    Wow- do you really have your Propeller clocked with 14Mhz? Is it stable when using the pll16x setting? Could we use this to increase the measurement rate? Ie, if it stably runs at 14*8= 112Mhz- then Viewport could take samples at 112Mhz!

    One thing: Please repost under the current Viewport thread- this talks about v1.0- released in May- I would prefer not confuse people with old versions.
    http://forums.parallax.com/forums/default.aspx?f=25&m=209676


    Hanno

    ATTENTION:
    THIS IS AN OLD THREAD DISCUSSING AN OUTDATED VERSION OF VIEWPORT. PLEASE VISIT: mydancebot.com FOR THE LATEST
Sign In or Register to comment.