LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using color sensor to produce an image

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E0D156A4E034080020E74861&p_node=DZ52481&p_source=external

izzit possible to do something like the one show in the webpg?

they oni have visual basic..

i need to do motion control..

cheers

ryan
0 Kudos
Message 11 of 12
(531 Views)
Hi Ryan,

If I am understanding your previous posts correctly, you have the software developed to return values to LabVIEW. Now you just need a method for plotting these values on some type of graph to make a picture (pixel by pixel). I have attached a VI written in LV 7.1 to this post that will hopefully get you started in your development.

This VI (PictureRandom.vi) has two segments of code. The first segment of code simulates the pixel values (one at a time) and uses two For Loops to automatically generate a 2D array that will then be plotted to a picture control at the very end.

The second segment of code basically does the same thing, but continuously re-plots the 2D-array each time a new value (pixel) is generated. This method will take considerably more time to execute due to the nature of having to re-plot the array each time. I also added a delay so you can see that it actually does re-plot for each pixel.

You can use this code to get you started in your application. You will need to replace the code used to simulate pixels (Random Number generator multiplied by 255) with code to bring in your real world values.

I hope this helps!

Travis H.
National Instruments
Travis H.
LabVIEW R&D
National Instruments
Message 12 of 12
(510 Views)