Applies To:
  • CitectSCADA

Summary:
I would like to run a different piece of cicode on startup based on which computer it is run on. But the project needs to be exactly the same across the servers are clients. How to do it?

Solution:
You identify the computer by giving it a name in the INI file. The parameter for that is [LAN]Node. Each computer can have its own customised INI file, with its own name.
Secondly, retrieve the name of the computer by using the ParameterGet function in your cicode.
Then use a switch, or an if-then statement, to execute the correct section of code for that machine.



Keywords:
 code, [LAN]Node

Attachments