09-19-2013 12:22 AM
Hello,
glad you have figured it out.
If you want to load all images in a given folder try:
Why do you need a string? The "paths to images" can be used to load all the images specified in the path array.
Best regards,
K
09-19-2013 06:24 PM
sir klemen thank you for an immediate response. i am quite new in labview so i try to create vi but it is not quite that correct.
I have another problem sir it is about..
IMAQ ReadImageAndVisionInfo
when i path someimages an error occured.
“-1074395989 --> IMAQ Vision: (Hex 0xBFF604AB) Unable to read data”
"does this means that the IMAQ ReadImageAndVisionInfo can only read some images? if yes, can i know what kind of images?"
thank you sir! i read forums but there is none explaining well about this thank you.
09-20-2013 12:46 AM
Hello,
i think this vi expects a .png image, since this is the format, where the vision info is stored. You can load a png image without the vision info, but you cannot load other types (.jpg for example).
You should always read context help and detailed help for more information:
So, this basically enables you to read additional information if saved with "IMAQ Write Image And Vision Info File 2".
Hope this helps.
Best regards,
K
09-22-2013 12:25 PM
Sir Klemen,
you help me a lot sir! but i need again you help sorry sir..
the auto path that you gave to me helps me a lot but i want to ask again.. What will i do is this..
1) i have images in my folder that i will compare to one image.
2) you thought me how to path.. but i cannot get the path one by one to compare it to an specific image..
that is my problem. Thank you sir! and by the way sir do you know how to make the numeric indicator will have two digit values always?
it is like.. instead of '0" it will be "00"
Thank you sir for always answering my question!
09-23-2013 12:13 PM - edited 09-23-2013 12:13 PM
Hello,
if you want to compare an image "one-by-one" to another image, just perform everything inside the for loop. There you have only one path in each iteration, going through the first path to the last.
For displying the numeric indicator with two digits, right click on the indicator and select "display format". Select "advanced editing mode" and add "%02d" to the "format string" (d is for decimal, use f if you want float, etc...).
Best regards,
K