DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

2dY-Axis

Hello,
 
i want to create a second y-Axis in a 2D-Axis system. I'd tried the following code:
 
Call GraphObjNew("2D-YAxis","Name")
 
The Error Message: The objecttype 2D-YAxis is not known.
 
The TeachIn function do not recognize the creation of an secondary axis and the online help have no helpful entry to this topic.
 
Greetinx Micha
0 Kudos
Message 1 of 4
(3,994 Views)
Hello MichDD,

Concerning that question, please contact me: walter.rick@ni.com

Greetings
Walter
0 Kudos
Message 2 of 4
(3,969 Views)
Hello,

is there a fix for this yet (DiaDEM 10.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 3 of 4
(3,818 Views)
Hi TonP,

Yes there is.

Greetings Walter

Command: GraphObjYAxisNew

Creates a new y-axis.

ReturnValue = GraphObjYAxisNew(YAxisAlignment)

Input Parameters

YAxisAlignment Specifies on which side DIAdem creates a new axis.

Return Parameters

ReturnValue The return value is an Integer variable type. Specifies the number of the subaxis. If the value is null, DIAdem was not able to generate a subaxis.


The following example generates a new y-axis and labels the y-axis.
Dim AxisNo
Call GraphObjOpen("2D-Axis1")
AxisNo = GraphObjYAxisNew("left")
If AxisNo>0 Then
Call GraphObjOpen(D2AxisYObj(AxisNo))
D2AXISYTXT ="My new axis"
D2AXISYTXTFONT ="Arial"
D2AXISYTXTCOLOR ="red"
Call GraphObjClose(D2AxisYObj(AxisNo))
End If
Call GraphObjClose("2D-Axis1")

Message 4 of 4
(3,811 Views)