LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using color sensor to produce an image

i have a color sensor which can preset to give a voltage high when it
matches the preset color

also i have a translation stage from Zaber which could give x and y position.

so wat i need to do is to is:

i will place an object on the translation stage and in the same time
have the color sensor mounted on top of the object.

For each point on object you can check the color to see whether it
matches or not.

so let say if it matches the color preset,it will produce a voltage
hi,and we can transfer this pt to labview(as a image or shld i say a pt plotted on a plane)
You then move to the next point and do the same and so on for all
points.
You put these points as an image where the color matches or does not
match.

then move the stage to another point and get x,y,z again. Put all these points
in
one picture and you have image.

HELP!!!!!!!!!!!!!
0 Kudos
Message 1 of 12
(3,767 Views)
Hello,

Did you have a particular hardware scheme in mind? Were you thinking about using a multifunction DAQ device, motion hardware, some sort of instrument?

If you can give some more specifics about everything that you'll be using, we might be able to help you find some example programs to help you accomplish your end goal.

Jared A
0 Kudos
Message 2 of 12
(3,752 Views)
i have a DAQ card already installed in my computer..and i m able to link my color sensor to the computer...when recognised a color(it can oni recognise a color at a time),it will produce voltage Hi of ard 4 voltage.

so for my aim,in a specific workspace.with a object place inside,using the principle of if detecting the same color,will produce a vol Hi,i would like to scan the object into the labview in term of small dots made(each dot is produce becos of a signal receive fro correct color)

it is similar to an IV call colorgraph.vi .I wonder if u have it...

u can email me at ryanstyle@gmail.com!!!

cheers!!!
0 Kudos
Message 3 of 12
(3,745 Views)
Hi,

I'm not completely sure I understand what you're trying to do and I was not able to find a colorgraph.vi example program, but if you are wondering how to change the color on an intensity graph or chart, there is a KB that discusses how it's done:

KB 386GKQGP: How Do I Change the Color on an Intensity Graph or Chart?

Hope this helps!

Kileen
0 Kudos
Message 4 of 12
(3,736 Views)
i have consulted my professor...

maybe now i can give u a clearer view which u could assist me better

i have a translation stage from Zaber

it can be linked to the computer and using labview to control the X
and Y axis of the stage.

so for example,the translation stage will move (1,0) from (0,0) and the color
sensor will scan the stage.it will produce any voltage Hi or low depend on
whether if it matches the color or not.

if it matches the color
preset,it will produce a voltage Hi and a pt show on the labview
graph.Then it will move to the next pt(2,0),and the color sensor will
continue to scan....so on and so for,until maybe it reaches
(10,10).then scanning will stop...

i have the labview program for the translation stage,but i need to
know how to link it with the color sensor,and priduce an image of the
object scanned.
0 Kudos
Message 5 of 12
(3,716 Views)
Is this what you are looking for ?
CC
Chilly Charly    (aka CC)
0 Kudos
Message 6 of 12
(3,708 Views)
wow!!this is really cool..but how does it work??

it seem quite similar to what i m doing....

i have the program fr my translation stage..how izzit gonna link?

u have msn?
add me at s8006362h@ntu.edu.sg


ryan
0 Kudos
Message 7 of 12
(3,706 Views)

@ryanstyle wrote:
wow!!this is really cool..but how does it work??

It does what I understood from your posts :
The 2 nested FOR loops are used to scan the picture displayed in the "Origin" intensity graph. The loop indexes define the position on the XY matrix. Therefore they correspond to the coordinates of the color sensor position in your app. The position is displayed in "Scan position", and 2 cursors are animated using the "Cursor.position" property nodes.
The "Index array" primitive retrieves the Color (level) value from "Origin". Means that it simulates the color sensor signal acquisition. It works in association with a comparison to the "Detection level" value.

Actually, the only part of this vi that should be usefull for you is the "Replace Array subset" function : The array is initialized before entering the FOR loops, to have dimension sizes corresponding to the picture size (more precisely to the number of positions that you are going to scan with your sensor). Then, the array is progressively filled with the results generated by the sensor at each loop iteration. The new array value is stored in a shift register, to be passed to the following iteration step.

Hope this helps !

CC
Chilly Charly    (aka CC)
Message 8 of 12
(3,692 Views)
Hi CC,

thanks for the reply.

i think i cld use ur program,but have to modify it...

1)firstly,i need to convert my translation stage to an array of number of positions that i am going to scan with my sensor

2)i like the cursor thing,where it can simulate my color sensor scanning,but i do not actually noe how it works.

so the most impt factor is for me to link my translation stage to ur program,replacing the orgin intensity graph with my translation stage.


hope u cld advice me on it

cheers

ryan
0 Kudos
Message 9 of 12
(3,682 Views)
First step should be to create a vi to move your sensor head to a specific XY location; The vi should accept an X and an Y input, and return the Z value (true/false as matched/not matched ? or an intensity value ?).
Then, this new vi could be embedded in a simplified version of my previous vi, to give something looking as the attached jpg. Don't ask for the "Move and Read" vi, it's just an empty shell. You'll have to build it from the Zaber tools.

CC
Chilly Charly    (aka CC)
0 Kudos
Message 10 of 12
(3,673 Views)