Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

can't find IMAQ cast image vi

I'm trying to write an avi file from an array of images. I get the message that it's an invalid image. I see elsewhere that I need to cast the image from a 10-bit to an 8-bit image, but I can't find the cast image vi anywhere under vi.lib/vision.  Where is it?
0 Kudos
Message 1 of 10
(9,193 Views)
I am thinking it is only available with the Vision toolkit.  If you don't have the Vision toolkit, that might explain it.
 
My other thought is that I have seen that group of VIs disappear during installation of IMAQ drivers.  You might need to repair your Vision installation to get it to reappear.
 
Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 10
(9,187 Views)
Well, I have Vision 7.1.1.  Is this the same as the toolkit or is that something separate? I seem to have vis for making avi files and reading images from cameras, so I would think that I should have a vi for casting an image to another format. I will try reinstalling the Vision CDs.

0 Kudos
Message 3 of 10
(9,180 Views)
Hello,

Since you have Vision 7.1.1 the IMAQ Cast Image VI will be located in the Vision Utilities >> Image Management Palette in LabVIEW if everything is right on the system.  It is possible that there was a problem with the installer as Bruce noted above.  In this case, a reinstallation or repair of Vision should fix the problem.   Another source of the dissappearence could be if you are using LabVIEW 8. Vision 7.1.1 will not natively work with LabVIEW 8, but there is a utility available to port it over.

Vision Utility
How Do I Install My IMAQ Vision Software and Drivers With LabVIEW 8?
http://digital.ni.com/public.nsf/websearch/25FD880AC87C4DA6862570B30056C572?OpenDocument

For NI-IMAQ 3.1.1 the VIs in this Knowledge Base
Which non-driver VIs are installed with NI-IMAQ?
http://digital.ni.com/public.nsf/websearch/392E8F10F049918986256A3B005D484A?OpenDocument

For the Vision Acquisition Software (NI-IMAQ 3.5.1) the installed VIs are listed in this KB
VIs Included With the NI-IMAQ Driver/Vision Acquisition Software
http://digital.ni.com/public.nsf/websearch/86256F0E001DA9FD86256EA200507080?OpenDocument


S. Arves S.
National Instruments
Applications Engineer
0 Kudos
Message 4 of 10
(9,162 Views)
OK I recently received the Vision 8.0 update and just now installed it. Now I can see many things on the vision pallette that were not there before, including the Cast Image vi. It looks like it's going to be a whole lot easier to program now.

Steve

0 Kudos
Message 5 of 10
(9,158 Views)
Happy to hear it's working.  I completely agree with you that it is much easier to program with Vision 8. 
S. Arves S.
National Instruments
Applications Engineer
0 Kudos
Message 6 of 10
(9,153 Views)
I reinstalled the Vision 8.5 (including IMAQ 3.8, IMAQdx 3.1 and IMAQ I/O 2.1) but still couldn't find the IMAQ Cast Image.vi.
 
Does anyone know where to download the vi?
 
Please help.
 
Jun
0 Kudos
Message 7 of 10
(8,784 Views)
Hi Jun,
 
Are you using the search on the function pallate to look for the cast image VI? What version of LabVIEW do you have?
 
Can you open your command prompt (Start » Run... then type in cmd and click OK) and navigate to your LabVIEW folder? On my computer, I can get there by typing in:
 
cd /D C:
    <Enter>
cd Program Files\National Instruments\LabVIEW 8.5\
   <Enter>
 
Then go to the vision folder in the vi.lib folder:
 
cd vi.lib\vision
   <Enter>
 
Now, we are in the folder in which all the Vision files reside. Then, you can type:
 
dir /S /N > C:\visionfolder.txt
   <Enter>
 
What this will do is list all of the contents of the Vision folder and all its subfolders, and put it into a text file named visionfolder.txt in your C: drive. If you open up your Local disk C drive (or wherever you put that visionfolder.txt file), you will see the text file there filled with the directory structure of your vision folder. Please attach that file to the forums so we can look at what files you have installed.
 
Thank you kindly,
Maclean G.
Applications Engineering
National Instruments
0 Kudos
Message 8 of 10
(8,771 Views)
Hi Maclean G.,
 
Thank you for the advice. I have attached the visionfolder.txt in which I still don't see the cast image.vi.
 
Please look at the file and advise.
 
Best regards,
 
Jun
 
0 Kudos
Message 9 of 10
(8,757 Views)
Hi Jun,
 
It looks like you have the Vision Acquisition Software installed, but not the Vision Development Module. You need the latter to have the IMAQ cast VI. You can follow that second link to download and install an evaluation version of the VDM, and then you will see the cast VI on your function palette.
 
Regards,
Maclean G.
Applications Engineering
National Instruments
0 Kudos
Message 10 of 10
(8,729 Views)