DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Way to Default VIEW to Show Line Markers on Curves

Can I set the default for VIEW module in DIAdem to show line markers at every point?  Is it possible to set common properties for lines together at once, rather than for each individual line one at a time?  Right now, to change line settings in VIEW, I have to change them for each line one at a time, even if I want to make the same change to all lines.
 
Thanks for any assistance.
0 Kudos
Message 1 of 8
(4,876 Views)
Hello Al,

I'm not sure if it is possible to set a default display for line markers, but I will look into it. You do have the option of automating the implementation of all your line markers with a DIAdem Script. Refer to the DIAdem help, Programming Reference»Object-Oriented Script Interfaces»DIAdem VIEW»Properties, and look at the example for "MarkerType for Curve"
Manooch H.
National Instruments
0 Kudos
Message 2 of 8
(4,859 Views)

Thanks for the info.  I will have to write a script, I guess.

SUGGESTION BOX ITEM:  A lot of places in DIAdem force you to set properties one at a time, on similar items, even when you want to make the same property changes.  NI should fix this if it can.  Also, setting up defaults in various DIAdem panels, like the one I mentioned to start this thread, is a little sketchy.

Thanks again for the script help file pointer.  I'll be scripting today!

0 Kudos
Message 3 of 8
(4,854 Views)

I also have been frustrated with this, as I often like to change parameters for many curves in VIEW and REPORT.  So, I have custom scripts that either detect the currently selected axis in REPORT (area in VIEW), or everything, and just change the color/line/marker properties via a script.  For example, this will add markers to every curve in every area in the active sheet in VIEW:

Dim oMyArea, oMyCurve
For Each oMyArea in View.ActiveSheet.Areas
  oMyArea.Active = True
  For Each oMyCurve in oMyArea.DisplayObj.Curves
    oMyCurve.MarkerType           ="square"
    oMyCurve.MarkerLineWidth      ="min"
    oMyCurve.MarkerSize           =3
    oMyCurve.MarkerColorAuto      =true
    oMyCurve.MarkerColor          ="black"
    oMyCurve.MarkerColorRGB       =0
    oMyCurve.MarkerFillColorAuto  =false
    oMyCurve.MarkerFillColor      =""
    oMyCurve.MarkerFillColorRGB   =0
    oMyCurve.MarkerFrequencyMode  ="CalcNPoint"
    oMyCurve.MarkerIntervalPoints =1
    oMyCurve.MarkerIntervalLength =1
    oMyCurve.MarkerAtBegin        =false
    oMyCurve.MarkerAtEnd          =false
  Next
Next
call wndshow("VIEW")

0 Kudos
Message 4 of 8
(4,844 Views)
Thank you so much, Julia!  This code is great!  It will benefit many individuals who are similarly frustrated.
0 Kudos
Message 5 of 8
(4,841 Views)
Hi Al,

I looked into it and unfortunately the functionality to set Default curve settings such as markers is not currently available. As I mentioned in the previous post, you have options to work around this using scripts. I will go ahead and make a product suggestion on this.


Message Edited by Manooch_H on 07-18-2008 12:08 PM
Manooch H.
National Instruments
0 Kudos
Message 6 of 8
(4,835 Views)

Hi Julia,

 

Im having issues applying just a line thinckness to all curves in my REPORT. So heres the story,

 

I call the Export to PDF tool from labview for each measurement I do. Every measurement has a slightly different report layout that I load from independent files, I use a script once the data has loaded into the report to adjust a fer parameters like the axis. Please see code:

 

Call GraphObjOpen("2D-Axis1")
Call GraphObjOpen("2DXAxis8_1")
D2AxisXDivMode = "linear"
D2AxisXScaleType = "manual"
D2AxisXBegin = 20
D2AxisXEnd = 20000
D2AxisXOrigin = 20
D2AxisXTick = 1
D2AxisXMiniTick = 4
Call GraphObjClose("2DXAxis8_1")

Call GraphObjOpen("2DYAxis8_1")
D2AxisYDivMode = "linear"
D2AxisYScaleType = "manual"
D2AxisYBegin = -60
D2AxisYEnd = 10
D2AxisYOrigin = -60
D2AxisYTick = 1
D2AxisYMiniTick = 1
Call GraphObjClose("2DYAxis8_1")

Call GraphObjOpen("2DObj2_Curve1")
D2CURVELINEWIDTH = 1
Call GraphObjOpen("2DObj2_Curve1")

Call GraphObjOpen("2DObj2_Curve2")
D2CURVELINEWIDTH = 1
Call GraphObjOpen("2DObj2_Curve2")

Call GraphObjClose("2D-Axis1")

 

Towards the end of the script I programatically enter in CurveLineWidth adjustments to rectify my lines, but there is a problem. each report seems to use different object namesso I often get the error message: Object "2DObj2_Curve1" unknown or not open. Obviously..

 

Is there any way to do a "foreach" method like in your previously posted example without using the specific object names???

 

Or does any other method come to mind???

 

Help is highly appreciated...

 

AL.

:. LV2010 SP1 ... W7 .:
0 Kudos
Message 7 of 8
(4,262 Views)

Also from me a big thanks, as this worked like a charm for me 🙂

0 Kudos
Message 8 of 8
(3,721 Views)