Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Why some minimum value can't be displayed on the plot

I use the CWiGraph control, setect YAxis Log , when I change  the different minimun values for YAxis, some minimum values can't be display on the YAxis. I know if I select Number of Divisions for ticks, any minimum value is displayed on the plot, but now I am using YAxis Log , Number of Division is not enable to be selected. I have no idea to solve this problem. Please give me some help. thanks.

 

Min

0 Kudos
Message 1 of 12
(7,262 Views)

Hi mliu,

 

Placing the y-axis of the graph in Log mode will only allow you to see tick marks in 10's (eg 1,10,100...).  If you manually set the minimum, the value will still be there and the axis will still start at the respective value, however, you will not see a tick mark.  One option you would have to show a tick mark and value at that point would be to use value pairs.

 

Ryan T
National Instruments
Applications Engineer
0 Kudos
Message 2 of 12
(7,222 Views)

Hi Ryan T,

 

Thanks for your reply.  I try to use value pairs, now all values I want are displayed , but the another problem comes up. For example, SetMinMax(1.5e-12,1.5e-10), when using value pairs, five values, 1.5e--10,1.0e-10,1.5e-11.1.0e-11,1.5e-12, will show on the plot, that is not what I want. How can only my value pairs,1.5e-12,1.5e-11,1.5e-10, show on the plot.

Thank you very much.

 

mliu

0 Kudos
Message 3 of 12
(7,211 Views)

Hi mliu,

 

In the y-axes properties, you should be able to select Value Pairs Only.

Ryan T
National Instruments
Applications Engineer
0 Kudos
Message 4 of 12
(7,201 Views)

Hi Ryan T,

 

I tried to change the y-axes property , but can't find the way to show ValuePairs only. If I uncheck labels in Ticks page for y-axes , all labels can't show including value pairs. Would you please tell me the detail method.

 

Thanks,

 

mliu

0 Kudos
Message 5 of 12
(7,188 Views)

Hi mliu,

 

You should be able to use the following code to set the graph to display value pairs only:

 

your_graph.GetAxes().Item(

"YAxis-1").ValuePairsOnly = true;

Ryan T
National Instruments
Applications Engineer
0 Kudos
Message 6 of 12
(7,174 Views)

Hi Ryan T,

 

I just used ValuePairsOnly in my code following your instruction, but when compliing , show the error message: error C2039: 'ValuePairsOnly' : is not a member of 'CNiAxis'. I also search the measurement studio 6.0 reference and find ValuePairsOnly is used for CNiSilde, CNiKnob, CNiPointer. I don't know if the plot has the ValuePairsOnly property.

 

Thank you.

 

mliu

0 Kudos
Message 7 of 12
(7,170 Views)

Hi mliu,

 

Previously I tried the code in Measurement Studio 2009, but I just set up a test machine with Measurement Studio 6 and found that when you go to the properties on your graph itself, you should get the following option:

 

23164i6C2539740A9229D2

Ryan T
National Instruments
Applications Engineer
0 Kudos
Message 8 of 12
(7,135 Views)

Hi Ryan T,

 

I checked my CWGraph property again, there is no Value Pairs Only option in Axes page. I just attached the image of CWGraph Property . I believe I use the measurement studio 6.0.

 

Thanks again

 

mliu

0 Kudos
Message 9 of 12
(7,101 Views)

Hi mliu,

 

My screenshot was done in 6.0 so it must be an earlier version that you have.  In your situation, especially if you thoroughly searched the help, it doesn't look like you have the ability to display only value pairs.  One option that you have is to upgrade your version of Measurement Studio.

Ryan T
National Instruments
Applications Engineer
0 Kudos
Message 10 of 12
(7,080 Views)