Hello,
The Histogram2 function does, in fact, have that functionality as well. One of the inputs, CWIMAQHistogramOptions, has a property called PixelRange. This property has Min and Max parameters that can be set. By doing this, you can specify the range or pixel values that you want to analyze with the Histogram2 function.
To see the explanation for each of those parameters and the PixelRange property, take a look at the IMAQ Vision for Visual Basic Reference (located at Start >> Programs >> National Instruments >> Vision >> Documentation >> IMAQ Vision for Visual Basic Reference).
Let me know if you have any additional questions on this issue.
Regards,
Scott R.
Applications Engineer
National Instruments
Scott Romine
Course Development Engineer
National Instruments