05-06-2014 07:14 AM - edited 05-06-2014 07:15 AM
Hi folks
I made a VI where I capture pictures whenever I hit a boolean and they are automaticly saved in a map with the names 0,1,2,3,4,5,... , but that ain't important for my problem. I use the IMAQ write file2.vi to write my file to the set file path. This .vi got the function to save the image as a .jpeg, .bmp, .png, ... . I select the .jpeg extension, but when I go to the files they are shown like this (without the .jpeg extenstion).
I guess that there is an easy solution to add the .jpeg extension after the file name, but I can't find anything.
Besides that there is something else which stands apart from the .jpeg issue.
I am taking a lot of pictures under different angles of an object and also save them like the example above. After I took all the pictures I want to proces them, so in order to do that I have to save the images together with the angle. I know that in NI Vision calibration information can be saved with the pictures in a .png file, but I was wondering if this also could be done with your own information. If this is not possible, is there maybe another solution to this?
Kind regards
Ruts
Solved! Go to Solution.
05-06-2014 07:18 AM
Append the string file name with ".jpeg" (without quotes). Do this by using the concatenate string on the string palette. Post some code if you are having troubles.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-06-2014 07:35 AM - edited 05-06-2014 07:36 AM
To answer the second part of your question:
Use IMAQ Write Custom Data http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/imaq_write_custom_data/
and when saving the image use the 'PNG with Vision Info' option on IMAQ Write File 2.
05-06-2014 08:15 AM
Thank you both for your fast and correct answer.
For my first question: how couldn't I think of that, it seems so obvious right now.
For my second question: I already stumbled on that .vi, but I didn't realise that was what I am looking for.
To bad I can't tag both answers as a solution, so I'll flip a coin. 😉