11-09-2006 07:57 AM
11-10-2006 09:34 AM
Hi salte,
Everything you asked about is possible with a DIAdem VBScript. You set the X axis start and stop values programmatically in the following manner:
Call GraphObjOpen(AxisName)
Call GraphObjOpen(D2AxisXObj(1))
D2AXISXDIVMODE = "linear"
D2AXISXSCALETYPE = "begin/end manual"
D2AXISXBEGIN = Xmin
D2AXISXEND = Xmax
D2AXISXORIGIN = Xmin
Call GraphObjClose(D2AxisXObj(1))
Call GraphObjClose(AxisName)
Call PicUpdate
If you want to programmatically set the tick positions, etc., then you can instead choose D2AXISXSCALETYPE = "manual" and set those additional variables.
You can convert back and forth between a date/time string and a date/time number with the TTR() and RTT() functions.
Ask as you have additional questions,
Brad Turpin
DIAdem Product Support Engineer
National Instruments
11-13-2006 11:06 AM
11-14-2006 03:20 PM
Hi salte,
You can select an absolute Y range in a VIEW graph, but on the X axis your only option is to use either the static or dynamic zooming functionality. However, you can do this programmatically, and that results in effectively the same behavior that you sound like you're happy with in REPORT.
Try the below-attached example,
Brad Turpin
DIAdem Product Support Engineer
National Instruments