Actually, I think you can use the unsigned char string the pointer is pointing directly. If you are able to read that string in LabVIEW, then use the function "String to Bite Array" located in:
Diagram palette -> String -> String/Array/Path Conversion
to convert it into LabVIEW format. Then, with the rest of the information (width and height), the only thing you need is the color information and you will be able to display the image using the function "Draw Flattened Pixmap". Check if you can read the color table information using the dll too. If not, I can suggest to open any other 8-bit bitmap in LabVIEW (preferibly a greyscale image), copy the color table as a constant and use it to try to display your image.
If you are unable to read the unsigned char string
, you may need to create a wrapper dll for the dll of your card. If this is the case, try passing the string to LabVIEW as a LStrHandle. Refer to the document "Using External Code in LabVIEW" to learn how to do that. This document is included with LabVIEW, or you can download it at:
Using External Code in LabVIEW
http://digital.ni.com/manuals.nsf/web_productcurrent/4F1447F7CD83D6D88625690D00637CED?OpenDocument
Best regards;
Enrique Vargas
www.vartortech.com