08-24-2005 05:26 PM
Hello,
I am using LabWindows/CVI 7.1 and wanted to auto expand the X Axis in a stripchart as points are added.
My strip chart control "POINTS PER SCREEN" property is set to 100. So what I want is as point 101th is added then the X Axis scale would changed from 0..99 to 0..199 and the current chart would shrink (not dissapear) to half, and as point 201th is added then the X Axis scale would changed from 0..199 to 0..299 and so on...
Is there a way in CVI to achieve this? I am using PlotStripChart().
What I am experiencing was when I use SetCtrlAttribute to inscrease the points_per_screen to 200 (at anytime) the chart cleared and started to draw from 0 to 200 points, which I didn't want.
08-26-2005 01:44 AM
Hello vtran,
You won't be able to get your desired behavior from the stripchart. The strip chart by default incrementally displays data up to the value specified in the Points Per Screen attribute. Then, the strip chart either scrolls the data, clears it and redraws the data from the left side of the chart, or does a sweep update. By design, you should only programmatically change the points per screen before plotting to the strip chart. Whenever you change the points per screen, the chart is cleared, so you won't be able to scale down the current values displayed on the chart in order to display more points on the screen.
Thanks.
08-26-2005 03:52 PM
Thanks for the reply, and I have to live with the limitation.
Perhaps it's something to consider in future versions of LabWindows, at least it should maintain a history of pass data so when X/Y scales are resized the chart would not clear.
Thanks,
V.
08-28-2005 12:19 AM