LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating the same program in one file

Hi

I would like to point out that I am new in Labview and i got one problem, which seems simple to solve. I have program which will count gummy bears. My target is to open this program 2 times, to select 2 different images and compare them and then point out which picture has more red gummies. However, when i copy all block diagram to create second attempt, i got only one, last image which i chose. How can I upload two images to be displayed side by side and then compared?

0 Kudos
Message 1 of 4
(702 Views)

You should make just one program that can open two images.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 2 of 4
(668 Views)

To possibly scale your program further, just use array of images as your input, then run calculations in a for loop and return the largest number (or index of image).

 

AeroSoul_0-1671615649160.png

 

Message 3 of 4
(646 Views)

@AeroSoul wrote:

AeroSoul_0-1671615649160.png


On a side note, your shift register construct is exactly the same as just autoindexing at an output tunnel.

 

For a more "in place" solutions (beneficial if the input array is gigantic), it would be sufficient to keep the max and max index in a shift register and update if a new max is found (max initializes as -inf and index as -1). 

0 Kudos
Message 4 of 4
(616 Views)