Hi koniker,
You're close to having the code correct. But you open up the Y axis and then try to edit the X axis scaling method-- that won't work. Try this code instead:
intNumChannel = 1
NumMaxMin = ChnLength(intNumChannel)
Call GraphObjOpen("2DAxis1")
Call GraphObjOpen(D2AxisXObj(1))
D2AxisXScaletype = "begin/end manual"
D2AxisXDivMode = "linear"
D2AxisXBegin = ChDX(1, intNumChannel)
D2AxisXEnd = ChDX(NumMaxMin, intNumChannel)
Call GraphObjClose(D2AxisXObj(1))
Call GraphObjClose("2DAxis1")
Call PicUpdate
Cheers,
Brad Turpin
DIAdem Product Support Engineer
National Instruments