Hey Dude;
It turns out that I have a vi similar to what you are looking for. So, I modified it using the equation Matt R. provides in the previous answer and it seems to be working OK. The vi is attached to this message.
Please note the following. First, the VI convert an array where every three consecutive elements are considered the R,G and B components of the desired value, respectively. That mean the size of the original array must be a multiple of three. The value of each element should be a number between 0 and 255, anything else is coerced.
Let me know if this work. Also, if you improve the vi, it will be appreciated if you post the improved vi. Thanks to Matt R. for the equation.
Enrique
www.vartortech.com