Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Best method for plotting data array?

I am reading data from a Delta Motion controller and writing that data to an array in my vb.NET program.  The data is not time stamped but I know what the sampling interval is (0.001s).  I want to take that data and plot it on my Waveform Graph.  What is the best method for doing this?  I'm sure this is simple, but I'm new to MS and LV.

 

Private Sub btnRampUpA_Click(sender As Object, e As EventArgs) Handles btnRampUpA.Click
        Dim Axis0ActualPrsData() As Single = New Single(4096) {} 'Create array for data from the RMC controller to be read into
        Dim Axis0Actual() As AnalogWaveform(Of Single)

        If RMC.IsConnected(PingType.Ping) = True Then 'Check to make sure comms to RMC is good before trying to read data from it
            Try
                RMC.ReadFFile(FileNumber150.fn150Plot0StaticUA0, 112, Axis0ActualPrsData, 0, 4095) 'read the plot data where sample period = 0.001
            Catch ex As ReadWriteFailedException
                MessageBox.Show("Unable to read plot data from the RMC. " & ex.Message)
            End Try
        End If
    End Sub

Thank you

 

 

 

 

 

0 Kudos
Message 1 of 3
(4,497 Views)

PlotYAppend appears to be the answer according to the white page, although I don't have it working as of yet.  Can someone confirm?

0 Kudos
Message 2 of 3
(4,490 Views)

Hi DM,

 

Yes, PlotYAppend should be the function you are looking for.

 

-Kevin

0 Kudos
Message 3 of 3
(4,471 Views)