11-18-2015 02:59 AM - edited 11-18-2015 02:59 AM
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!
11-23-2015 04:33 AM
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