Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to have vertical traces in measurement studio for visual basic?

I want to have a strip chart running from the top down in Meas Studio, VB. Actually, would like 8 separate graphs. Can it be done?
0 Kudos
Message 1 of 2
(3,117 Views)
There isn't an easy way to do it. You can fake it by setting the ChartLength property to how much data you want to display at a time, maintaining your current Y position, and using the ChartXvsY method. For example, create a new VB project, drop a graph and a timer on the form, and copy the following code into the project:

Private chartYValue As Double

Private Sub Form_Load()
Timer1.Interval = 100
CWGraph1.ChartLength = 50
chartYValue = 0
End Sub

Private Sub Timer1_Timer()
CWGraph1.ChartXvsY Rnd * 10, chartYValue
chartYValue = chartYValue - 1
End Sub

What's really happening is that the graph is getting up to ChartLength number of points and as additional data is added, the Y axis autos
cales, but the visual side effect is that it looks like it's vertically charting data from top to bottom.

Hope this helps.

- Elton
0 Kudos
Message 2 of 2
(3,117 Views)