Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

get real double values from NationalInstruments.AnalogWaveform(Of Double)

Hello,

 

I am using an NI PCI 6221 (68-PIN) card to read in an AC voltage signal for a program in college and I need to analyse the data from it, such as finding the peak amplitude, but when I try using the peak detect function it wont allow me to use this data converted by the card. The following is the code used

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Try
            Dim acquiredData() As NationalInstruments.AnalogWaveform(Of Double) = DaqTaskComponent1.Read
            ACsignal.PlotWaveforms(acquiredData)
        Catch ex As NationalInstruments.DAQmx.DaqException
            MessageBox.Show(ex.Message, "DAQ Error", MessageBoxButtons.OK, MessageBoxIcon.Warning)
        End Try
    End Sub

Is there anyway I can retrieve the data points and find the maximum Y axis value of "acquiredData()"

Any help is greatly appreciated!

0 Kudos
Message 1 of 2
(3,725 Views)

Hi,

 

I'm wondering if you can give us a bit more info as to why you can't use the peak detector function?

 

Are you seeing an error message?

 

Do you see unexpected data?

 

What exactly are you expecting to see?

 

Hopefully with a bit more clarification of the problem we can narrow down why you can't use the function as you'd like to.

 

Hope you have a great day!

 

Kind regards,
Amy

 

Amy K
Applications Engineer
National Instruments UK & Ireland
0 Kudos
Message 2 of 2
(3,661 Views)