LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

PlotDigitalLines cannot plot 11 lines and ~6000 points. Why?

I would like to display 11 lines of a bus on a digital graph control. I have approx. 6000 points of each line and when I call PlotDigitalLines the program stops and says "General protection fault". Is there a limitation how many data can be displayed on a digital graph control?
0 Kudos
Message 1 of 5
(3,336 Views)
Only guessing here but 11 * 6000 just exceeds 65535. Looks like that's your limit, then.
JR
0 Kudos
Message 2 of 5
(3,332 Views)
It can not be, because I tried to display a reduced set of 11 lines and 4000 points, and it caused the same error.
0 Kudos
Message 3 of 5
(3,329 Views)

Normally you get a General Protection Fault when you read or write beyond the end of an array. Maybe your array-size does not correspond to the size-information you pass to the Plot-Function?

Maybe you could attach an example with which I could reproduce the error ?

0 Kudos
Message 4 of 5
(3,300 Views)
I found an answer. Formely the data to be displayed were located in a dynamically allocated array. With this array the PlotDigitalLines function crashed every time. Now I have created a sufficient static array and with this type of storage it works fine. Thanks everybody for trying to help me.
0 Kudos
Message 5 of 5
(3,282 Views)