Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

PlotXY and PlotXvsY errors

When I try to do multiplots with PlotXY and PlotXvsY I the CWUI dll always displays an error box with "Array dimension mismatch" if the Y array has more than one row.
0 Kudos
Message 1 of 3
(3,410 Views)
Just one thing I know, that you can normally use the CNiReal64Vector or the CNiReal64Matrix to get the acquired data like this:
CNiReal64Matrix wave(ScaledData);
m_graph.PlotXY(wave);
But there is also an additional answer to that problem in here, but I can't find it at the moment. Hope this helps.
Regards
SMN
0 Kudos
Message 2 of 3
(3,410 Views)
I figured out the prob. I was not creating a 2-D array for the multi-row plot. Also, since CWUI considers a 1-D array to be an array of 1 column, many rows, and since the X array has to be a 1-D array, I have to call the PlotXvsY function with true for a single line, and false for multiple lines.
0 Kudos
Message 3 of 3
(3,410 Views)