LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Forum Rules

Please post topics into this forum that relate to specific features introduced in LabVIEW 8.x.x. The post will be moved to the appropriate forum if it does not meet this requirement. Your post may also be moved if it's deemed that it would fit better in another forum regardless. For example: LabVIEW OOP topics should go to the GOOP forum.


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> grab at high frame rates and save
dispossessed
post Jun 5 2008, 05:06 AM
Post #1


2 more posts to go!


Member
Posts: 8
Joined: 5-June 08
Member No.: 11687
Using LabVIEW Since:2008
LV:8.5 ,. ,.
Nothing Selected Nothing Selected Nothing Selected


Hi,

I need to take images continuously at high frame rates (~60fps) and then save these images on hard disk. I have no prior knowledge of how many images i will eventually be needing and i dont want to save the images in AVI format, but rather PNG.
I tried using buffers to store my images while the camera is still taking pics and then saving them on the hard disk when the camera has finished acquisition, however, the frame rate that the camera is acquiring images at seems to be always much lower than 60fps.

Does any one have an idea about how to take pics at 60fps and at the same time save them in PNG format?

PS: softwares im using are LABVIEW 8.5 and IMAQ.
Basler Camera A302b
PCI 1428




Thanks,
Leen

This post has been edited by dispossessed: Jun 5 2008, 05:15 AM


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Jun 5 2008, 05:06 AM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
crelf
post Jun 5 2008, 11:54 AM
Post #2


I'm a LAVA, not a fighter.
******

V I Engineering, Inc.
Posts: 3751
Joined: 13-October 03
From: Michigan, USA
Member No.: 181
Using LabVIEW Since:1993
LV:8.5 ,. ,.
Australia United States Nothing Selected My Blog


QUOTE (dispossessed @ Jun 5 2008, 12:06 AM) *
...however, the frame rate that the camera is acquiring images at seems to be always much lower than 60fps.

I've confirmed that your camera can acquire at 60fps. Can you please upload your code so we can see if there's anything in there that's causing the bottleneck?

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


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
dispossessed
post Jun 5 2008, 02:00 PM
Post #3


2 more posts to go!


Member
Posts: 8
Joined: 5-June 08
Member No.: 11687
Using LabVIEW Since:2008
LV:8.5 ,. ,.
Nothing Selected Nothing Selected Nothing Selected


QUOTE (crelf @ Jun 5 2008, 06:54 AM) *
I've confirmed that your camera can acquire at 60fps. Can you please upload your code so we can see if there's anything in there that's causing the bottleneck?




attached is the code that i was trying to modify. i found this code on one of the NI website pages.

Thanks,
Leen
Attached File(s)
Attached File  201020_1_.vi ( 53.5K ) Number of downloads: 127
 


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
bmoyer
post Jun 5 2008, 04:27 PM
Post #4


More Active
**

Member
Posts: 49
Joined: 10-May 06
From: 8619
Member No.: 4985
Using LabVIEW Since:1993
LV:8.5 ,8.2.1 ,7.1.1
United States Nothing Selected Nothing Selected


QUOTE (dispossessed @ Jun 5 2008, 10:00 AM) *
attached is the code that i was trying to modify. i found this code on one of the NI website pages.

Thanks,
Leen


Although not the worst example I've seen, it certainly is not the best. Try looking at the LL Sequence.vi found in LabVIEW under the Help-->Find Examples... menu. Click the Browse tab, and select the Directory Structure option. Then find the IMAQ folder and under this is the IMAQ Low Level.llb where you'll find the LL Sequence.vi. Add to this VI the PNG saving portion of your example.

As for not knowing how long you need to acquire, it is fairly difficult to allocate memory "on the fly" without losing frames and very complicated. The best thing to do it to is to allocate a lot of frames and then terminate the sequence by using the IMAQ Stop.vi (you'll have to have a parallel loop monitoring the abort button). In this parallel loop you can also monitor the progress by calling the IMAQ Status.vi to get the current frame.

In a nutshell, what you are trying to do is fairly complicated and may take a lot of time to develop.

Bruce

This question is also in the NI Forums at:

http://forums.ni.com/ni/board/message?boar...d=77174#M328986


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
MikaelH
post Jun 5 2008, 09:48 PM
Post #5


Very Active
***

Premium Member
Posts: 150
Joined: 1-November 04
From: Sydney
Member No.: 941
Using LabVIEW Since:1995
LV:8.5.1 ,8.6 ,.
Sweden Australia Nothing Selected


QUOTE (dispossessed @ Jun 5 2008, 03:06 PM) *
I need to take images continuously at high frame rates (~60fps)


...maybe you should look at GigE Vision:
GigE Vision: Under the Hood Video


[color="#800080"][/color]



--Mikael





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


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 




Time is now: 2nd December 2008 - 02:03 AM