LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why my plots are flickering

I tried to plot (actually drawing something) using 3D plots, but when i tried to connects two different plots my plots are flickering.
Actually i tried to change each color in each plot so my drawing would look correct.
 
Thanks
-Just a student-
0 Kudos
Message 1 of 7
(3,525 Views)
The reason the image is flickering is that the graph is constantly switching back and forth between displaying two different images. So you can see what I mean I modified your code to insert delays to make the effect more obvious. The graph (as you are drawing it) doesn't have any memory, it completely redraws the picture each time.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 7
(3,518 Views)

Actually, i could place all the drawing outside the loop and only connects the error wire to the loop to make it remember all the drawing,

But in my case, i would like to always change some value in the drawing, and with multiple plots, could you give me some hint for that?

Thanks

-Just a student-
0 Kudos
Message 3 of 7
(3,514 Views)
Try this...

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 4 of 7
(3,508 Views)

Huaaaaaa, never taught of that,

thanks a bunch

-Just a student-
0 Kudos
Message 5 of 7
(3,499 Views)
On Jul 24, 2:10 am, Nandha <x...@no.email> wrote:
> I tried to plot (actually drawing something) using 3D plots, but when i tried to connects two different plots my plots are flickering.
> Actually i tried to change each color in each plot so my drawing would look correct.
> &nbsp;
> Thanks
>
> 3Dplot test.vi:http://forums.ni.com/attachments/ni/170/260833/1/3Dplottest.vi

I couldn't actually run your VI to verify the flickering because I
don't have one of the necessary subVIs, but it seems to me that a
probable reason could be the fact that you are building the array in
the while loop for every time you plot the surface. You could just
contain the graph portion of the VI in the while loop and the extra
time LabVIEW requires to build the array will no longer be an issue,
decreasing the flicker effect.

0 Kudos
Message 6 of 7
(3,486 Views)
Regardless of what he did with the original code the graph would have flickered because the display was switching very rapidly between two different images.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 7 of 7
(3,483 Views)