Hi,
Could I get the ROI Set Parameter of the camera by any FB?
I found the ViAccessSetVfExecutionRoi can set the ROI. I wonder is any FB can read the ROI, then I could check if I set the ROI successfully.
Thanks!
Hi,
Could I get the ROI Set Parameter of the camera by any FB?
I found the ViAccessSetVfExecutionRoi can set the ROI. I wonder is any FB can read the ROI, then I could check if I set the ROI successfully.
Thanks!
Hi @jiangp
actually, there is no FB to get the ROI’s.
But with Online / Compare / Automation Components in AS, you could check it, if you made a change.
In Logger you see, if the execution was successful.
Hi there,
usually you don’t need to check if anything happened correctly - the FUB ViAccessSetVfExecutionRoi (B&R Online Help) has a Done Output, which indicates that everything was done.
Mistrusting FUBs in such a way will simply make your life harder and any code you write harder to maintain and read since you will constantly check such things unnecessarily.
(Same where people check Done && !Busy - that’s redundant! If a FUB sets both, report a bug instead
)