LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Stop Autoscaling at my Graphic?

me again...

I hope thats the right Subject for my Problem,

I have a graphic with following settings
           
            SetAxisScalingMode(frm, FrmTestSt_ChtOszi_3, VAL_LEFT_YAXIS, VAL_MANUAL, -12, 12);
            SetCtrlAttribute (frm, FrmTestSt_ChtOszi_3, ATTR_YAXIS_GAIN, 1.0 );
            SetCtrlAttribute (frm, FrmTestSt_ChtOszi_3, ATTR_YDIVISIONS, 8);

but when I read in my datas, the graphic chances to ->  MAX 13 and MIN -11 ... why ? who can I stop this ?
is there a special settings to say, please dont change the range!?

thanks for your help!

Alan-Lee
0 Kudos
Message 1 of 4
(3,563 Views)
Hello Alan-Lee,

Does [-11,13] happen to be the range of the data that you are plotting, or does it seem like some arbitrary value?
Given that you did set the axis to manual mode, I would not expect it to still be autoscaling. You shouldn't have to change anything else.

Would it be possible for you to post a small, sample program that reproduces the behavior that you are seeing?

Luis
0 Kudos
Message 2 of 4
(3,558 Views)
Hy all,

maybe here a bit more about my problem:

I get Datas either between (0, 255) or (-128, 128 ) or ( 0, 512 ) or  ( -420 ,  419  )  in a big array ( 520000 Bytes )

Now I wanna show this datas ( every data is one INT ) in an graphic.

1. Now I have the problem that I cant see the 0-Line but this is very important.

2. I dont wanna have the real range, exp. ( 0, 255 ) ! I wanna show 10 divisions betwenn 0,1 and 1,0...

I hope anyone can help me.

I have also skype (bryan.connor) or icq (255-238-065)) 🙂

Alan-Lee
0 Kudos
Message 3 of 4
(3,522 Views)
I'm still not completely sure of what you are trying to do. I understand the gist of it, which is that you would like to scale your y-axis to an arbitrary fixed range, rather than the range of the data. So, from your initial post, I understdood that you want the range to be (-12, 12) and not (-11, 13). I'm not sure if you're still seeing the axis with (-11,13), or with (0, 255) instead.

I don't know what you mean by the 0-line disappearing. Do you mean that 0 is not included in range shown in the graph?

And I'm also not sure of how many divisions you wnt? Is it 10, or 8? In any case, the number of divisions should be completely independent of the range, so we can ignore this for now.

The easiest thing would be for you to post a small program here that reproduces the problem you're seeing. Or if that's not possible, the next best thing would be for you to post the CVI code that you're using to configure the graph, along with a screenshot of what the graph actually looks like.

Thanks,
Luis
0 Kudos
Message 4 of 4
(3,484 Views)