Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make GMS Strip Chart run backward?

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.

0 Kudos
Message 1 of 2
(3,311 Views)

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

 

0 Kudos
Message 2 of 2
(3,300 Views)