public IviDCPwrOutput(IDriverAdapterBase Adapter, int Index) { this.Adapter = Adapter; IviDCPwrInterop = (IviCInterop.IviDCPwr)Adapter.Interop; this.Index = Index; try { StringBuilder NameValue = new StringBuilder(256); Adapter.ViSessionStatusCheck(IviDCPwrInterop.GetChannelName(Adapter.Session, Index, NameValue.Capacity, NameValue)); ChannelName = NameValue.ToString(); } catch { ChannelName = string.Empty; } }
public IviDCPwrTrigger(IDriverAdapterBase Adapter) { this.Adapter = Adapter; IviDCPwrInterop = (IviCInterop.IviDCPwr)Adapter.Interop; }