public double[] FetchMultiPoint(Ivi.Driver.PrecisionTimeSpan maximumTime) { int TriggerCount = Adapter.GetAttributeViInt32(IviDmmAttribute.IVIDMM_ATTR_TRIGGER_COUNT); int SampleCount = Adapter.GetAttributeViInt32(IviDmmAttribute.IVIDMM_ATTR_SAMPLE_COUNT); return(FetchMultiPoint(maximumTime, TriggerCount * SampleCount)); }
public IviDCPwrOutputCollection(IDriverAdapterBase Adapter) { this.Adapter = Adapter; int OutputCount = Adapter.GetAttributeViInt32(IviDCPwrAttribute.IVIDCPWR_ATTR_CHANNEL_COUNT); Outputs = new List <IIviDCPwrOutput>(); OutputNames = new List <string>(); for (int Index = 1; Index <= OutputCount; Index++) { IIviDCPwrOutput Output = new IviDCPwrOutput(Adapter, Index); Outputs.Add(Output); OutputNames.Add(Output.Name); } }
public IviSwtchChannelCollection(IDriverAdapterBase Adapter) { this.Adapter = Adapter; int ChannelCount = Adapter.GetAttributeViInt32(IviSwtchAttribute.IVISWTCH_ATTR_CHANNEL_COUNT); Channels = new List <IIviSwtchChannel>(); ChannelNames = new List <string>(); for (int Index = 1; Index <= ChannelCount; Index++) { IIviSwtchChannel Channel = new IviSwtchChannel(Adapter, Index); Channels.Add(Channel); ChannelNames.Add(Channel.Name); } }
public IviPwrMeterChannelCollection(IDriverAdapterBase Adapter) { this.Adapter = Adapter; IviPwrMeterInterop = (IviCInterop.IviPwrMeter)Adapter.Interop; int ChannelCount = Adapter.GetAttributeViInt32(IviPwrMeterAttribute.IVIPWRMETER_ATTR_CHANNEL_COUNT); Channels = new List <IIviPwrMeterChannel>(); ChannelNames = new List <string>(); for (int Index = 1; Index <= ChannelCount; Index++) { IIviPwrMeterChannel Channel = new IviPwrMeterChannel(Adapter, Index); Channels.Add(Channel); ChannelNames.Add(Channel.Name); } }