LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Why do I get a General Protection fault error when I plot data with PlotPoint?

When I try to plot data from an array with PlotPoint() I sometimes get a general protection fault. The problem occurs randomly. It is not that the array contains a lot of points: about 50.
I'm programming in CVI 6.0 under Windows XP.
0 Kudos
Message 1 of 3
(3,164 Views)
Hello,
Just out of curiousity, is there any particular reason you don't want to use PlotXY function, instead of calling PlotPoint in a loop that iterates the array 50 times?

Any way, as for the errors, are you interacting with any kind of hardware (e.g. DAQ or instrument control) while plotting on a graph?

Mika Fukuchi
Application Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,164 Views)
I allready changed PlotPoint() to PlotXY() and now I don't have any more troubles.

I'm not interacting with any hardware while plotting. On that moment plotting is the only activity my application has to perform. So I still don't see why it goes wrong... but I'm happy that there was a way around it.

thanks

Impuls
0 Kudos
Message 3 of 3
(3,164 Views)