01-24-2019 01:30 PM
I need to draw a square around the target area for the peak of my curve in the report tab of DIAdem. I can manually draw this with the shape tool, but that would mean every time I run a different test I would have to modify the size and location to get it into position. The closest thing I've been able to find is plotting the "Shaded Area" curve, however then I'm missing the two vertical lines of the rectangle.
Essentially I'm plotting 4 points, then I need to connect the 4 points.
1: 0.012, -1200
2: 0.012, -900
3: 0.017, -1200
4: 0.017, -900
I'm attaching a photo of the result of the shaded area curve with no fill color.
Any suggestions?
Solved! Go to Solution.
01-24-2019 03:10 PM
I use a separate channel to mark various events on my curves. The marking channel is just full of no values except when there is an event. I attache the example TDMS and the TDR (had to zip it). Should look like this:
01-24-2019 03:20 PM - edited 01-24-2019 03:21 PM
That is helpful for other purposes, but what I really need is the ability to draw the rectangle so I can see if the peak passes through it. Manually drawing the rectangle doesn't automatically scale as needed when the plot changes.
Here's how I want it to look:
01-24-2019 03:27 PM
Yes that makes sense. Draw a square on your report page, then right click and select "Copy as script". Paste the script on your script tab and it will set up the oFrame object that you can use to control the size and position of the shape in script
01-24-2019 04:01 PM
Alright, I'm an idiot, it's simple math. Just need to plot it in the right order.
X1: 0.012
X2: 0.017
Y1: -1200
Y2: -900
Plot a line with these table values:
X1, Y1
X2, Y1
X2, Y2
X1, Y2
X1, Y1