01-19-2009 01:14 PM
Hi,
I'm trying to find a VI I could use to load a JPEG into LabVIEW. Found the IMAQ Load Image Dialog VI, but don't the dialog box (want it to load automatically with path and file name inputs to the VI). Is there such a VI available?
thanks, Leo
01-20-2009 09:25 AM
Hey Leo-
There is a VI called "IMAQ Readfile" that can be found on your functions palette under Vision and Motion»Vision Utilities»File»IMAQ Readfile.vi.The description of this file is as follows:
Reads an image file. The file format can be a standard format (BMP, TIFF, JPEG, JPEG2000, PNG, and AIPD) or a nonstandard format known to the user. In all cases, the read pixels are converted automatically into the image type passed by Image.
Let us know if you are still having trouble reading in your JPEG file or if you have difficulty finding this vi.
Ben
Applications Engineering
National Instruments
01-21-2009 11:26 AM
Hi,
Thanks for the help - it is working now.
However...when I created an EXE and put it on another system, it looks like I've got some licensing issues. Is there something other than the RunTime8.6 Engine that I need to install on the other computers running the EXE?
The VIs I'm using are:
IMAQ GetFileInfo
IMAQ Create
IMAQ ReadFile
IMAQ Dispose
thanks, Leo
01-21-2009 01:22 PM
Hey Leo,
To create the installer that uses IMAQ functions you must include the IMAQ driver in your installer in addition to the LabVIEW Runtime engine.
Let us know if you are still having trouble.
Ben
Applications Engineering
National Instruments
01-21-2009 02:03 PM
Hi,
I'm only doing a build, not an installer, so looks like I need to install the drivers manually - Can I do that manually? I don't want any licensing issue though, so don't want to install Vision.
thanks, Leo
01-21-2009 03:39 PM
Hey Leo-
If you are just creating the .exe you will need to have the IMAQ driver, which doesn't require a license, on your host computer along with the LabVIEW Run-Time engine. If you are using the Vision Development Module on your development computer to develop your code you will also need the Vision Run-Time engine which also requires a license. However, judging by your initial post, you may not be using the Vision Development Module your .exe should work without the Vision Run-Time engine.
Let us know if you are still having trouble.
Ben
Applications Engineering
National Instruments
01-21-2009 03:43 PM
09-09-2013 10:38 AM
sir! i can't analyze the configuration of the imaq read file.
i use a imaq load image dialogue and the program runs on what i want, but now i want to use a imaq read file, and i can't get it.
i just want it to load automatically with a constant path. i will attatch my vi. i search many forums but still i cant get it.
newbie too much. tnx sir! hoping for your time.
09-09-2013 11:43 AM
Hello,
if you want constant path, just specify the full path image location. For example:
Best regards,
K
09-18-2013 06:51 PM
thank you sir Klemen! I get it now i just need to put if it is .jpg or .png.
sir! can i ask again a questioin? can i select a constant path that will select all the picture files in the said folder?
i formulate a method that is too long codes. i will post the image of my code. tnx sir!
"in the code i will read how many files are there in the folder.. and process it to get it in string value"
it takes many codes. but sir do you some shortcut coding for this kind of process?"
Thank you agian!