10-27-2020 02:52 PM
I was trying to use a webcam for image streaming to binary files and read the binary files later to save them as RGB(U32) movie files. After searching, I could find example codes from 'Image Streaming to Binary File (with Backlog)' in the Example Code Exchange in the NI Community.
The example VIs worked well for grayscale images. However, my USB webcam is a color camera and I need to make the VIs work with RGB(U32). But the example code (Producer-Consumer Stream to Disk.vi) had some comments saying that, currently, the example is set up for U8 images only. I tried to make some changes to save and read U32 files but couldn't make that work. I thought just changing data type from U8 to U32 for Image Data Array would do the job. But, it seems to be more than that because that didn't work. Looks like I miss something here.
Could anyone help me find out what I need to add to save and read color movies RGB(U32) other than grayscale(U8)?
Thanks a lot!!
10-28-2020 08:15 AM
FYI, here are the files from the example codes for Image Streaming to Binary File (with Backlog). The original codes are for IMAQ devices and another version for IMAQdx devices is also attached named 'IMAQdx_Producer-ConsumerStreamtoDisk.vi'.
Thank you for your help in advance.