From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

imaq

Solved!
Go to solution

hello!

 

well, i am trying to to make a VI that simplys captures a video from a video camera and saves in a folder, that i create programatically.

But i am noticing that when i run the video saved, only the half of the video that was shot is actually being played.

I figured it out that maybe the while loop used to capture and save the video maybe is slower than the frame ratio of the camera so maybe for each loop the camera sends 2 pics for the labview and it only shows one, it only saves one.

 

Any ideas on how to fix that? 

 

Any help is appreciated 😄

 

I am attaching the VI 

 

Lucas Faquim
0 Kudos
Message 1 of 12
(3,521 Views)
Hi Faquim,
Please check this link for capturing video.
https://decibel.ni.com/content/docs/DOC-3587
Thanks
uday
Message 2 of 12
(3,480 Views)

udka, looks like it, exactly what I needed to know.

I dont have the PC now, ill work on testing it monday.

 

Thank you a lot, for your time and help!

 

Lucas Faquim
0 Kudos
Message 3 of 12
(3,441 Views)

Hello again,

well the VI worked pretty well but looks like this works on getting a certain number of images and then they make a sequence with that at the FPS i specify.

So lets say i set 30 FPS, the video goes much faster than it should.

I could set up the FPS to have the exact time of video saved and there is an excellent point in doing this, looks like i am not missing any images...

Anyways, I tried another way, using the Vision Acquisition VI, I configure it to make a continuous acquisition with inline processing and then i can configure the camera. I tested with the webcam of my pc and in first execution I had the same old problem of missing images. Then I configured to send 60 images to buffers (since lower ratio would make I miss more images I guess), and asked the VI to show me the indicators to know how many missing images I have. For my surprise, I had an error and couldnt execute it (not executable error). I search for it in the web and couldnt find anything related to that.

What am i doing wrong? I read the tutorials about NI-IMAQdx and there is no problem in using the 60 images to buffer...

 

I am attaching the VI.

 

Any help appreciated,

Thanks in advance 😄

 

Att,

Lucas Faquim
0 Kudos
Message 4 of 12
(3,254 Views)
What error you got? can you post a screenshot of it if possible?
Thanks
uday
0 Kudos
Message 5 of 12
(3,246 Views)

Ok, I did in 2 ways

Here is a link for the error mesage: http://prntscr.com/2hw7x3

and I am also attaching an image.

 

Thanks in advance

Lucas Faquim
0 Kudos
Message 6 of 12
(3,242 Views)
-Did you try lowering the frames and check whether you get the same error or not?
-What camera you are using?
-What is the maximum fps it can give?
Thanks
uday
0 Kudos
Message 7 of 12
(3,234 Views)

I am using the integrated webcam, which i think can acquire at 30 FPS at max

I just tryed to lower both the number of images sent to buffers to 10 and the FPS of acquisition to 11, and still didnt work.

 

Then i did another test, lowering the number of images sent to buffers to 3. Still cant run. I read in the tutorials that this number should be 3 or higher, because it risks losing a high number of images...

 

thanks for your time and help

att

Lucas Faquim
0 Kudos
Message 8 of 12
(3,229 Views)
May be camera was not closed properly!!!
-Are you able to open camera in MAX? try grab and snap there?
-Restart your PC, if things doesn't work 😛
Thanks
uday
0 Kudos
Message 9 of 12
(3,224 Views)

yes, I am able to grab or snap in MAX.

Is the problem in the VI, i mean, the closure of the camera?

 

Ill try restarting the PC, now.

 

Anyways, ty for your help =]

Att

Lucas Faquim
0 Kudos
Message 10 of 12
(3,219 Views)