11-06-2024 02:54 PM
Using Labview and Vision 2022 Q3, I have no problem using IMAQ ArraytoImage back and forth for grayscale image. However, when I tried to use the IMAQ ArraytoColorimage, Even I tried some used-to-working solution code snippet, I encountered strange error (Error -1074396080: Invalid Image Type). Out of desperation, I added a seemed-to-be-redundant "IMAQ Image Cast 2", to force the already-correct image type again (RGB U64), and the code works. So I wonder if there is some internal incompatibility in Labview/Vision or there might be other reason? Thanks!
Solved! Go to Solution.
11-07-2024 05:09 AM - edited 11-07-2024 05:09 AM
It seems to be that you have no wire between constant and IMAQ Create, as result you have default U8 image type:
For me everything works without issues:
Next time please post code or snippet instead of screenshot.
11-07-2024 10:56 AM - edited 11-07-2024 10:58 AM
You are absolutely right!
I wish Labview has some rudimentary "syntax check", just like any language complier that would catch things, like unmatched parentheses or missing comma, etc.
In large 4k screen those wire are barely visible. Often time, some wires are mysteriously gone when copy and paste with a "boxed selection". And some function, such as IMAQ Write File 2, does not even need options to be connected. 🙂
But it is my fault not checking every details. Thanks!