LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Selecting which image to display

Solved!
Go to solution

Hi,

 

I have a following issue. I have a VI that displays three images (all of them have the same size). I can display every image in selected Image Display from Vision palette. As you can see in the picture below two Image Displays have the same size, and one is bigger. 

Przechwytywanie.PNG

 

What I want to achieve is the ability to select (via using e.g. buttons) which image should be diplayed in which Image Display. For example when I push the 'Image1' button  then first image is displayed in the biggest Image Display (both rest images are diplayed in smalled Image Displays). When I push  the 'Image2' button  then second image is displayed in the biggest Image Display, and so on... Is it possible to do it?

0 Kudos
Message 1 of 20
(3,099 Views)

Hi bike,

 

yes, it's possible!

 

You just need to program that behaviour... Smiley Wink

Best regards,
GerdW


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

hah 🙂 OK. It is good to know that this is possible. But any ideas how to do it? Any suggestions?

0 Kudos
Message 3 of 20
(3,083 Views)

Hi bike,

 

well, I would start with a case structure.

There might be other options too, but I think you will explore them when time comes...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 20
(3,080 Views)

I thought about event structure, but it is good to ask someone more experienced before building the app...

0 Kudos
Message 5 of 20
(3,078 Views)

Hi bike,

 

you can use the event structure to capture the button "value change" event (which is a different topic), but you will still need a case structure to select which image to display in which indicator...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 20
(3,076 Views)

Ok, I think it's time to start building the app. Thanks a lot

0 Kudos
Message 7 of 20
(3,073 Views)

Hi 

0 Kudos
Message 8 of 20
(3,060 Views)

Hi bike,

 

what's wrong with your VI?

You have programmed a certain order of image display in those indicators and you can select that order by a control. When you need other selections you have just to create more cases in the case structure. With 3 images in 3 indicators there are just 6 combinations...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 20
(3,052 Views)

Hi,

 

Take a look at the attached VI. You should study more about flowcontrol so that you get rid of the sequence structure. I don't have IMAQ so I can't test my example.

Regards,
Even
_________________________________
Certified LabVIEW Associate Developer

Automated Test Developer
Topro AS
Norway
0 Kudos
Message 10 of 20
(3,044 Views)