Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

WaveFormGraph Data VS. Custom Date\Time Stamp

I have system in the field that take measurements every minute and write them to a file which is sent to location and parsed into a DB.  I then need to put the information into a graph for the custom to see on a Website.  The customer needs to be able to change to time interval for the graph.  I have all of that working, my problem is that I am trying to get the data from the DB to graph.  I can the Data to the graph but not the date\time to the graph.  Our data and time stamp is the same as EditRangeDateTimeFormatMode: LongTime.  How do I get the date\time from the DB to the graph.  I am getting the Data from the DB to the Graph using the following VB.Net code:

Dim Label As String = ddlLabels.SelectedItem.Text.ToString

Dim Units As String = ddlLabels.SelectedValue.ToString

Dim Time As DateTime

Dim Points As Double

myConn.Open()

Dim aReader As OleDbDataReader = myCmd.ExecuteReader()

While aReader.Read

Points =

CDbl(aReader("value"))

Time = aReader(

"acqGMT")

ls.Text +=

"Value(" & aReader("acqGMT") & "): " & aReader("value") & "<Br />"

graph.PlotYAppend(Points)

End While

myConn.Close()

 

Can anyone please point me in the write direction. 

0 Kudos
Message 1 of 2
(3,064 Views)
Please follow David's advice in the duplicate forum here.

In the future, it may be better to keep all forum posts to one thread rather than having multiple threads about the same issue. This way there is only one place that people will go to help you out on the subject.

Brandon Vasquez | Software Engineer | Integration Services | National Instruments
0 Kudos
Message 2 of 2
(3,047 Views)