Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use "IMAQ Write File"

Solved!
Go to solution
I want to use "IMAQ Read File"and"IMAQ Write File2"to read,display and save a picture,but I don't know how to use the"IMAQ Read File"and"IMAQ Write File2",Please give me some examples,thank you very much!(I use LabVIEW 8.5)
0 Kudos
Message 1 of 8
(7,935 Views)
Solution
Accepted by T-shirt
imaqread_write.JPG
Message 2 of 8
(7,934 Views)

Thank you very much!But I want the VI to work like this:When I click the "save" button,it can open a menu to decide where  to save,when I click the "open"button, I will see a menu that I can choose a picture to open.Could  you do that?

thanks!

0 Kudos
Message 3 of 8
(7,929 Views)

You can use an event structure to detect the "save button" press.

Then a file dialog to select the location to save the image.

Then just modify the code above to do what you want it to do.

 

Similar thing for the open button.

Message Edited by Hornless.Rhino on 29-04-2010 01:17 PM
Message 4 of 8
(7,900 Views)

T-shirt wrote:

Thank you very much!But I want the VI to work like this:When I click the "save" button,it can open a menu to decide where  to save,when I click the "open"button, I will see a menu that I can choose a picture to open.Could  you do that?

thanks!


Which image do you want to save? Acquired from the camera? if so you can put the grab/acquire in a while loop and use the stop button  as the trigger to save the image. For a pop to open as hornless rhino as suggested there is a ready made file dialog that you can use instead of hard wiring the file path shown above..

Message 5 of 8
(7,890 Views)
Thank you very much!
0 Kudos
Message 6 of 8
(7,862 Views)

Glad you have it solved. Have a look at this manual too.

Message 7 of 8
(7,857 Views)
OK,thank you.
0 Kudos
Message 8 of 8
(7,853 Views)