10-15-2013 11:57 AM
Hi,
I am using Diadem (2012) script to plot some curves. I want to limit the x and y axis lengths. I have tried numerous possibilities using variables such as D2AxisYEnd without success. An extract of where I used "D2AxisXEnd" is shown below. The script just ignores it and creates a much longer axis(= a default length?). I am obviously doing something wrong, but I don't know what. Any help would be gratefully appreciated.
Thanks
Call GraphObjOpen(D2AxisXObj(1))
D2AxisXTxt ="Speed"
D2AxisXEnd = 500
Call GraphObjClose(D2AxisXObj(1))
Solved! Go to Solution.
10-16-2013 03:00 AM
To clarify further:- I want to plot just a part of a channel, say the first 200 points using script. I have tried to do it by limiting the x-axis length using the variable "D2AxisXend". This will indeed setup the axis with the desired length. However, when the channel is plotted, all of it is plotted (the full length) and the x-axis is extended to fit the channel length. I could modify the channel length, but I think there must be a better way. So my question could be:- how to plot just part of a channel without changing its length?
Thanks to anyone who can help
10-16-2013 10:07 AM
Hi mrme,
Here's guessing your D2AxisXScaleType property was still set to auto-scale. Try these 4 variable assignments together:
D2AxisXScaleType = "begin/end manual" D2AxisXBegin = StartXvalue D2AxisXEnd = StopXvalue D2AxisXOrigin = StartXvalue
Brad Turpin
DIAdem Product Support Engineer
National Instruments
10-17-2013 07:20 AM
Hi Brad,
Your proposal worked perfectly. Many thanks!