LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

disappearing graph

Hey guys,

 

I have a program that uses a 3D graph. Everything works properly until I get back to my Timer function. For some reason during the timer function my plot disappears. The axis are still set to the proper scaling, so it seems like it just becomes invisible. I have no functions in the timer that should affect the plot. I turn an LED on/ off and dim/undim a button or two. Any ideas? Thanks. 

0 Kudos
Message 1 of 3
(3,380 Views)
In your timer callback, do you call ProcessDrawEvents? I am not familiar with the 3D graph, but it might autoupdate itself and get locked out if your program is in a callback routine...
0 Kudos
Message 2 of 3
(3,374 Views)
I was calling ProcessDrawEvent and I disabled it, but the graph still disappeared. I found out that i was unknowingly calling a function that cleared out the graph data. My bad. Thanks for your help though.
0 Kudos
Message 3 of 3
(3,372 Views)