コード例 #1
0
            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));
            }
コード例 #2
0
            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);
                }
            }
コード例 #3
0
            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);
                }
            }
コード例 #4
0
            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);
                }
            }