12-13-2011 11:58 PM
I used IMAQ Histograph VI in this vi. The image source is set as a grayscale I16 image. When it is running on the machine it works OK, but when I run it on my own computer, it shows an image type error for IMAQ Histograph. I read the help file, the mask image must be U8 format, but why it is running OK in some case. Anyone knows?
Thanks a lot.
Jane
12-14-2011 05:03 PM
Hi Jane,
What was it that caused you to notice the error on your own computer versus the machine? Also, can you clarify what the machine is? Throwing an error is expected behavior seeing as the input is not of the correct image type. I believe what may be going on here is that the error is being thrown in both instances, but it is only actually being caught in one. Try adding a Simple Error Handler VI after the IMAQ Histograph VI and see if you catch an error in both places.
Regards,
12-14-2011 09:31 PM
The machine I mentioned is we used in our lab which already been installed the computer and image acquisition system. It runs OK with that VI. But after I copied that VI to my own computer, an error showed up. The version of LabVIEW and NI Vision for these two computer is different. The computer on the machine has LabVIEW 8.6. My own computer has the latest NI Vision and LabVIEW2011. These are the only differences.
12-15-2011 05:47 PM
Hey Jane,
I tried replicating this using LabVIEW 8.6, and I received an error when I tried inputing an I16 into the mask input. It appears to be behaving normally for me. One thing I'd like you to try is using the IMAQ GetImageInfo VI, and wire in the image that goes to the IMAQ Histograph VI, and create an indicator for the Image Type output. I'd like to double check to make sure the image type is actually I16 and not U8.
12-15-2011 07:19 PM
Hi Eric,
Thanks for your patience. The LabVIEW version is actually 8.5.1, and the NI Vision is 8.5. Sorry for the mistake.
Regards,
Jane
12-16-2011 01:44 PM
Hi Jane,
I was able to use LabVIEW 8.5.1 and NI-Vision 8.5 to run a Histograph example. I casted the image to an I16 value and used it as the input to the mask, and I received the same error again. This setup should still be catching the error. Can you try using the IMAQ GetImageInfo VI to double check that the value being passed in truly is an I16?
Thanks,
12-18-2011 04:37 PM
Hi Eric
I tried Getimageinfo VI, and the image type still showed Grayscale(I16) and no error. I saved the image as a Tiff file. Would you please try that?
Thanks,
Jane
12-18-2011 04:38 PM
the image file as attached
12-19-2011 04:19 PM
Hi Jane,
I was able to replicate the issue using LabVIEW 8.5.1 when I used the tiff image. As you mentioned initially, this behavior is accurate in newer versions of LabVIEW, so the normal steps to resolve this issue have already been taken. Thank you for pointing this out though as this may help someone else out if they are seeing the same behavior.
12-19-2011 04:28 PM
Eric, thanks for your time.
I am trying to use IMAQ Particle Analysis. I don't know if you have got any detailed explainations about thoese measurement parameters.
Regards,
Jane