DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Axis name of 2D Axis system

Hello NI staff,
 
I got a problem when I tried to configure axises of a 2D-Axis system. For example, Select the X axis of a 2D-Axis system, name of the selected axis appears on DIADem status bar, but I can not operate this axis in Script with the proposed name.
How can I get the right name of a report component which can be used in script for operation of this component?
Please refer to attachment for more information.
 
Best regards
Somewei
0 Kudos
Message 1 of 4
(4,030 Views)

Hello Somewei!

Open the axis dialog, press Ctrl+A and paste the result in a text file. There you sholud see how to access the object. You will see the name is right but it is a sub object of the axis system and you have to open this first.

Matthias

Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 2 of 4
(4,025 Views)
Hello Mr. Matthias,
 
Thanks so much for your reply, it works, I got all the configurable items by pasting them on a TXT file, of course name of the axis. Name of the 2D-Axis system is "2DAxis1", so I thought name of the X-Axis of this 2D-Axis system must be "2DXAxis1_something", but actually the right name is "2DXAxis65_1", here you can see. Thanks again.
 
Call GRAPHObjOpen("2DAxis1")
  Call GRAPHObjOpen("2DXAxis65_1")
    D2AXISXDIVMODE   ="linear"
    D2AXISXSCALETYPE ="complete automatic"
    D2AXISXBEGIN     =0
    D2AXISXEND       =60
    D2AXISXORIGIN    =0
    D2AXISXTICKDIST  ="calculated from tick space"
    D2AXISXTICK      =10
    D2AXISXTICKCHN   ="[1]/Time"
    D2AXISXMINITICK  =1
    D2AXISXTICKTYPE  ="top"
    D2AXISXTICKCHNN  =""
    D2AXISXTICKCHNF  =""
    D2AXISXTICKCHNC  =""
  Call GRAPHObjClose("2DXAxis65_1")
Call GRAPHObjClose("2DAxis1")
 
 
Somewei
Best regards
0 Kudos
Message 3 of 4
(4,018 Views)

After opening the 2d-axis object you can open the first x-axis with the following code:

 

Call GraphObjOpen(D2AxisXObj(1))

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 4
(3,424 Views)