01-16-2015 05:05 AM - edited 01-16-2015 05:06 AM
Hi all,
I'm trying to solve a problem using Diadem Reports.
My script loads a .tdr file and puts some signals in a 2D axis system.
I use manual scaling for Y Axis and I want that the Begin and End value are taken from the script.
After having watched a manual, I've tried to set up a user command called XScaleMaxVal and I've written this thing in the End field:
@@XScaleMaxVal(Max)@@ where Max is the max value that the script has calculated
It gives me this error:
Does someone have an idea of what can I do?
I think I could also avoid to set the user command and writing only @@Max@@
But it gives me that error
Best regards
01-16-2015 09:45 AM
Ok, solved in this way:
Call PicLoad("C:\temp\CrashAnalysis\prove\LayoutProva.TDR")
Call GraphObjOpen("2DAxis1")
Call GraphObjOpen(D2AxisYObj(1)) 'here I select the Y1axis
D2AxisYScaleType="manual" ' here I set manual mode for scaling
D2AxisYEnd = AcXMax_ ' I set the correct values
D2AxisYBegin = AcXMin_
D2AxisYOrigin = AcXMin_
D2AxisYTick = 100
Call GraphObjClose(D2AxisYObj(1))
Call GraphObjClose("2DAxis1")
Call PicUpdate() 'I close the object
Call GraphObjOpen("2DAxis1") 'I reopen it to create the curves
Call GraphObjNew("2D-Curve","Curve1") 'Creates a new curve
Call GraphObjOpen("Curve1") 'Opens curve object
'D2CCHNX ="Time" 'Defines x-channel
D2CCHNY ="15TUNNRELO01ACXP" 'Defines y-channel
D2CAXISPAIRNO =1
D2CURVECOLOR ="red"
Call GraphObjClose("Curve1")
Call GraphObjClose("2DAxis1")
Call PicUpdate()