Home All Groups Group Topic Archive Search About
Author
16 Mar 2006 6:21 PM
Sweet.mhtrq
I want to use "send" to send a string
like
Code:
send "p" & OutputString


if OutputString is "1234" , "p1234" will be sent.

but it is sent too fast, my robot' cpu cant receive the whole string.
Sometime it
get "p123" . Can we set some delay between them in this code?

Author
16 Mar 2006 6:40 PM
Armin Zingler
<Sweet.mh***@gmail.com> schrieb
> I want to use "send" to send a string
> like
> Code:
> send "p" & OutputString
>
>
> if OutputString is "1234" , "p1234" will be sent.
>
> but it is sent too fast, my robot' cpu cant receive the whole
> string. Sometime it
> get "p123" . Can we set some delay between them in this code?


How can we reach your robot? By email, snail mail, phone, train? Where does
he live?

;-)

SCNR


Armin
Author
16 Mar 2006 9:53 PM
Brian Henry
are you communicating to the device via network connections, wifi, serial,
parallel, usb connections? if so which one?


<Sweet.mh***@gmail.com> wrote in message
Show quoteHide quote
news:1142533306.276590.168430@z34g2000cwc.googlegroups.com...
>I want to use "send" to send a string
> like
> Code:
> send "p" & OutputString
>
>
> if OutputString is "1234" , "p1234" will be sent.
>
> but it is sent too fast, my robot' cpu cant receive the whole string.
> Sometime it
> get "p123" . Can we set some delay between them in this code?
>
Author
16 Mar 2006 11:17 PM
Herfried K. Wagner [MVP]
<Sweet.mh***@gmail.com> schrieb:
>I want to use "send" to send a string
> like
> Code:
> send "p" & OutputString
>
> if OutputString is "1234" , "p1234" will be sent.
>
> but it is sent too fast, my robot' cpu cant receive the whole string.
> Sometime it
> get "p123" . Can we set some delay between them in this code?

\\\
For Each c As Char In "p123"
    Send(c)
    Thread.Sleep(100)
Next c
///

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
18 Mar 2006 12:09 AM
Sweet.mhtrq
thanks so much
one more question:

For Each c As Char In "p123"
    ...
Next

this edition only works in VB.net
I want it works in VB6.0. what's the change?
Author
18 Mar 2006 1:55 AM
Herfried K. Wagner [MVP]
<Sweet.mh***@gmail.com> schrieb:
> this edition only works in VB.net
> I want it works in VB6.0. what's the change?

Ask your question in a more appropriate group ("microsoft.public.vb.*"
hierarchy).

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>