AdvancedHMI Software

General Category => Support Questions => Topic started by: GraemeTownsend on June 02, 2017, 01:03:08 AM

Title: ComComponent runtime change
Post by: GraemeTownsend on June 02, 2017, 01:03:08 AM
Hi All,

I want to be able to change the ComComponent during runtime for various BasicLabel and BasicIndicator. Is this achievable? (I have seen hint of SubscribeToComDriver but struggle to find implementation).

Alternatively, (and perhaps even better), could a common AdvancedHMIDrivers.EthernetIPforSLCMicroCom have it's IP address changed at runtime?

Any advice welcomed.
Thanks,
Graeme.
Title: Re: ComComponent runtime change
Post by: Archie on June 02, 2017, 07:36:05 AM
You can do it either way:

BasicLabel1.ComComponent = EthernetIPforSLCMicroCom2

-or-


EthernetIPforSLCMicroCom1.IPAddress = "192.168.1.10"