Shop OBEX P1 Docs P2 Docs Learn Events
serin from labview — Parallax Forums

serin from labview

ArchiverArchiver Posts: 46,084
edited 2000-11-10 19:37 in General Discussion
Group,
Somewhere out there, I have seen a reference to serial port interface
between the Stamp and LabView. I have a project that talks to the Serial
Send from Scott Edwards and even likes Hyperterminal ( no hardware likes
Hyperterminal! ) but it chokes when receiving command strings from
LabView. These are simple one and two character commands. Does anyone out
there have any experience using SERIN 16 commands from a host computer
running LabView?
thanks,
Mike

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2000-11-08 05:29
    Hi

    Try to place a timedelay between the sending of the bytes from Labview.
    Sometimes the PC software sends uot the bytes faster than the BS2 can resive
    them.

    /Magnus Ohlson

    Original Message
    From: "MIKE WALSH" <walsh@c...>
    To: <basicstamps@egroups.com>
    Sent: Tuesday, November 07, 2000 11:54 PM
    Subject: [noparse][[/noparse]basicstamps] serin from labview


    > Group,
    > Somewhere out there, I have seen a reference to serial port interface
    > between the Stamp and LabView. I have a project that talks to the Serial
    > Send from Scott Edwards and even likes Hyperterminal ( no hardware likes
    > Hyperterminal! ) but it chokes when receiving command strings from
    > LabView. These are simple one and two character commands. Does anyone out
    > there have any experience using SERIN 16 commands from a host computer
    > running LabView?
    > thanks,
    > Mike
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2000-11-08 15:12
    I have experience with lab view and with stamps but no the two together
    I assume you output device on the labview is set for rs232 output ?
    please provide a little more info - if you got hyprtterm to work there is NO
    reason you cant get labview to work - probably serial port configuration

    richard




    Original Message
    From: "MIKE WALSH" <walsh@c...>
    To: <basicstamps@egroups.com>
    Sent: Tuesday, November 07, 2000 4:54 PM
    Subject: [noparse][[/noparse]basicstamps] serin from labview


    > Group,
    > Somewhere out there, I have seen a reference to serial port interface
    > between the Stamp and LabView. I have a project that talks to the Serial
    > Send from Scott Edwards and even likes Hyperterminal ( no hardware likes
    > Hyperterminal! ) but it chokes when receiving command strings from
    > LabView. These are simple one and two character commands. Does anyone out
    > there have any experience using SERIN 16 commands from a host computer
    > running LabView?
    > thanks,
    > Mike
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2000-11-09 17:29
    Thanks, Magnus
    We have tried pacing without much luck.
    Mike


    At 06:29 AM 11/8/00 +0100, you wrote:
    >Hi
    >
    >Try to place a timedelay between the sending of the bytes from Labview.
    >Sometimes the PC software sends uot the bytes faster than the BS2 can
    >resive them.
    >
    >/Magnus Ohlson
  • ArchiverArchiver Posts: 46,084
    edited 2000-11-09 17:40
    Richard,
    Thanks for your reply. I did the instrument development in my shop and sent
    it away. The end user has the current Parallax's editor, Scott Edwards
    Serial Out program, Hyperterminal and even an old DOS version of ProComm
    working with the Stamp board at his end. The problem comes when he tries to
    issue his one and two character commands from LabView (Ver 5, I think).
    Some of the characters make it through, some don't. My code sends him an
    "*" after the stamp receives a valid command. It seems that characters are
    randomly lost in the transmission. I thought that some experienced LabView
    hacker, would have an "Oh, that old serial Stamp problem .... " answer for me.
    Mike



    At 09:12 AM 11/8/00 -0600, you wrote:
    >I have experience with lab view and with stamps but no the two together
    >I assume you output device on the labview is set for rs232 output ?
    >please provide a little more info - if you got hyprtterm to work there is NO
    >reason you cant get labview to work - probably serial port configuration
    >
    >richard
  • ArchiverArchiver Posts: 46,084
    edited 2000-11-10 17:10
    At 04:54 PM 11/7/00 , you wrote:
    >Group,
    >Somewhere out there, I have seen a reference to serial port interface
    >between the Stamp and LabView. I have a project that talks to the Serial
    >Send from Scott Edwards and even likes Hyperterminal ( no hardware likes
    >Hyperterminal! ) but it chokes when receiving command strings from
    >LabView. These are simple one and two character commands. Does anyone out
    >there have any experience using SERIN 16 commands from a host computer
    >running LabView?
    >thanks,
    >Mike


    Mike,

    I used a basic stampII in a project where the stamp was used as a process
    controller. The basic idea was to have a design that could be controlled from
    a manual chassis as well as labview. I must sadly report that the stamp's
    reliability wasn't good, in fact, it would send extra characters randomly
    (verified
    with a serial data analyzer). I'm not saying it can't be done. In this
    instance it
    didn't work for me. I suspect I was pushing the stamp to it's maximum capacity
    or beyond, or there was an interaction between commands that set up the
    problem.

    My suggested approach to your task would be to insure that you verify all
    communications starting with a single character, then two, and so on. A baud
    rate burst of multiple characters may overwhelm the stamp unless you use
    a small delay to pace the rate of the incoming characters. I doubt your
    problems will be with labview, but you must conform labview to the limitations
    of the stamp.

    Greg Hensley
  • ArchiverArchiver Posts: 46,084
    edited 2000-11-10 19:37
    Greg,
    I appreciate you comments and, I agree sadly, the conclusion that there may
    be no quick fix and that the "rough edges" of the Stamp's serial
    communication my be my undoing.
    I have suggested to the end user that he add a pacing delay between
    characters. He isn't happy about this, because he is looking for a time
    related event and I had all ready made him accept the variability of using
    a serial input for his control.
    Thanks again to all who have given comment to this problem.
    Mike




    >Mike,
    >
    >I used a basic stampII in a project where the stamp was used as a process
    >controller. The basic idea was to have a design that could be controlled from
    >a manual chassis as well as labview. I must sadly report that the stamp's
    >reliability wasn't good, in fact, it would send extra characters randomly
    >(verified
    >with a serial data analyzer). I'm not saying it can't be done. In this
    >instance it
    >didn't work for me. I suspect I was pushing the stamp to it's maximum capacity
    >or beyond, or there was an interaction between commands that set up the
    >problem.
    >
    >My suggested approach to your task would be to insure that you verify all
    >communications starting with a single character, then two, and so on. A baud
    >rate burst of multiple characters may overwhelm the stamp unless you use
    >a small delay to pace the rate of the incoming characters. I doubt your
    >problems will be with labview, but you must conform labview to the limitations
    >of the stamp.
    >
    >Greg Hensley

    _________________________________
    Mike Walsh
    walsh@i...
    California Institute of Technology
    Biology Electronics Shop
    MS 216-76
    Pasadena, CA 91125

    626-395-6825 , FAX 626-584-1654
    237 Beckman Behavioral Biology Bldg.
Sign In or Register to comment.