0

我想从模拟波形通道中获取原始数据,然后将其加载到双精度数组中。这是我所拥有的:

Dim data() As AnalogWaveform(Of Double)
    Dim dataToFilter() As Double

    For Each WaveformGraph In WFGS
        dataToFilter(i) = data(i).GetRawData() 'Value of Type '1-dimensional array of Double' cannot be converted to 'Double'.
        WaveformGraph.PlotWaveformAppend(data(i))
        i = i + 1
    Next

有人可以帮我解决有问题的代码行。我需要从模拟波形中获取原始数据,以便在将其流式传输到波形图之前对其应用过滤器。

谢谢。

4

1 回答 1

1
Dim data() As AnalogWaveform(Of Double)
Dim dataToFilter As New List(Of Double())

Dim i As Integer = 0
For Each WaveformGraph In WFGS
    dataToFilter.Add(data(i).GetRawData())
    WaveformGraph.PlotWaveformAppend(data(i))
    i += 1
Next
于 2016-02-22T22:50:31.250 回答