Warren,
I tried to replicate the issue that you have described on my end, but the image seems to adjust properly for my grayscale images of different bit-depths. Here is how I set up my test:
1) LUT consisted of 256 elements, element 0 was set to RGB = (0, 0, 255) and element 255 was set to (255, 0, 0).
2) Used an image property node to set the palette to user-defined and connected the custom LUT to the user-defined palette.
3) Used an IMAQ Create where I specified the Image Type as Grayscale I16.
4) Built a simple 2-D array that consisted of I16 values that included 0s and 4095s.
5) Connected this array and the image that was created to an IMAQ ArrayToImage function, wired the output to an image display.
6) Rt-clicked on the image display on the front panel, selected "16-Bit Display Mapping" and selected "Given Range" and mapped 0 to 0 and 4095 to 255.
Running this VI generated an output with grayscale values and blue pixels instead of zeros and red pixels instead of 255s. Be sure to pay attention to the datatypes used, as to avoid coersion, as coersion can cause loss of data.
I have attached the sample program that I built. Try running it and let me know if you have any questions.
Regards,
Scott R.
Applications Engineer
National Instruments
Scott Romine
Course Development Engineer
National Instruments