Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there an IMAQ VI that I can use to load an image automatically?

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

0 Kudos
Message 1 of 15
(7,615 Views)

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

Hope this helps.
-Ben

WaterlooLabs
0 Kudos
Message 2 of 15
(7,594 Views)

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

0 Kudos
Message 3 of 15
(7,571 Views)

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

Hope this helps.
-Ben

WaterlooLabs
0 Kudos
Message 4 of 15
(7,568 Views)

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

0 Kudos
Message 5 of 15
(7,565 Views)

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

Hope this helps.
-Ben

WaterlooLabs
0 Kudos
Message 6 of 15
(7,561 Views)
Here is a knowledgebase article that lists the vi's that are included with the IMAQ driver. NI-IMAQ
Hope this helps.
-Ben

WaterlooLabs
Message 7 of 15
(7,559 Views)

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.

0 Kudos
Message 8 of 15
(6,724 Views)

Hello,

 

if you want constant path, just specify the full path image location. For example:

 

rgb_BD.png

 

Best regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
Message 9 of 15
(6,719 Views)

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!

0 Kudos
Message 10 of 15
(6,666 Views)