[Gambas-user] using events of serial ports for reading how_?
T Lee Davidson
t.lee.davidson at gmail.com
Fri Aug 10 05:12:25 CEST 2018
On 08/09/2018 11:10 AM, PICCORO McKAY Lenz wrote:
>
> 2018-08-09 10:43 GMT-04:00 T Lee Davidson <t.lee.davidson at gmail.com <mailto:t.lee.davidson at gmail.com>>:
>
> On 08/08/2018 05:57 PM, PICCORO McKAY Lenz wrote:
> > as everybody said, if there's data in the port a read event will raise, but there's not happened
>
> How do you know the event isn't being triggered? I don't see your code anywhere giving the printer time to respond.
>
> it's suppost that the event raised automatically if there some data! right? as documentation!
Yes, exactly, IF there is some data. How do you know there is data available that should trigger the _Read event? And, if there
is indeed data available, how do you know for sure that the event isn't being triggered?
> > attached the project and also something when all the main.module lines executed, programs does not end...
> Could that be because you never close the port?
>
> why? that's nothing related to! rules of the programs ends! so port are openened dont care!
>
> i just put the close port urle and still happened!
>
> somethings programs ends something not! get hang on "some where" here! i put pause and code does not pause!
Well Gambas has no "Pause" statement, so I don't know what you mean.
___
Lee
More information about the User
mailing list