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: 

Problem with command d2axisXtick (diadem 10.2)

Hello,
 
I don't understand why d2axisXtick is not enabled.
 
call graphobjopen("2dXaxis1_1")
     d2axisXscaletype="manual"
     d2axisXtick =a
     d2axisXbegin=b
     ...
call graphobjclose("2dXaxis1_1")
 
In the diadem help, this command exist. But it is not reconized.
I use too the d2axisYtick which work!!!
 
I think its a diadem bug but im not sure.
If it is a bug, maybe an update exist and where is it?
Or It's not a bug. But what is it?
 
For more information, I joined my program (see line 162, 434)
 
Thank you very much.
 
(Sry for my english :))
0 Kudos
Message 1 of 8
(4,268 Views)
Hello c.reverte!
 
D2AxisXTick still exist, only the syntax highlighting seem to have a problem with it. New in 10.2 (or other 10.x version) are the D2AxisXTickDist and D2AxisXTickChn variables.
 
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 2 of 8
(4,267 Views)
Thank you very much. It works 🙂
0 Kudos
Message 3 of 8
(4,262 Views)
This command is reconized (writed in green)
but it doesnt work.
 
I need to read the x axis grid step.
As d2axisYtick for y axis.
 
thank you
0 Kudos
Message 4 of 8
(4,260 Views)
i must to specifies the interval between the ticks but in the diadem help, there is only one command for that: d2axistick.
D2axistickdist is for specifies whether diadem takes the tick position.
 
Thanks
0 Kudos
Message 5 of 8
(4,257 Views)
Hello c.reverte!
 
The easiest way to determin these things is to open the settings dialog with the scaling and press Ctrl+A. Then you get a script in the clipboard with all settings. Paste it to an empty script page and cut out the things you need.
 
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 6 of 8
(4,254 Views)
It strange, in the script, it writed: d2axisxtick in black.
but i can modifie the grid step.
 
Very strange... 😞
0 Kudos
Message 7 of 8
(4,251 Views)

Use the following script:

 

Call Graphobjopen(D2axisxobj(1))

D2axisXtick = 1

Call Graphobjclose(D2axisXobj(1))

 

Before that you have to define the scaling type as manual. for me its working fine..

0 Kudos
Message 8 of 8
(4,092 Views)