Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying Multiple Plots of Data

How can I plot/chart 4 real time acquisitions on a single Graph. I have read App Note 150 (Several Times)
and can not make sense of it.
What is GenerateMultiChannelTempData(4, 800, 230#)?
What is the 230#?
Does the Multiplot property need to be true?

Thanks in advance for your help,
0 Kudos
Message 1 of 5
(3,488 Views)
GenerateMultiChannelTempData is an example function that returns a 2D array. 230# is a literal value with a # suffix, which in Visual Basic means that its type is double.

In short, the way you put multiple plots on the graph is to either a.) create a 2D array and pass it to the graph's PlotY method, or b.) add 4 plots to the graph's plots collection and a 1D array of data to each respective plot's PlotY method.

- Elton
0 Kudos
Message 2 of 5
(3,488 Views)
Elton,
Thank you for your prompt reply.
I have added 4 Plots to the Graphs Plot collection and wish to pass a 1D array of data to each respective plot's PlotY method. Could you tell me what the proper syntax for this is or point me to a document which describes this?
Thank you again,
0 Kudos
Message 3 of 5
(3,488 Views)
For example, let's say you have 4 variables called data1, data2, data3, and data4 where each variable is a 1D array. One way would look like this:

CWGraph1.Plots(1).PlotY data1
CWGraph1.Plots(2).PlotY data2
CWGraph1.Plots(3).PlotY data3
CWGraph1.Plots(4).PlotY data4

- Elton
0 Kudos
Message 4 of 5
(3,488 Views)
THANK YOU !!!!
0 Kudos
Message 5 of 5
(3,488 Views)