julia01945
Programmer
Hi,
I wrote an Aspect script and I got a problem with "WHEN" statment. My script does the following:
1 waits for modem connection
2 when the connection is established, reads data from the modem into some allocated memory
3 sends some feedback to the remote modem
in order to process data from the modem I use
set aspect rxdata ON
when $RXCOUNT call FUNCTION1
so it looks like even if there is no data in the modem(comget returns 0 bytes read), FUNCTION1 keeps been called with RXCOUNT that has non 0 value.
It cause many problems in my script. How can I fix it?
Can you help me please.
Thanks
I wrote an Aspect script and I got a problem with "WHEN" statment. My script does the following:
1 waits for modem connection
2 when the connection is established, reads data from the modem into some allocated memory
3 sends some feedback to the remote modem
in order to process data from the modem I use
set aspect rxdata ON
when $RXCOUNT call FUNCTION1
so it looks like even if there is no data in the modem(comget returns 0 bytes read), FUNCTION1 keeps been called with RXCOUNT that has non 0 value.
It cause many problems in my script. How can I fix it?
Can you help me please.
Thanks