Shop OBEX P1 Docs P2 Docs Learn Events
LabVIEW -eb500- BS2 — Parallax Forums

LabVIEW -eb500- BS2

rage404rage404 Posts: 17
edited 2008-04-27 22:50 in Robotics
Hey all.
I have been searching the forum for a while searching for a way to controll a Boe-Bot with BS2 using LabVIEW. There have been several people posting questions about it but nobody has ever posted a solution.

What I am looking for is the ability to turn my computer into the processing monster and have the boe-bot acquire data and move around.

If anyone has ever found a solution to getting these two systems communicating I would love to study it and figure out how its done.

What im asking for is bs2 code and a labview VI that can communicate together. does anyone have one? Even just to hit a button and turn on a light.

Thanks for reading,
Jeff

Comments

  • dandreaedandreae Posts: 1,375
    edited 2008-04-24 16:45
    You will have to use the serial communication between LabView and the BASIC Stamp.· Basically you could send out ASCII characters from LabView to the BASIC Stamp and program the stamp using the SERIN command to wait for certain ASCII characters.· Based on the characters received you could set up different routines for the robot to perform.



    Regards,



    Dave

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dave Andreae

    Parallax Tech Support·
  • rage404rage404 Posts: 17
    edited 2008-04-24 17:42
    If i wanted to program the stamp so that a variable would be set to the value of the ASCII character how would i do that. I do not quite understand the SEROUT command.
    Say I get labview to send out 0010 and I want to use that value in a PBasic program. Howdo I write the SERIN command to recieve that and set it t a variable.
    Jeff

    variable var word

    serin [url=mailto:#$@#$@%@%]#$@#$@%@%[/url]· <
    what goes here how do i set this input to my var variable?
    ·
  • Steve JoblinSteve Joblin Posts: 784
    edited 2008-04-24 18:15
    Page 49 of http://www.parallax.com/Portals/0/Downloads/docs/prod/comm/A7-UM-eb500-SER.pdf has a simple example of receiving a command via the eb500 using SERIN
  • Rob311Rob311 Posts: 83
    edited 2008-04-27 22:50
    I did something similar to what your talking about (i think) except i used visual basic to write the code. i can tell my bot to go froward, backward, all that fun stuff. i can also have it rotate a ping sensor and report back the distances. Its not that hard, but i could only help you out in the vb realm of code.
Sign In or Register to comment.