Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

plot spectrum vs time

I want to create a plot which show spectrum vs. time. Instead of a waterfall plot, I would like to have two axis:

- x: time

- y: frequency

 

The frequency axis will have 100 points. Each point represents the strength of the frequency in color (or I may use grayscale). For example:

- red: large amplitude

- orange: medium amplitude

- white: low amplitude

 

The graph will automatically scroll to the left as new data is added as a vertical column on colors. In this way, I can see how the frequency content changes over time.

 

Can this be done? I am using MS Visual Studio 6.0 C++. I have used  ChartXY and PlotXY for plotting a single spectrum, and for other time based data.

 

Thanks! 

0 Kudos
Message 1 of 2
(6,396 Views)

Hi Bbuternowsky,

 

One way you could accomplish this would be to use a 3d graph control with the view set to be directly down the z axis.  You can then assign a gradient to the z axis to obtain your z coloring.  There are a number of examples showing the 3d graphing functionality of Measurement Studio:

 

 C:\Documents and Settings\All Users\Documents\National Instruments\MStudioVS2008\VCNET\Examples\UI\3DGraph

 

The color map styles example in this folder demonstrates configuration of the z axis coloring, so that would be a good place to start!

Al B.
Staff Software Engineer - TestStand
CTA/CLD
0 Kudos
Message 2 of 2
(6,380 Views)