Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Logarithmic Scaling problem.

Hi,

I have a graph with traces. I enable log scaling to all my Y axes. I however want the graph to show not only base decades like 1.00E+01, 1.00E+02..etc, but when I zoom in have something like 1.21E+01... meaning that I want the add/show major ticks when the base major ticks are not visible. Is this possible? Some times I can zoom in where no ticks are present at all. I wanted to add new ticks to the graph with values, but to no avail. Which event would I add the tick modifying code to? I was thinking of getting the MajorTicks attribute and if this is 0 then setting some ticks, but where and how. Could someone help,

Thanks,
Miklos
0 Kudos
Message 1 of 4
(3,440 Views)
Hi Miklos,

you posted your question on the VC++-Forum (not the .NET) so i asume you use Microsoft Visual Studio 6.0 and Measurement Studio 6.0. Is this correct?

-Norbert
NI Germany
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 4
(3,440 Views)
Hi,

Yes I use MSVC++ 6.0. Is there a solution? Maybe if I could just have values placed on Minor Ticks that would be satisfactory as well. Is it possible to have the graph display the minor tick labels?

Thanks,
Miklos
0 Kudos
Message 3 of 4
(3,440 Views)
Hi Miklos,

i'm sorry to tell you that this seem not to be possible. Scaling and zooming of a CWGraph-object is managed by Measurement Studio itself.
The example attached to this answer is originally meant to show how background-pictures can be zoomed with the same scale as the graph itself is zoomed.
But there's one passage, which shows the problem of your wish. In ZoomBitmapVC6Dlg.cpp is a comment in the function "OnMouseUpCwgraph1" which reads:
"// The mouse up event is received after the axes are scaled in zoom mode."
Because there is no explicit code for scaling the axes i asume that this is done directly in Measurement Studio. And as you surely already tried out there is no way to set labels for minor ticks for logarithmical axes
within the properties of the cwgraph.
But perharps using cursors will help you. Try this link for further infos:
http://digital.ni.com/public.nsf/websearch/98024D511124B8CF86256D210079FF01?OpenDocument

-Norbert
NI Germany
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 4
(3,440 Views)