From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

cannot interpret the selected character

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:

 

im3.JPG

 

 

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

0 Kudos
Message 1 of 2
(4,519 Views)

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

0 Kudos
Message 2 of 2
(4,486 Views)