[Gambas-user] SERIAL PORT : AGAIN ?

Paolo Saudin sdnpaolo at ...69...
Tue Aug 10 08:12:32 CEST 2004


Hi Budi,
sure you can ! :-)  
Have a look at the attached code. You can search the mailing lists 
Gambas-user Archives 
<http://sourceforge.net/mailarchive/forum.php?forum=gambas-user> at 
around june 2004 as well.
Regards,
Paolo

Budi Arief Gusandi wrote:

> Dear Sir, Madam. ..hehee LOL
>
> Is there any methode to read from serial port rather than from read 
> event ?
> In VB simply we can use :
>
> Private Sub xxx()
> Dim sInput as String
> MsComm1.Output = "x" 'a command to reset, just a sample
> Wait 150 'a procedure to wait for 150 ms, until all the responese for 
> the  serial come
> sInput = MsComm1.Input
> 'Process result here...
> 'After that Send again another command
> MsComm1.Output = "s" 'a command to select, just a sample
> Wait 30 'a procedure to wait for 30 ms, until all the responese for 
> the  serial come
> sInput = MsComm1.Input
> ..processs
> End sub
>
> In that code, i dont want to use read() event. I have workaround to 
> use a  variabel in read() event, and use it in the sub, but i just 
> want to use  read() event for triggering only....if there's a char in 
> the buffer, i'll  go to the procedure, processing manually.
>
> Thank you
>
>
> Budi
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
> Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CAdam4000.class
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20040810/de7c01d3/attachment.ksh>


More information about the User mailing list