LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Must load a Matrix or array with 90 individual 16 bit numbers, then do matches with Vision inspection result.

What is the best way to load 90 16 bit numbers into an array or matrix, and then compare those 90 values to a Vision system result?

The operator manually enters the value into a display, assigns the value to a memory location (Bin #) and clicks "Enter".

Each of the 90 locations will have a stored value in it.

A Vision system inspection will transmit a result that matches one of the 90 entries, so we then have to try to match the value and determine which bin to sort the result to.

We are learning a lot about LabView, but not fast enough.

 

Thank you in advance for your help.

 

Sincerely,

 

Rich

0 Kudos
Message 1 of 4
(2,514 Views)

Rich

 

It seems like you just want to create a histogram of the image. There is an IMAQ Histogram VI (Vision and Motion >> Image Processing >> Analysis). This allows you to define the max and min values along with how many "number of classes" (or bins). I believe this may accomplish what you are looking to do. As a note, there is also an IMAQ Histograph VI in the same pallet.

Cameron T
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(2,495 Views)

Actually, there are up to 90 possible numeric inspection results. they are entered and assigned to a bin. The Vision System measures the part and a VI within the Vision app points to one of 90 bins, based on one of 90 measurments.

 

I hope I explained it well enough.

 

 

0 Kudos
Message 3 of 4
(2,490 Views)

It seems like using the Search 1D Array VI will accomplish what you are trying to do. Have the measured value as the element in. Start searching at element zero (0). This will retrun which element matches the measured value, or which bin it should go in. I hope this helps.

Cameron T
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,459 Views)