RuntimeManagerCheckConnection Method |
Namespace: OpenTestSystem.Otx.Runtime.Api
static class Program { static void Main() { RuntimeManager rt = new RuntimeManager(); rt.Load("C:\\Sample.ptx"); Console.WriteLine("Connection state is " + rt.CheckConnection().ToString());//NotConnected. rt.Connect("192.168.1.30", 1001); Console.WriteLine("Connection state is " + rt.CheckConnection().ToString());//Connected or Interrupted. rt.Disconnect(); Console.WriteLine("Connection state is " + rt.CheckConnection().ToString());//Disconnected. } }