08-28-2019 10:07 AM
Hi,
So run the avi codec compression vi. to see what codecs I could use to compress my .avi file. My understanding is to use s string of the codec name to the codec name on the create .avi function. However, when I do that for any of the codecs shown below, I get an error saying unknown codec, anyone know how to fix this?
08-28-2019 11:13 AM
That avi codec compression vi does it show raw names?
Try to use Imaq avi get codec names (http://www.ni.com/tutorial/14466/en/) and index element.
Open that example, check how they are doing, if there are differencies. It should work - example is writing to avi.
08-28-2019 11:33 AM
Hey Alexander,
So I run the Get AVI Codec Names and still ended up with the same names as before save 2. I tried them but still unknown error with unknown codec name.
08-28-2019 03:25 PM
I always use "Motion JPEG (NI VISION)", and it always works for me. What version of LabVIEW do you have? What version of the Vision Development Module and the Vision Acquisition Software do you have? Are they activated? [Oops, if you can get the list of Codecs, then you must be using Vision Software ...[
Bob Schor
08-28-2019 05:00 PM
Hey there Bob,
When you say you use "Motion JPEG (NI VISION)", you mean you literally connect that as a string to the Compression Filter terminal of the .avi create function like attached, correct? I have 2019 version of LabVIEW, and I am pretty sure I have the latest version of the Development module (not sure how to check for that). I tried the Motion JPEG (NI VISION) but didn't work either BTW; it threw me an unknown codec error like the one I showed before.
08-28-2019 07:27 PM
You have provide only limited pictures (there's so much more information available to us to help you if you attach your VI or the entire Project, zipped up by compressing the folder containing all the VIs) of your code, plus no information about the camera nor a screen shot of MAX showing (a) the Devices and Interfaces, and (b) the Software (including IMAQdx and related Vision software).
Well, this "picture" is from code that works very well with an AXIS camera (certified to work with IMAQdx).Opening an AVI
Your code doesn't work. It is either "hardware", "software", or you forgot to plug it in. If you cannot provide more information to help us understand why it doesn't work for you, then I'd advise you to hire a LabVIEW expert with experience in NI Vision to come to your site and provide the help you need.
Bob Schor
08-28-2019 08:22 PM
Hey Bob,
I attached the VI I am currently working on, as of now I am using my Microsoft surface's camera, I will use a different camera later as the project nears completion. I am fairly new to posting on these forums and using the Vision Development module so please forgive my shortcomings. I believe I using the 2019 version of the Vision Software. Please let me know if you have any other questions to clarify things up. Thanks!
08-29-2019 08:40 AM
Thank you for attaching your VI. It has a whole lot of errors that make it not work. I am pasting a Snippet of working code in LabVIEW 2018, as well at attaching the LabVIEW 2018 version. I've been trying for many months to get LabVIEW 2019 installed (without killing my earlier versions), and only have it working on my home laptop (I'm currently at work -- I'll have to test at home this evening), but there's a possibility that IMAQdx doesn't work in LabVIEW 2019.
Here's the Code That Works. I'll go through the numerous changes I made.BS Image and Storage
I believe this "solves" your posted question, and maybe provides some useful "Style" tips for writing LabVIEW code. It is also extremely important when dealing with Strings to get the spelling, the spacing, and the capitalization exactly right. [Why NI doesn't provide Enums for the Codecs, I don't quite understand ...].
Bob Schor