From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Set Leading Curve in Report

Hello All,

 

Is there a way to set a lead curve in DIAdem report? So that if I pan, zoom in, or zoom out (on the x-scale of a 2D axis), the "following curves" will automatically adjust? I know this can be done in view, not sure how to implement in report...

 

Thank you in advance.

 

-Must

0 Kudos
Message 1 of 3
(2,557 Views)

Hello Must,

 

I think I know what you're talking about be let me know if I'm confusing what you're asking for as the help defines what you are talking about a little differently.

 

Setting the Leading Curve - http://zone.ni.com/reference/en-XX/help/370858M-01/procview/procview/procview_setting_leadingcurve/

 

In short I don't think that REPORT supports dynamically regenerating. A good workaround might be to set this up in VIEW and then once you have it exactly like you like it then export to REPORT.

 

Otherwise if you need more functionality you could potentially script something or record your actions going from VIEW to REPORT so you can map that to a function key.

 

Hope that helps!

JY
Application Engineer, RF and Communications
National Instruments
0 Kudos
Message 2 of 3
(2,511 Views)

Hi,

You can create a simple report layout with two 2DAxisSystems.

After changing the first axis range run this script:

Dim oRefAxis, oSecAxis
if Report.ActiveSheet.Objects.Exists("2DAxis1") and Report.ActiveSheet.Objects.Exists("2DAxis2") then
  set oRefAxis = Report.ActiveSheet.Objects("2DAxis1").XAxis
  set oSecAxis = Report.ActiveSheet.Objects("2DAxis2").XAxis
  oSecAxis.Scaling.AutoScalingType = eAxisAutoScalingBeginEndManual
  oSecAxis.Scaling.Begin = oRefAxis.Scaling.Begin
  oSecAxis.Scaling.End = oRefAxis.Scaling.End
  call Report.Refresh()
end if

You can configure the script to run when pressing an F button. Use the report script function group for that. Then its just one click to adapt the secondary axis range to the leading axis range.

Christian
CLA, CTA, CLED
Message 3 of 3
(2,497 Views)