DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

xaxis length

Solved!
Go to solution

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))

 

   
0 Kudos
Message 1 of 4
(5,892 Views)

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

0 Kudos
Message 2 of 4
(5,874 Views)
Solution
Accepted by topic author mrme

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

Message 3 of 4
(5,860 Views)

Hi Brad,

 

Your proposal worked perfectly.   Many thanks!

 

0 Kudos
Message 4 of 4
(5,837 Views)