DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I extract the values on the automatically scaled Y axis?

Hi everyone,

 

In DIAdem script I'm trying to set the scaling of the Y axis completely automatically, and I want to take the values found automatically in one row and have them be the scale of another row.

I want to leave the scaling type (D2AxisYScaleType) as: "complete automatic", is there a way to extract the scaling (end and begin) found automatically on a certain row in the report (say row number 1) and use it as the scaling of another row (say row 3)?

 

0 Kudos
Message 1 of 2
(3,946 Views)

Hi nkm10,

 

try following:

Dim xBegin, xEnd, xSpan

'First 2D-Axis System
Call GraphObjOpen("2DAxis1")
  Call GraphObjOpen("2DAxis1_XAxis1")
    xBegin = D2AxisXBegin     
    xEnd = D2AxisXEnd        
    xSpan = D2AxisXSpanWidth   
  Call GraphObjClose("2DAxis1_XAxis1")
Call GraphObjClose("2DAxis1")

 ' Second 2D-Axis System
Call GraphObjOpen("2DAxis2")
  Call GraphObjOpen("2DAxis2_XAxis1")
    D2AxisXDivMode      = "linear"
    D2AxisXScaleType    = "begin/end manual"
    D2AxisXBegin        = xBegin
    D2AxisXEnd          = xEnd
    D2AxisXSpanWidth    = xSpan
  Call GraphObjClose("2DAxis2_XAxis1")
Call GraphObjClose("2DAxis2")

 It was working fine for me. So you read the data from one axis-system where you want to geht the data from and set the second one according to that.

 

I hope this helps,

RMathews

Ramona Lombardo
Applications Engineer, NI Germany
Certified LabVIEW Developer
0 Kudos
Message 2 of 2
(3,935 Views)