serial activeX control with internet explorer and vbscript(Read 32796 times)
hello,
i use the serial activeX control within the internet explorer with vbscript.
i have a device sending FF 02 FD E8.
the only value i receive is the E8 as 232.

how can i receive the whole bytes? can i receive them as hex bytes?
can you supply some examples?

i use the following function as in your vbs example:

Code: javascript:void(0);
Sub SPortX_OnRxChar(ByVal Count)
        If Count > 0 Then
            Dim ReadBuff
            ReadBuff = SPortX.ReadVariant(Count)
            Dim ASize
            ASize = UBound(ReadBuff) - LBound(ReadBuff) + 1
            for a = 0 to ASize-1
            res = ReadBuff(a)
            next
    displayRx(Dec2Hex(res))
        End If
End Sub


thank you in advance,
marc



Re: serial activeX control with internet explorer and vbscript Reply #1 on: December 10, 2011, 11:45:56 AM
OMG!
I should put the output function also in the for/next  ::)

Thanks for your replies.
Marc



Re: serial activeX control with internet explorer and vbscript Reply #2 on: December 29, 2011, 08:21:11 AM
Well the Code or Function u Have Given I take a look of it It's to be Correct than why it's not working ?

will Get back you soon with the solution  :)


http://www.jfj.co.nz



 

Sitemap 1 2 3 4 5