Vende Posted February 5, 2009 Report Share Posted February 5, 2009 Hi, I have a little problem with IMAQdx blocks and saving to AVI. I wanted to make a circuit for grabbing and saving to AVI from the example - Grab and Save to AVI.vi. It is allright, but I a need to replace IMAQ blocks with IMAQdx. When I do it, it looks well, the grabbing is functional, but there is a problem with saving to AVI. I cannot get Image Type property from IMAQdx first block, so an error occures - Invalid Image Type. When I connect an image type constant (Grayscale, RGB,...) to IMAQ Create block, the problem is the same! What to do with this? How to adjust left side correctly? Thanks. Quote Link to comment
crelf Posted February 5, 2009 Report Share Posted February 5, 2009 Show us your code. Quote Link to comment
Vende Posted February 6, 2009 Author Report Share Posted February 6, 2009 QUOTE (crelf @ Feb 4 2009, 07:03 PM) Show us your code. Hi, here it is. http://lavag.org/old_files/monthly_02_2009/post-14635-1233827454.gif' target="_blank"> Quote Link to comment
Vende Posted February 6, 2009 Author Report Share Posted February 6, 2009 QUOTE (Vende @ Feb 5 2009, 10:51 AM) Hi, here it is. http://lavag.org/old_files/monthly_02_2009/post-14635-1233827454.gif' target="_blank"> The problem is solved! The problem was in camera mode, I had to choose the right mode to has valid image to avi. Quote Link to comment
bmoyer Posted February 6, 2009 Report Share Posted February 6, 2009 QUOTE (Vende @ Feb 5 2009, 07:58 AM) The problem is solved! The problem was in camera mode, I had to choose the right mode to has valid image to avi. Or you need to down-convert your Image Refs to the proper format before storing to AVI (it can only handle U8 grayscale or 32-bit RGB images). Bruce Quote Link to comment
Vende Posted February 6, 2009 Author Report Share Posted February 6, 2009 QUOTE (bmoyer @ Feb 5 2009, 02:15 PM) Or you need to down-convert your Image Refs to the proper format before storing to AVI (it can only handle U8 grayscale or 32-bit RGB images).Bruce Yes, you are right. Can you tell me how to do it and what to use? Thanks Quote Link to comment
bmoyer Posted February 6, 2009 Report Share Posted February 6, 2009 QUOTE (Vende @ Feb 5 2009, 09:50 AM) Yes, you are right. Can you tell me how to do it and what to use? Thanks If you are using NI-VISION then you can use the IMAQ Cast Image.vi. You probably don't want to modify the existing Image Ref, in that case you need to wire in a new Image Ref to the Image Dst input of this VI. Bruce Quote Link to comment
Francois Normandin Posted February 6, 2009 Report Share Posted February 6, 2009 QUOTE (Vende @ Feb 5 2009, 09:50 AM) Yes, you are right. Can you tell me how to do it and what to use? Thanks On your IMAQ Create VI, you've selected Image Type = Grayscale (SGL). Change it to Grayscale (U8) or RGB (U32). Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.