Sending serial commands with tibbo basic
I have a VB.net application that sends commands to a device connected via rs232 in byte arrays. how do i send the same commands in tibbo basic? so far, i've only been able to find the ser.setdata function, which requires the command to be of string type.
2 people have this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?advice anyone?
-
Inappropriate?you have convert all byte in tab to ascii char like this:
dim s as string
dim tab(8) as byte
dim i as byte
s=""
for i=0 to 7
s=s+chr(tab(i))
next i
ser.setdata(s)
ser.send -
Inappropriate?do you mean i just have to convert the bytes to ascii and concatenate them? the byte array will not be required then right?
-
Inappropriate?taste to apply code which I passed, you take the next element of the array in the loop you convert his value to ascii and stick on them to previous.
Loading Profile...




