12-30-2004 12:40 AM
12-30-2004 04:21 PM
12-30-2004 08:49 PM
12-31-2004 02:53 PM
01-03-2005 10:47 AM
01-03-2005 09:59 PM
01-04-2005 01:53 AM
01-04-2005 02:13 PM
@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
01-04-2005 10:39 PM
01-05-2005 05:41 AM