I have created one windows service using C#. which connect to PI using below code.
PIServers piServers = new PIServers();
piDataServer = piServers[PiDataServer];
It takes PI input Point data from PI and write data to the PI output points after every 1min continuously.
but some times any exception generated in OSI PI for any point then it returns exception message to the windows service and after correcting this exception in OSI PI the should come in windows service but it gets last generated exception continuously. I need to restart my windows service to get correct result.
what I need to do?
or can I use piDataServer.Refresh() after piDataServer.Connect();
Please help me.