Hi Marc,
Thank you again!! I have tried your method, but the error message I got:
NON-FATAL RUN-TIME ERROR: "Test_ArrayToImage.c", line 27, col 1, thread id 0x00000A48: Function imaqArrayToImage: (errorCode == -1074396120 [0xbff60428]). Not an image.
This message bothers me for couple days, and I actually don't know how to solve this problem because I just start to learn C programing. In other words, I can't use the function, imaqArrayToImage, to let my pixel array into the image. Thank you for your response!!