08-16-2019 04:11 PM
Hello! I'm working on a RoI integration VI which involves a pair of concentric circles where everything in between the two would be summed up. The mathematical portion is working perfectly but I am having difficulties with implementing the "Draw Circle by Radius" VI on my intensity plot to visually inform the user where exactly are their integration circles. What am I doing wrong below?
Solved! Go to Solution.
08-16-2019 05:00 PM - edited 08-16-2019 05:03 PM
I think you are getting coordinates from the top left of the screen, but the picture functions are in pixels measured from the top left corner of the graph.
08-16-2019 10:41 PM
Dr Powell is right - you have an offset because of the coordinate systems. You need to subtract the location of the top-left point of the Draw Area (not the bounds of the graph)
When I tried this with an Intensity Graph, I initially didn't have any luck. It seems as though with no data plotted, it doesn't come in front properly. Perhaps a bug?
With the code added below to set the graph data, I got the expected outcome. (This shouldn't be a problem for you because you already have valid data, but I thought it worth mentioning).
08-17-2019 03:16 PM
Both suggestions (and sample code) fixed the problem! Thank you!