Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

snap/grab and save to file

Solved!
Go to solution

Hi,

 

I have some questions about saving images to bmp(or jpg) or avi.

I just began to use LabVIEW Machine Vision, so please understand if my questions are somehow ridiculous. 

I am working with NI PXI 1409 analog frame grabber and CCD monochrome camera.

Since the 1409 is attached to PXI chassis, I use Vision Acquisition Express vi in RT(Real Time) level.

So, when I try to save a single image or continuous image to file in my PC, it shows an error.

I am wondering if there is a way to save images to file on my PC hard drive. 

 

When I set the path like C:\acquired image.bmp, no error occured and I think the bmp file is saved on the RT computer, not on my PC.

So, I am also wondering how I can access the directories of RT computer.

 

Thank you very much, in advance.

 

JY 

 

 

Since I am just a beginner, I am looking into the labVIEW Machine Vision and Image Processing Course Manual.

 

0 Kudos
Message 1 of 7
(5,963 Views)
What is the error that you are getting? Can you post a screen shot of the vi that you have tried? Do you mean you want to continously acquire and save?
0 Kudos
Message 2 of 7
(5,952 Views)

Hi JY,

 

Can you FTP to the directories?  If you open a web browser and type FTP://ip address from your host machine, you should be able to navigate directories of your RT target.

Tejinder Gill
National Instruments
Applications Engineer
Visit ni.com/gettingstarted for step-by-step help in setting up your system.
0 Kudos
Message 3 of 7
(5,943 Views)

Hi Muks,

 

Yes. And also I'd like to save a single image to a file(bmp or jpg) too on my PC hard drive.

When I try to save a snapped image to a file, I could do it on the RT-target(not on my PC) and find the bmp file by FTPing the directory of RT-target. However, When I try to save continuous images to avi file(simple vi below), it gives me an error which I attach below.

grab and save to file.JPG

error.JPG 

 

Also, I wondering if there is a way to save images to file on my PC hard drive, not on the RT-target.

Thank you.

 

0 Kudos
Message 4 of 7
(5,936 Views)
Are you trying to read an avi and write back to the same file?
0 Kudos
Message 5 of 7
(5,921 Views)

Hi JY,

 

That error is being thrown because you cannot use AVI VI's on a RT Target.  That's because these VI's use DirectX, which is no available on RT.  You can take a look at the following article for more details.  There is also a workaround where you stream the data to your local machine and then save to AVI.

 

http://digital.ni.com/public.nsf/allkb/5C7A6FE2C2D49BE286256FE8007FDC35?OpenDocument

 

I hope this helps!

Tejinder Gill
National Instruments
Applications Engineer
Visit ni.com/gettingstarted for step-by-step help in setting up your system.
0 Kudos
Message 6 of 7
(5,900 Views)
Solution
Accepted by jjunyoung18

Hi Tejinder G.,

 

I understand and I'll try the method you suggested.

Thank you very much.

 

JY. 

0 Kudos
Message 7 of 7
(5,888 Views)