LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

All Ydivisons of LOG scale graph

All Ydivisons of LOG scale graph don't show in debug or .EXE mode.
Only the Major Ydivisons of LOG scale graph (0.1,1,10,100) are displayed when running in debug/.EXE modes however they ARE visible in my .UIR file.

Any ideas?

CVI 6.0
Runtime 7.1.0.306

Thanks,
Mike
0 Kudos
Message 1 of 3
(3,131 Views)
Mike,

This is happening because in CVI 7.0 a new attribute was added to the graph that would determine whether minor grid lines were visible (affecting both linear and log scales). By default, this attribute is turned off.

Inadvertently, this attribute had the effect of causing graphs in log scale mode to not show the minor grid lines if they were run in a version of the CVI runtime 7.0 or later. Previously, log scales always showed minor grid lines.

There is a workaround for this, which is to programmatically turn on this attribute. Since you only have CVI 6.0 this attribute will not show up in your documentation or your header file, but you can still set it using the following code:

SetCtrlAttribute (panel, graph, 1136, 1); // sets the attribute for the X-axis
SetCtrlAttribute (panel, graph, 1137, 1); // sets the attribute for the Y-axis

I apologize for the inconvenience.

Luis
NI
0 Kudos
Message 2 of 3
(3,116 Views)
Luis,

Thank you so much. The workaround works and is faster and nicer to look at than the solution I engineered to programatically draw the minor division on the graph.

Thanks again,
Mike
0 Kudos
Message 3 of 3
(3,108 Views)