LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to switch between 3-4 constant image every 1 second?

Hello, 

I want switch 3 constant images that switch every 1 secind. is it possible?

how?

0 Kudos
Message 1 of 12
(2,182 Views)

Make an array of images (IMAQ? Pictures? Pixmaps? doesn't really matter).

Make a while loop with a 1 sec. wait in it.

Use the iterator with a quotient & remainder to get the current image.

Show it.

 

Rotating image.png

Message 2 of 12
(2,177 Views)

Hi iLay,

 


@ilayLab wrote:

I want switch 3 constant images that switch every 1 secind. is it possible?


Yes.

 


@ilayLab wrote:

how?


Use a PictRing and change its value each second…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 12
(2,175 Views)

Use a picture ring. (EDIT: that crossed, busy making the example 😁)

 

Or, use an animated gif...

 

It depends on what you really want.

0 Kudos
Message 4 of 12
(2,174 Views)

i want that the screen change the pics every second (not a GIF)

0 Kudos
Message 5 of 12
(2,158 Views)

also, i am new in this bussniess so i dont really know what is pic ring...

0 Kudos
Message 6 of 12
(2,153 Views)

i will glad if you can explain what did you her??

0 Kudos
Message 7 of 12
(2,145 Views)

@ilayLab wrote:

i will glad if you can explain what did you her??


You mean "what I did here"?

 

I made 4 images and switch between them every 1 second...

 

That image is a snippet, see Using VI Snippets to Store and Share Reusable Code Sections - NI. Be careful how you download the image, the image in the thread is reduced and the LV info is removed... Open it in a separate tab and save it there.

 

Did you do the free online courses?

0 Kudos
Message 8 of 12
(2,135 Views)

NO, I didnt do it. I work with this software because I am taking an Automation course at my University and i got a small project to do.

I will read carefully the explanation you wrote to me and try to do it myself.  I would be happy if you explain what you did here (in terms of all the elements) 

0 Kudos
Message 9 of 12
(2,131 Views)
Message 10 of 12
(2,128 Views)