ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

CNiGraph throws CNiOleException during debug mode

Consider the following code snippet

real_snr_array.Append((NI::Real32)real_snr);
total_ber_array.Append((NI::Real32)total_ber);
m_test_graph.Plots.Item(1).PlotXvsY(real_snr_array, total_ber_array);

When I compiled this project and ran it in debug mode, I get a
CNiOleException
when the 3rd line gets executed.  Any ideas as to why?
0 Kudos
Message 1 of 2
(3,347 Views)
Can you please reply with the total error message that was returned by the exception.
Ryan T
National Instruments
Applications Engineer
0 Kudos
Message 2 of 2
(3,318 Views)