05-31-2023 05:58 AM
I'm working with a FLIR camera in LabVIEW and having trouble changing the width and height of the area of interest. I was able to do this with NI-MAX, but for some reason, I can't seem to do it in LabVIEW.
I'd really appreciate it if you could help me out. Is there any way I can change the ROI (region of interest) in LabVIEW? Any advice you can provide would be much appreciated.
05-31-2023 07:32 AM
Does the camera use IMAQdx?
If so, try the Advanced Functionality with Attributes.vi VI in the LabVIEW examples. It will allow you to try changes to various attributes.
Some attributes cannot be changed while the camera is actively grabbing images, so stop grabbing before setting the ROI.
Make sure your new ROI is within the pixel range of the camera when changing image ROI.
Sometimes you need to change offset first, then width or height to avoid exceeding the allowed limits.
05-31-2023 07:35 AM
>>Sometimes you need to change offset first, then width or height to avoid exceeding the allowed limits.
Or the reverse of this...
05-31-2023 08:47 AM
Hi,
For setting the ROI with IMAQdx, check this:
Regards,
Raphaël.
05-31-2023 03:31 PM
Ouch. I struggled with a FLIR Grasshopper for several months a few years ago. Fortunately, other opportunities came along and I was able to "safely abandon" that project. However, I don't recall that handling ROIs was especially difficult -- my problem was getting decent frame rates and Grabs ...
Bob Schor
06-01-2023 01:45 AM
Thank you for your response. However, I am working with an older version of Lab view (2013) and the version of your code is not compatible with it. Would it be possible for you to provide me with the same code in Lab view 2013 so I can use it?
06-01-2023 02:57 AM - edited 06-01-2023 03:05 AM
Here it is.
From memory, I had to do it like this because:
1. Each parameter has min/max/increment constraints
2. Offsets and sizes are linked because (OffsetX + Width) and (OffsetY + Height) must not exceed Max Width and Max Height.
3. Not sure on this one, but maybe even the Offset increments could change depending on the Width/Height.