LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I select a path to save the images from USB camera

Solved!
Go to solution

Its pretty simple. Check this

 

File Path.png

Good luck

-----

The best solution is the one you find it by yourself
0 Kudos
Message 11 of 23
(1,530 Views)

@duaa wrote:

i have attached my program

i want the file name to change every time to be image1,image2,..

i dont know how to insert that loop to increment the path name

i have tried many trials and it didnt work

 



Did you look at the snippet I posted at all?  What you tried looks nothing at all like what I posted.  Please try again.

 

Panand's example may work, but it looks a bit more convoluted than it needs to be.

0 Kudos
Message 12 of 23
(1,523 Views)

@Ravens Fan wrote:

@duaa wrote:

i have attached my program

i want the file name to change every time to be image1,image2,..

i dont know how to insert that loop to increment the path name

i have tried many trials and it didnt work

 



Did you look at the snippet I posted at all?  What you tried looks nothing at all like what I posted.  Please try again.

 

Panand's example may work, but it looks a bit more convoluted than it needs to be.


Yes I have modified the user's code itself atleast he may look at that. I agree that your suggestion is the good way to go with compare with mine and I would go with that. 🙂

-----

The best solution is the one you find it by yourself
0 Kudos
Message 13 of 23
(1,521 Views)

duaa,

 

P Anand and Ravens Fan have both provided solutions that work for your application; I'd definitely take a look at what they've coded. 🙂

Ravi A.
National Instruments | Applications Engineer
0 Kudos
Message 14 of 23
(1,510 Views)
I have problem with capturing the images its only repeat the same image with different name
But I want each time to check the logic if its true to capture a new image ! If its false it will STOP .
Please I need your help ...
0 Kudos
Message 15 of 23
(1,499 Views)

Please post the latest copy of your code.  It is difficult to understang what you are saying without code to visualize along with it.

0 Kudos
Message 16 of 23
(1,489 Views)
0 Kudos
Message 17 of 23
(1,481 Views)

Please review the example I posted on how to build the path to the file.  Right now, what you have is wrong.  You wind up with a path like "c:\images\.png0.png"

0 Kudos
Message 18 of 23
(1,471 Views)

Also, right now you Snap outside of your logic, but you save inside the While loop. So this While loop is going to constantly save the same image over and over until you stop it. Then, it'll snap again, and then constantly save the same image over and over. If you want this to work, you need to put the Snap in the same loop as your save, so you have one Snap for each Save.

Ravi A.
National Instruments | Applications Engineer
0 Kudos
Message 19 of 23
(1,456 Views)

i tried to iclude the snap in my loop and it works

but i need to stop snap images when my  case is FALSE
so what should i do ?

0 Kudos
Message 20 of 23
(1,446 Views)