LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Image does not update in loop with control

Hi all,

 

I am trying to make a data playback vi.  I have some data recorded, and images recorded from another vi saved onto my computer.

I want to sync the data with the video, so we can tell what was happening visually when there is something interesting happening on the waveform etc

 

I successfully made a real-time playback of the data and video.  The speed of the playback is selectable and works well.  The image output is inside a while loop.

 

However, I would also like to make a different case where the time is selectable via a slider.

The setup for the video playback is almost identical.  The only difference is that instead of the loop iteration output hooked up to the image array indexing, the output of the

front panel slider is hooked up.

 

However, this small changes is a big problem!  The data in the wires updates as I slide the slider fine, but the image in the front panel does not.

If I scroll around the front panel the image WILL update, or if I zoom in or out etc.  Any action except moving the slider updates the image.

 

This is somewhat confusing because the image updates with no front panel activity at all when using the iteration # output... why should the refresh care about getting

the indexing from one source or another?

 

I tried playing around with my display settings, like resolution, acceleration, color depth.  I've also added wait times.  I also tried to put in a flat case structure with the image

update first, then checking the slider value and shift registering that around the while loop.

 

It is probably something weird with Windows, but is there some way to 'trick' LabVIEW into a redraw? 

0 Kudos
Message 1 of 3
(2,639 Views)

Ah, I'm dumb.

 

So when you have a selectable case structure (lets say two cases) and an image out in each it creates two image out windows in the front panel!

The other image out was like 3 screens away for whatever reason, and THAT one was updating just fine.

 

Now to put the case structure inside the while loop instead of the other way around so I can just have one image out...

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

Pschmal,

 

The navigation window is useful if you suspect there's an object "3 screens away" on your front panel. You can get to it by View > Navigation Window, or pressing Ctrl-Shift-N

Misha
0 Kudos
Message 3 of 3
(2,615 Views)