DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Report

Hello everyone, I am a very beginner in the use of the diadem, 
I have four groups in the internal data and I simply want to display their curves
in a report automatically, any ideas? It's very frustrating because I think it's easy
to do it.

 

0 Kudos
Message 1 of 5
(2,894 Views)

Hi,

How do you need the channels to be displayed? All in one axis system? Or each group in its own axis system?

Here's how you can add all curves to one already existing axis system:

Dim o2DCurve, oCurrChn, oCurrGrp, oAxisSys
'get reference for axis system
set oAxisSys = Report.ActiveSheet.Objects.Item("2DAxis1")
'clear all curves in axis system
call oAxisSys.Curves2D.RemoveAll()
'iterate groups in data portal
for each oCurrGrp in Data.Root.ChannelGroups
	'iterate channels in group
	for each oCurrChn in oCurrGrp.Channels
		'add current channel as new curve to axis system
		set o2DCurve = oAxisSys.Curves2D.Add(e2DShapeLine, oCurrGrp.Name & oCurrChn.Name)
		o2DCurve.Shape.XChannel.Reference = ""
		o2DCurve.Shape.YChannel.Reference = oCurrChn.GetReference(eRefTypeIndexName)
	next
next
call Report.Refresh()

Regards

Christian
CLA, CTA, CLED
0 Kudos
Message 2 of 5
(2,853 Views)

Alternatively you can activate "Curve Expansion" in your Layout Parameters.

Then you can use wildcards in your axis system curve references like this:

Curve Expansion.PNG

In this example all curves in group 2 starting with name fragment "Noise_" will be displayed.

If you want all curves displayed, just replace the complete Y channel name with an asterisk * which has basically the same functionality like my script above.

 

Here are some more examples:

First channel of every group: */[1]

All channels of group 1: [1]/*

Christian
CLA, CTA, CLED
0 Kudos
Message 3 of 5
(2,852 Views)

I think that your answer is very interesting. In fact, for my configuration attached below, I want to have curves temperature (X-channel) / Noise (Y-cannel) for every group. How could i have it without being obliged to repeat each time the names as I did in my configuration below.

Regards.

0 Kudos
Message 4 of 5
(2,832 Views)

Hi,

with activated curve expansion you can use an asterisk for x- and y-channels, e.g. like this:

x-channel: */temperature

y-channel: */Noise

 

DIAdem is using both channels with the given name from the same group for every group in the data portal.

Regards

Christian
CLA, CTA, CLED
0 Kudos
Message 5 of 5
(2,791 Views)