LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to add a video option to capture image

Solved!
Go to solution

so even though the image changes with time,it does not actually look like video. Thanks to you and all those in this thread who spared their time for me.
Can you post a screen shot of your vi that you have tried?
0 Kudos
Message 41 of 54
(1,593 Views)
Have you used any delay in the loop?
0 Kudos
Message 42 of 54
(1,592 Views)

I amglad that you have marked the second post as a solution.So lemme just summarize here of what has happened so far so that others can chip in.

 

1. simulated a video (kinda) using acquire inside the while loop

2. there was problem feeding the interface name and that has been sorted and

3. now the process is taking 5 seconds. 

 

Lets see what you have done to correct it

Message 43 of 54
(1,589 Views)

The first picture is the part of the program (inside the inner while loop) that captures the image .The stop button inside the same while loop will terminate the capture image process.

 

There is as such no delay added inside this loop. But still we can see the iteration of this loop takes some time.

The second picture contains two flip flops-(start and stop): start is the start acquisition . The loop in the first picture will be executed only on pressing this start aquisition button.

-------------------------------------------------------------------------------------------------------------

there was problem feeding the interface name and that has been sorted and

--------------------------------------------------------------------------------------------------------------

I have just added a while loop and done a little re arrangement in other loops. So I did not come across interface name.

Hope this is meaningful.

Download All
0 Kudos
Message 44 of 54
(1,573 Views)
Two while loops and two sequence structures. Ouch!!! Can you please write in details your entire application. There has to be a better way.
0 Kudos
Message 45 of 54
(1,547 Views)

 BTW I am not able to properly view your second image. A glimpse......

 

 

 

clear.PNG

0 Kudos
Message 46 of 54
(1,546 Views)

    A CCD camera is attached to a (software)tunable filter. In our project we are supposed to take images at certain wavelength.After selecting a particular wavelength in the filter we need to focus the camera . Here I have combined the two different vi's using a sequence structure. The problems I am facing are:

 

1) The control never goes into the filter section(first sequence in the main structure)

2) Since the image captured is still image I am not able to adjust the focus in the live mode

3)When I tried imaq , errors which I have mentioned in the long previous posts in the same thread occured.

 

 So I put one more while loop which iterated the capture image. And I have combined some functions which were previously as different cases into one case ,so that it may take less time. Again another problem was

 

4) Even though there is as such no delay in the image cature loop, it takes some time to execute same task. For example when the execution reaches the intensity graph from the array, it is not immediately displaying image.It waits for more number of (3 or 4) reaches to display the image.

 

Hope this was meaningful and advance thanks for the efforts you are  taking to solve this problem out. 

Am sending the whole modified vi .

 

 

0 Kudos
Message 47 of 54
(1,525 Views)
0 Kudos
Message 48 of 54
(1,523 Views)

hi muks,

I have one more doubt. I have actually copied(code by code) the filter program (the first case of the case structure)from the provider's filter program. When copying program will it create any trouble. I copied both front panel and the block diagram. On doing so, the "visa error" does not appear in the copied program. 

0 Kudos
Message 49 of 54
(1,503 Views)
You can copy. I dont see any problem in doing so.
0 Kudos
Message 50 of 54
(1,499 Views)