12-13-2007 11:46 AM
Hi everyone,
I have this issue:
Language: C++ (MFC) on Visual Studio.Net 2003 environment
and Measurement Studio 8.0.1 (trial version)
I intend to switch from LabWindows/CVI to Measurement Studio
Please help me with 2 following questions:
Question 1:
I have this piece of codes:
CNiGraph m_Graph;
for (i = 1; i <= 5000; i++)
m_Graph.Plots.Add();
for (i = 1; i <= 5000; i++)
CNiInt32Vector vectorY(900);
...//prepare data for vectorY
m_Graph.Plots.Item(i).ChartY(vectorY);
and the program crashes for having too many data.
However, in LabWindows/CVI, this piece of codes work fine:
for (i = 1; i <= 5000; i++)
//PlotXY: built-in function of LabWindows/CVI
graph_handle = PlotXY (panelHandle, controlID, *xArray, *yArray
, 900 /*number of points*/,...)
ListHandle.Add(graph_handle)
So how can I make it works in Measurement Studio?
Question 2: How can I undo the zoom of a CNiGraph?
12-19-2007 04:59 PM