Hello,
The problem with the code you sent me is the array is un-initialized. Even though you are reshaping the array, the IMAQ ArrayToImage function is receiving an array with no values in it (ie a 0x0 array) and creating an image of the same size. Once you initialize the values in the array the IMAQ ArrayToImage function will create an image with the same number of elements of the initialized array.
I made some quick changes to the example you sent to initialize an array of size 255 X 255 with values from 0 to 255. The image displayed will 255 X 255 with a gradient shift from black to white.
For your program make sure your DAQ values are actually getting into the array and are being passed to the IMAQ ArrayToImage function. If IMAQ ArrayToImage is creating a 0 x 0 image it is because it is receiving a 0 X 0 array. You can check this by placing probes on the wires while the VI is running to see their values. If your VI runs too quickly click on the "Retain Wire Values" button in the tool bar so you can see the values after the VI has completed running.
S. Arves S.
National Instruments
Applications Engineer