Results 1 to 5 of 5

Thread: Close Application Using Timer or Unattach Serial Port in Application Using Timer

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2004
    Posts
    9

    Close Application Using Timer or Unattach Serial Port in Application Using Timer

    Hello. I'm thinking to limit my application usage to certain hours. I'm doing a vehicle's license plate recognition to trace cars that enter an area during office hours. I'm using a IR signal sensor that will detect the incoming and outgoing cars. The IR device is connected to serial port. So i want my application to start on 8 a.m and end at 5 p.m , that is the working hour in my place. So i think i should write the program according to the clock in the system. I think i can do 2 things :
    1) disconnect the serial port connection from my application. So when sensor is disconnect, no car will be detected.
    2) shutdown the application.

    Do any of you have suggestion on how to do it? Thanx.

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Close Application Using Timer or Unattach Serial Port in Application Using Timer

    Welcome to the Forums.

    Nano, this thread would be better off in the Classic VB forum. VBA is for MS
    Office development primarily.

    What language are you planing on writting the application in?


    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    New Member
    Join Date
    Dec 2004
    Posts
    9

    Re: Close Application Using Timer or Unattach Serial Port in Application Using Timer

    Opps.. sorry. I'm new here.. Thanks for telling.. Anyway, i've wrote the app. using VB. The image processing part is using Matlab and the result is then sent to the VB app. to be displayed.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Close Application Using Timer or Unattach Serial Port in Application Using Timer

    Try checking out the mscomm control to help you work with the serial prot.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5

    Thread Starter
    New Member
    Join Date
    Dec 2004
    Posts
    9

    Re: Close Application Using Timer or Unattach Serial Port in Application Using Timer

    thanks for the tip

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