03-02-2006 04:28 PM
03-03-2006 03:46 PM
ivanlum,
What version to NI-IMAQ are you using?
Thanks,
Lorne Hengst
Application Engineer
National Instruments
03-06-2006 08:59 AM
03-07-2006 05:13 PM
ivanlum,
Which version of NI-IMAQ are you using? This will be a seperate version than the version of LabVIEW.
You can check your NI-IMAQ version number by going to Measurement Automation Explorer (MAX) via the Start menu...
Start->Programs->National Instruments->Measurement Automation Explorer
And going to the Software folder in MAX. There should be an entry for NI-IMAQ. Left click that entry and check the version number on the right side of your screen.
Lorne Hengst
Application Engineer
National Instruments
03-09-2006 11:24 AM
03-10-2006 12:42 PM
03-10-2006 12:46 PM
03-14-2006 01:49 AM
Ivan,
At first I wasn't sure what you were asking. Now I think I understand.
If you have a 16 bit image, it doesn't matter if it is signed or unsigned. Both the U16 and I16 have 65,000 different intensity values, the numbers are just represented differently. In order to convert a 2-Dimensional I16 array to a 2-Dimensional U16 array, you will need to do some simple bit manipulation.
Basically you need to first cast the I16 into a U16 and then XOR each element in the I16 2D Array with a 0b1000000000000000. I have attached an example VI which shows how to do this. This basically changes the flips the left most bit.
I hope I answered your question,
Lorne Hengst
Application Engineer
National Instruments