How to get window where user can enter IP for make connection in OpenTap by C#

How to get window where user can enter IP for make connection in OpenTap by C#

Hi @hemraj.bansal,

First of all, welcome to the forum!

There are multiple ways to do this, but it depends a bit on the context. Are you trying to connect to a DUT or an Instrument? Or is it for a test step?

I need to connect one JTAG device with IP address and IP address is dynamic. User will enter IP address. How i can connect this by C#

Ok, so in this case I guess you can use the DUT class. if you create a class of type Dut, that can have an IPAddress that the user can enter in the settings.

public class JtagDut : Dut 
{
     [Display("IP Address")]
     public string IpAddress { get; set; }
}
2 Likes