08-07-2013 09:08 AM
Hi everyone,
I would like to display a surface based on 3 three different channels, but the following code displays nothing but axises:
Call GraphDeleteAll()
Call GraphObjNew("3D-Axis", "3DAxis")
Call GraphObjOpen("3DAxis")
Call GraphObjNew("3D-Curve", "3DGraph")
Call GraphObjOpen("3DGraph")
D3CChnX= PChanNb
D3CChnY = XChanNb
D3CChnZ = YChanNb
D3CCurveCDType = "Surface"
D3CrvCDAddSurf = True
D3AXISTOP = 20
D3AXISBOTTOM = 50
D3AXISLEFT = 20
D3AXISRIGHT = 50
Call GraphObjClose("3DGraph")
Call PicUpdate
I have tried the name-oriented method as well, this does exactly the same thing. I have lost hours trying to find what could be the mistake here but I could not find anything, I do not understand why this code does not work.
I hope someone will see what is missing. Thank you !
Solved! Go to Solution.
08-10-2013 12:47 PM
Hi Near,
It looks like you were just missing that second object close statement. This works on my computer:
Call GraphDeleteAll()
Call GraphObjNew("3D-Axis", "3DAxis")
Call GraphObjOpen("3DAxis")
Call GraphObjNew("3D-Curve", "3DGraph")
Call GraphObjOpen("3DGraph")
D3CChnX = XChanNb
D3CChnY = YChanNb
D3CChnZ = PChanNb
D3CCurveCDType = "Surface"
D3CrvCDAddSurf = True
D3AXISTOP = 20
D3AXISBOTTOM = 50
D3AXISLEFT = 20
D3AXISRIGHT = 50
Call GraphObjClose("3DGraph")
Call GraphObjClose("3DAxis")
Call PicUpdate
Brad Turpin
DIAdem Product Support Engineer
National Instruments
08-12-2013 02:29 AM
Oh thank you Brad, I cannot believe that I have been wasting so many hours for such a stupid mistake...
Thanks