Author Topic: Com port change using Modbus RTU gets unhandled exceptions (SOLVED).  (Read 1342 times)

Larry J

  • Newbie
  • *
  • Posts: 8
    • View Profile
Hello to all,

I hope someone can help me please.

I need to be able to change the com port for the ModbusRTU driver via code.  If I simply change the PortName property, I get unhanded exceptions for data received.  What must I do here to change ports please?

I have tried stopping the polling, changing the com and then restarting, but that does not cure it.

For the record, I am an intermediate programer in vb, c, and objc.

Thank you so very much for your consideration.

« Last Edit: April 20, 2015, 06:03:38 AM by Larry J »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5320
    • View Profile
    • AdvancedHMI
I fixed the ModbusRTU driver so it will properly allow you to change the PortName. It will be part of the next release of 3.98, which should be available by March 8

Larry J

  • Newbie
  • *
  • Posts: 8
    • View Profile
Hello and thank you for the prompt response. 

This is great news!  Thank you so very much.  I must tell you that I really enjoy the Advance HMI!  I was delighted to discover it.

I very much look forward to the next release!

Thanks again!

Larry.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5320
    • View Profile
    • AdvancedHMI
Version 3.98 is now available that should be able to handle this

Larry J

  • Newbie
  • *
  • Posts: 8
    • View Profile
The problem is solved with the new version! 

Thank you!