vivek_g27 Level: Sage
 Registered: 06-04-2005 Posts: 57
|
menu responds after 2minutes
iam using this to get instrument data using a serial port (rs 232). i send a command from PC and i execute a
delay with doeventsto receive data. but for sending a command from pc i wait for 250 ms without doevents.
sometimes, after clicking my menu responds after 2-5 minutes .
is it due to long procedures?
or does it need code optimization?
so should i
1.write some menu handle for this ?
2. reduce the delay (it takes me some time for receiving data)
3. or is there anything wrong in my approach. if so guide me
|