04-21-2017 03:06 AM
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.
04-21-2017 09:07 AM
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
04-21-2017 09:15 AM - edited 04-21-2017 09:18 AM
Alternatively you can activate "Curve Expansion" in your Layout Parameters.
Then you can use wildcards in your axis system curve references like this:
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]/*
04-24-2017 03:39 AM
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.
04-26-2017 03:16 AM - edited 04-26-2017 03:19 AM
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