05-04-2015 12:59 PM
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
05-04-2015 02:59 PM
PlotYAppend appears to be the answer according to the white page, although I don't have it working as of yet. Can someone confirm?
05-05-2015 11:21 AM
Hi DM,
Yes, PlotYAppend should be the function you are looking for.
-Kevin