SelectCurve(-1) or EditDecimate error

Found a bug? Tell us about it here

Moderator: DPlotAdmin

Post Reply
jsc
Posts: 222
Joined: Fri Dec 02, 2005 8:56 am

SelectCurve(-1) or EditDecimate error

Post by jsc »

David,

I've got a macro where I think my first SelectCurve(-1) is not reset by subsequent SelectCurve(n) commands, and is performing operations on ALL curves instead of the selected curve.

Here's a piece of what I have:

PostponeRedraw() 'for correcting and scaling data
SelectCurve(-1) 'from chk vlv test
EditOperateX("x/3000") 'data collection rate was 3000/sec
XAxisLabel("Time, sec")
SelectCurve(1) 'first curve to import is AiCoInT
EditDecimate(0,1,25) 'do not need so many points
EditOperateY("y-273.15") 'K to C conversion (some were F to C)

After that SelectCurve(-1) command, and the operation on the X axis, the next SelectCurve(1), when I wanted the following operation to apply to JUST curve 1, instead it operates on all curves, not just curve 1. At least the EditDecimate worked on all curves, but the EditOperateY seemed to work correctly on just curve 1. So is there something wrong with the EditDecimate command that it is ignoring the SelectCurve command?

Jon
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

So is there something wrong with the EditDecimate command that it is ignoring the SelectCurve command?
Yes, will fix it before the next release. Thanks for pointing out the problem.
Visualize Your Data
support@dplot.com
Post Reply