Results 1 to 5 of 5

Thread: Multiple communication instances

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2006
    Posts
    42

    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

  2. #2
    VB Guru ganeshmoorthy's Avatar
    Join Date
    Dec 2005
    Location
    Sharjah, United Arab Emirates
    Posts
    3,031

    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...
    If an answer to your question has been helpful, then please, Rate it!

    Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.


  3. #3

    Thread Starter
    Member
    Join Date
    Oct 2006
    Posts
    42

    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.

  4. #4
    Member
    Join Date
    Oct 2006
    Location
    Noida,India
    Posts
    49

    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..
    Rajneesh

  5. #5

    Thread Starter
    Member
    Join Date
    Oct 2006
    Posts
    42

    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
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width