05-25-2009 11:26 PM
I would like to run strip chart start from Right to Left with GMS Active X? If any people know about this please or whic active X can support this solution.
Thank you advance.
05-26-2009 11:58 AM
Hi,
In Measurment Studio 6, use the CWGraph control and set the x axis to inverted in the properties page. Then use the ChartXvsY method
Private Sub Command1_Click() Timer1.Enabled = Not Timer1.Enabled End Sub Private Sub Timer1_Timer() Dim plottime Dim plotvalue On Error GoTo ErrorHandler
plottime = Now plotvalue = numPlot.Value CWGraph1.ChartXvsY plottime, plotvalue Exit Sub ErrorHandler: Debug.Print Err.Description End Sub
In MeasureStudio 2005 or later use the ScatterGraph object. Set the x axis to inverted and use the PlotXYAppend function.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Timer1.Enabled = Not Timer1.Enabled End Sub Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Dim plotvalue As Double Dim plotdate As Double Dim nowvalue As Date = Now Try plotvalue = Me.numPlot.Value plotdate = CDbl(DataConverter.Convert(nowvalue, GetType(Double))) ScatterPlot1.PlotXYAppend(plotdate, plotvalue) Catch Exc As Exception End Try End Sub
Hope this is what you are looking for
Curt