LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

histogram ROI

Dear all,

I am making a DAQ system for an Xray detector and I would like to include the functionality of on the fly calibration.

For that I would like to be able to select a ROI from the histogram, fit it, find the centroid and then appoint it to a known energy.

Is there a way to select a ROI from a histogram from the front pannel?

Thanks,

Theodoros

0 Kudos
Message 1 of 4
(2,695 Views)

What are you using to display the histogram? If it is one of the native graphs, cursors are a great way to do this. You can set it up programmatically on init so that there are exactly two cursors with vertical lines only, plus any other properties you want. You can get their positions at any time with a property node, and you can set up events that will fire when cursor is grabbed, moved, and/or released.

 

Is this what you're looking for?

0 Kudos
Message 2 of 4
(2,666 Views)

http://zone.ni.com/devzone/cda/epd/p/id/1497#0requirements

In this link, you can find a exemple VI which one show how to implement a ROI on a waveform graph

Alexandre
0 Kudos
Message 3 of 4
(2,649 Views)

Thank you for the replies.

I wanted to know if there is something to be used as a tool like the one I found for selecting a ROI from an image in the Vision palette.

In fact I implemented the solution with the cursors and it works pretty well.

When I finish it I will post it for future reference and comments.

Thanks again.

0 Kudos
Message 4 of 4
(2,644 Views)