11-06-2008 09:40 AM
11-10-2008 10:57 AM
Thanks for the suggestion, Gillaume. It's a good idea, and we might implement it in a future release.
Currently, although you can associate arbitrary strings with specific x-values, you can't have both strings and numeric (or time) values in the axis at the same time. You have to choose one or the other, which would probably not be very helpful for you.
Luis
11-13-2008 07:10 AM
11-13-2008 11:53 AM
So, it looks as if you're trying to work around the fact that the strip chart does not support non-uniform gaps between data points. Ideally, it should support it, and that is currently on of our higher priorities for improving the chart. So, for example, if you were to plot your first point at 10sec, the second at 20sec, and the third at 40sec, there should be twice as wide a gap between the second and third points, as between the first and the second points. This is something that you can't do today, since all three points are always equally spaced.
I'm not yet completely sure how your workaround of adding an arbitrary text label solves this problem. I suppose that placing a label under the last point that you plot might indicate thewhat "real" time value for that point should be. And that means that you are hiding the default numeric/time labels of the x-axis, correct? So, for example, are you trying to get your axis to look something like this:
|----------|----------|----------|----------|----------|----------|
0 10 20 40 70 75 150
If so, I take it that you don't mind that the intervals are always equal, even if the "fake" labels represent non-equally-spaced data?
If this is the case, then you can achieve this today by using axis label strings. You just have to associate a new label string with each successive point that you plot, like this:
0 - 0
1 - 10
2 - 20
3 - 40
4 - 70
5 - 75
6 - 150
...
(and as old data points scroll out of view, you should also remove the corresponding labels)
But having said this, the ideal solution, of course, would be for the strip chart to support non-uniform plotting, so that all this work would be unnecessary.
Luis
11-14-2008 10:40 AM
11-14-2008 02:17 PM
There isn't anything you can call that will give you the x-value. I think you'll just have to keep a counter for how many times you call PlotStripChartPoint and that's what your x-value (you will have to scale it, you change the x-axis gain from 1.0 to something else).
Luis
11-17-2008 03:10 AM
11-17-2008 10:36 AM
Hello Gillaume,
The time units displayed in the chart are not sync'ed with any real clock. The values that are displayed are a function of the initial time that you specify on the axis, the plotting rate (or gain) that tells the graph the time interval between consecutive points, and the number of points that you've plotted so far. So, if your actual plotting rate becomes out of sync with the real-world time, then the time displayed in the chart will also become out of sync. In other words, it's the ideal time, not the real time.
If you're using a UI timer control to control your plotting rate, then it's expected that this will not be very accurate. The UI timer controls are okay for simple tasks, or for large intervals, or for applications in which the exact time isn't very important. Otherwise, you're better off using an async timer callback instead, which should definitely be more accurate.
Luis
11-17-2008
11:53 PM
- last edited on
03-18-2025
03:01 PM
by
Content Cleaner
Hi Guillaume,
The screenshot from the "CVI for Linux" page looks like you have what you need in the new version:
http://sine.ni.com/nips/cds/view/p/lang/en/nid/203157
Isn't that what you were asking for in the first post of this thread?
11-18-2008 08:40 AM