Shop OBEX P1 Docs P2 Docs Learn Events
Questions on writing to the propeller itself — Parallax Forums

Questions on writing to the propeller itself

turbosupraturbosupra Posts: 1,088
edited 2011-02-17 12:41 in Propeller 1
For the last few months I have been learning c# and I'm about ready to create my first GUI to write to the propeller. I have Hanno's awesome ezlog to view the output, but I'd like to be able to change things via a GUI input.

If I write to the prop I'll have to use which serial protocol?

Can I write/replace just variables (and/or constants) or should I write the entire program I have already coded and just have the GUI replace values before writing the entire thing in one batch? How about objects? How can I attach them if I have to write the entire program back to the prop?

Is there a preceding and post hand shake of sorts?


Thanks for reading!

Comments

  • HannoHanno Posts: 1,130
    edited 2011-02-13 14:37
    ViewPort and 12Blocks make this very easy. In ViewPort you can use the included views to control spin variables with controls like dials, textboxes, buttons... Or, you can create custom views- using xml to place and configure gui elements. This is how the PropScope ui was built.
    With 12Blocks you can drag User Interface elements like textbox, meter, buttons.. directly onto your worksheet to monitor and control your program. To turn that into a standalone application just save it as an "exe". See this tutorial:
    http://12blocks.com/tutorial.pdf

    Both 12Blocks and ViewPort include a DDE server- you can use this to easily monitor/control programs programmatically. For example, in Excel you can type this formula into a cell to get the value of a variable: "=DDE("vp";"get";"variablename")

    12Blocks also includes integration with Skype- so a skype friend can type: "x=1" to set a variable value. It also includes an XML-RPC and ROS server...
    Hanno
    Hanno
  • turbosupraturbosupra Posts: 1,088
    edited 2011-02-17 12:41
    Thanks for the reply Hanno.

    I don't know if that is exactly what I need, because I wanted to build my GUI from the ground up, but I will look into it.
Sign In or Register to comment.