Multiple communication instances
Hi Guys,
I have a GUI that serially communicates with a board and gets memory content continously(monitoring the content at run-time) based on the memory location input by the user. Now, I wanna have multiple instances of the GUI that can accomplish the same task(get memory contents for different memory locations at the same time).Any ideas, please let me know.
Best Regards,
Swapna
Re: Multiple communication instances
Im not sure how this can help you...just try putting the same procedure from timer's timer event for each instance...
Re: Multiple communication instances
I was adviced in one of the forums about Coffee Monitor method that is available in MSDN(VB6 Documentation). Shall go through it and paste if i find the solution. Its basically to create a service and multiple clients who will listen to this service.
Re: Multiple communication instances
Coffee Monitor demo is to implements multi threading in vb6. using activex exe's.I don't think it will help you because you have only 1 serial port through which you are communicating with a board.Another way is to implement the class which will open the port and send/recieve the data and then close the port..Add another variable as collection having multiple instances of above mentioned class.The number of instance is directly proprotional to users requesting various memory blocks read.Now add time to loop through each object and process through serial port..
1 Attachment(s)
Re: Multiple communication instances
Hi Guys,
Thank you all for ya time and valuable suggestions..
I am able to communicate with the board from different GUI forms and perform all the three operations concurrently over the serial port.
I have implemented it with round robin algorithm. Every GUI that is open is given a time slot irrespective of whether its performing any operation or not. RoundRobin Algo with Timer is taking care of the job.
If anyone comes across such situation please find the attached .zip of RoundRobin algo that has been modified for my requirements. This is doesn't include serial communication code.It jus has RounRobin with timers.
Regards,
Swapna