08-24-2008 07:50 AM
08-24-2008 08:41 AM
Hi muks,
can you explain in more detail please? What is the task ot the usb controller?
Try to help.
Mike
08-24-2008 08:50 AM
08-24-2008 09:13 AM
Hi muks,
is it possible for you to cut the 12 bit data into 8 bit partitions, send it and rebuild the 12 bit?
Mike
08-25-2008 02:05 AM
Hi mike,
That is exactly what i am trying to do.Can you give me a idea on how to go about it?
08-25-2008 02:07 AM
08-25-2008 08:16 AM
08-25-2008 08:48 AM
Hi muks,
maybe i misunderstand you. In which format do you have your data?
Mike
08-25-2008 08:56 AM
Is it more difficult than it sounds? Instead of sending a single 8 bit value, first send the 4 usb padded with zeroes, then send the 8 lsb. On the other end, put them together as a 16 bit value, which is how LV is going to use them.
You could try to be ultra efficient and pack two 12 bit values into three 8 bit values, but that would be a little more challenging. I would only try it if you really need the increase in speed, which wouldn't be much. The processing on both ends would be more complex.
Bruce
08-26-2008 02:01 AM
Hi my dear community friend,
I dug into some resources. Your problem might be solved using either performing "Downshift" method or "Bit plane Slicing".
Downshift:
by applying downshift, you can convert your 12 bits image to 16 bits image and I'm confident you can deal with it from that point.
Bit Plane Slicing:
which by you may eliminate the lower bit planes (planes 0,1,2,3) and keeping the remaining 8 bit planes (plane 4,5,6,7,8,9,10,11). The lower bit planes contain finer details, so your loss won't be drastic.
Downshift methd is already available in NI IMAQ. for the second resolution, you may resort to perform pixel by pixel operation, extracting pixel value, trim the mentioned lower planes and construct the new image.
I hope it makes sense and muks, you are my hero.