09-27-2010 07:00 AM
When i run this code, It displays n- axis in report . i want it to be plotted on one axis. How do i do that??
If i double click on report, go to axis position and select one system and OK, It displays as i require. How do i automate it.??
09-27-2010 08:05 AM
Hello Rash.patel,
If I run this code:
call PicDelete
PicDefByIdent = 1
Call GraphObjNew("2D-Axis", "2DAxis1")
Call GraphObjOpen("2DAxis1")
D2AxisSystem = "one system"
Call GraphObjNew("2D-Curve", "2DAxis1_Curve1")
Call GraphObjOpen("2DAxis1_Curve1")
D2CChnXName = ""
D2CChnYName = "Temperatur_1"
Call GraphObjClose("2DAxis1_Curve1")
Call GraphObjNew("2D-Curve", "2DAxis1_Curve2")
Call GraphObjOpen("2DAxis1_Curve2")
D2CChnXName = ""
D2CChnYName = "Temperatur_2"
Call GraphObjClose("2DAxis1_Curve2")
Call GraphObjClose("2DAxis1")
Call PicUpdate(0)
it works fine on my DIAdem. The variable you are looking for is D2AxsSystem. You find those information by opening the dialog where to modify the parameter and opening the online help.
Greetings
Walter
09-28-2010 05:53 AM
Hi Walter, Thanks for your help. Now i can see the graph in one axis system.
09-28-2010 09:57 AM
Hi Rash.patel,
You have two choices. You first option is to simply configure 60 curves in your TDR file, say referencing channels [1]/[1], [1]/[2]...[1]/[60]. Any missing channels will simply not be plotted. Your second option is to use the same scripting approach you've alread posted, but loop over all the channels in the desired group and create a curve from scratch for each data channel.
Brad Turpin
DIAdem Product Support Engineer
National Intruments