From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Very strange Sample & Hold Behavior on image signals

Solved!
Go to solution

Hello,

 

Here is video fragment on behavior of my video acquisition setup.

The setup keypoint - image must be available on output on odd iterations (1, 3, 5, ....) and kept previous value on even iterations.

 

As you can see from video the behavior is completely different

Where is the problem ?

 

Thanks

 

 

 

0 Kudos
Message 1 of 3
(2,670 Views)
Solution
Accepted by topic author Pavel_47

IMAQ probes have always worked a little funny to me. It stems from the fact that the IMAQ wire you are probing is a reference to the image, not the image data itself. So if you go and alter the image earlier in this code here, that could be the flickering you are seeing. That feedback node is storing the IMAQ reference from the previous iteration, so if your code does something with that IMAQ reference from the previous iteration, then it will show up like this.

 

Try creating two different IMAQ images with different names and switching between those instead of altering your single IMAQ image reference. You can do this simply with IMAQ Copy once you're done with your vision operations. I usually do a Copy when I know I want to display an image, but will be going back and altering the original image during the next iteration.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 2 of 3
(2,657 Views)

Yes, it was the case.

With 2 different images it works.

Thanks

0 Kudos
Message 3 of 3
(2,605 Views)