08-06-2019 05:57 AM
Hi,
I am new to Labview and will appreciate any help I can get. I'm am trying to display an array as an image and nothing is being shown in the image window on the front panel.
I have a 2D array and used IMAQ ArrayToImage, I have tried just creating an indicator to display the image on the front panel. I also tried using IMAQ Windraw. Both attempts have not produced anything.
I have managed flatten the 2d array and use draw flattened pixmap, but I need to be able to select a ROI and then do further analysis on the image.
Thanks for any help,
Cortina
Solved! Go to Solution.
08-06-2019 06:12 AM
Hi Cortina,
Can you attach your VI (preferably in Labview 2015 using save for previous version)?
08-06-2019 07:01 AM
Hi,
There's a lot of stuff to get the array as it is coming from a camera, being saved in a buffer and then being put into the array, but this is the image part. I only have labview 2013 though.
08-06-2019 07:13 AM
@Cortina24 wrote:
Hi,
There's a lot of stuff to get the array as it is coming from a camera, being saved in a buffer and then being put into the array, but this is the image part. I only have labview 2013 though.
Labview 2013 is also fine.
From what little I can make out is that you are trying to fill U16 integers into a U8 image buffer. I would suggest to change the Image type to U16 and make sure your 2D array is set to U16 as well. It also helps to know if Labview gives an error.
See the attached example.
08-06-2019 08:46 AM
Thank you very much for your help
Cortina