Shop OBEX P1 Docs P2 Docs Learn Events
SX/B GIU Interface?? — Parallax Forums

SX/B GIU Interface??

Dave2357Dave2357 Posts: 2
edited 2008-07-29 09:36 in General Discussion
I am looking for a way to add a GUI to the SX/B program I have working.
I have a particular timing pattern needed to program a chip. I set up the
timing in in two subs. I call the sub for either a 1 or 0 pulse.
I would like to control this externally so the pattern, 42 bits in all can be set
quicker and a single button to save/assemble/run?
Can this be done with the SX/b? If so any examples?
Thanks

Comments

  • Timothy D. SwieterTimothy D. Swieter Posts: 1,613
    edited 2008-07-26 13:18
    Dave -

    I am not sure I understand fully what you are looking for. Let me try and offer advice any way.

    It sounds like you are looking to code some tools to help you generate code or to generate a table in SX/B. I have two ideas. One idea is to use Excel and setup different cells to input your data. Then have other cells piece together the strings of text and code. Finally the assembled strings can be copied from Excel and into SX/B.

    Another program would be the free Visual Basic Express or the C variant.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Timothy D. Swieter, E.I.

    www.brilldea.com·- Prop Blade, LED Painter, RGB LEDs, uOLED-IOC, eProto fo SunSPOT, BitScope
    www.sxmicro.com - a blog·exploring the SX micro
    www.tdswieter.com
  • Dave2357Dave2357 Posts: 2
    edited 2008-07-28 15:23
    Hi Timothy,

    You have the basic idea I was trying to convey. I will try setting it up the table in excel.

    Thanks,

    Dave
  • JonnyMacJonnyMac Posts: 9,216
    edited 2008-07-28 18:49
    I have, on several occasions, written simple programs in PBASIC to produce tables for my SX/B code. You can do it with any language that will produce text output -- simple copy the text into your SX/B and download.
  • Capt. QuirkCapt. Quirk Posts: 872
    edited 2008-07-29 08:53
    I have a need for the GUI-Bot graphical interface,· modified to program in SX28 and be suitable for young kids (Elementary and Middle school ages). Is it a difficult project to make a similar program?

    Bill
  • Timothy D. SwieterTimothy D. Swieter Posts: 1,613
    edited 2008-07-29 09:36
    Bill -

    A graphical robot programming application would require work and you should think of it like a compiler.· Here is what I would try and do...
    • First you need to design the hardware and software so it is standardized.· The more standization you do, then the less parameters in the Graphical programming part.· As you add parameters for this and that the complexity will go up.
    • Once the hardware is designed, you need to write a generic software framework for the SX and the robot.
    • In the generic framework you write the various "modules".· You need to ensure the modules are compatible with each other and test the various itterations.
    • From there you can start your graphical interface. The interface will implement the modules you designed in SX.· Essentially the program takes what the user inputs and pieces together code and then programs the SX.· The graphical program is compiling the modules into one large text file of SX code and then passing it to a facility for downloading to the SX.
    • The graphical program can check that modules "go together".· It could also check and verify any input parameters.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Timothy D. Swieter, E.I.

    www.brilldea.com·- Prop Blade, LED Painter, RGB LEDs, uOLED-IOC, eProto fo SunSPOT, BitScope
    www.sxmicro.com - a blog·exploring the SX micro
    www.tdswieter.com
Sign In or Register to comment.