how to separate serial data ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • marsha
    New Member
    • Mar 2007
    • 1

    #1

    how to separate serial data ?

    i have problem with my script.

    i have input from several sensor then i send to serial port.
    the serial data received with vb. data appear not in a single data, but in some packet.

    so, how to separate this data ?

    i want to be like this

    sensor 1 = 35
    sensor 2 = 40
    sensor 3 = 50

    for example the data like this -> aSbFcGdOePfRgYh K

    if the first data is a so the value is S, and
    if the data b so the value is F, and
    .
    .
    .
    .
    .
    .
    if the data is h so the value is K


    anyone can help me ?
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    How are you receiving this data? In a string? A byte array?

    When you say a "script" do you mean VBA? Visual Basic? VB Script?

    How much have you attempted or completed, and what part is giving you trouble?

    Comment

    Working...