Hello,
With DIAdem script, is there another way to plot a channel rather than these lines of codes:
Report.ActiveSheet.Objects("Axis: 1").Curves2D.Item(1).Shape.XChannel.Reference
Report.ActiveSheet.Objects("Axis: 1").Curves2D.Item(1).Shape.YChannel.Reference
Problem with these lines, is that it uses the channel number, even if you do provide the group name and channel name.
I would like to make sure somehow DIAdem uses actually the group and channel names.
Our data is sorted into groups. I try to generate an automatic report on some of the channels in any of these groups. I do some processing/calculations on the said signal, then add a report page with the results, and go to the next signal.
Using the reference number doesn't work when you add some channels in the middle, because every time you add an elaborated signal it messes with the channel numbering.
So, basically, the last page of the report will always be good. But most, if not all, previous pages will be wrong, because the channel references change, as I create the report.
I know I could find a way to go around that problem. Maybe calculating everything, then doing the report. Or making sure all the results are in the last group and sorted chronologically.
But I don't like either of these work-arounds.
Any idea?
Currently we use DIAdem 2017 or 2018.
We wanted to switch to DIAdem 2022 Q4, but found some features (bugs?) that prevent us from transitioning.
Thanks,
Jacques
EDIT: the VIEW panel has the following line of code:
Call View.ActiveSheet.Areas("Area : 2").DisplayObj.Curves2D.Add(Grp_Name &"/TIME",Grp_Name &"/DATA")
And that works just fine.
Anything similar with the REPORT panel?