Problem with labels for axis
klina

Hi, everyone.
In my app I have Scope components, which are for visual data from
sensors (sampling frequency for sensors is 10Hz).
I won't to "autoscale" my x-axis, so I use:
- VERSION 1
" Scope[i].XAxis.Min.AutoScale = false;
Scope[i].XAxis.Min.Value = 0;
Scope[i].XAxis.Max.AutoScale = false;
Scope[i].XAxis.Max.Value = 100;//this is 10 seconds of measure"
In this moment I can see that samples are added to Scope from left
side (no stretching for all long x-axis) - this is cool.
Problem is that I want to see on x-axis time (0-10s) - no noumber of
samples (0-100).
I try to add something like this:
- VERSION 2
" Scope[i].XAxis.TicksMode=atmManual;
Scope[i].XAxis.Max.Tick.AutoScale = false;
Scope[i].XAxis.Max.Tick.Value = MY_DATA_SIZE/10;"
In this moment I can see on x-axis time (0-10s) but samples are
stretching (some autoscaling is enabled) in range 0-1s (10% of x-axis).
-VERSION 3
So I try to something like this:
" Scope[i].Channels[0].Data.SampleRate=10;
Scope[i].XAxis.TicksMode=atmTime;"
Now I can see on x-axis time (0-10s), but for first 10 samples there
is some stretching data for all x-axis long, when there is samples>10
everything is OK
(when I do "Scope[i].XAxis.Max.AutoScale = true;" there is correct
time on x-axis for all samples count, but like I said I don' t want to
"stretching").
I' m wondering how to use functionality : "The library now allows
you to place whatever you want as labels on the X Scale. ". Can anybody
give me some example code (I think I can use
Scope[i].XAxis.TickText)?
I tried to get answers for this questions from Boian Mitov (many times by email), but I couldn't.