LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

AVI2 license issue

Solved!
Go to solution

Hi all,

 

I am using Labwindows/CVI 2017 to capture video and save them into a *.avi file. 

 

When I use the imaqCreateAVI and the imaqWriteAVIFrame functions, the program goes well and generate a movie.avi file. 

The code is:

aviSession = imaqCreateAVI("movie.avi", NULL, IMAQ_USE_DEFAULT_QUALITY, 30, 0);

imaqWriteAVIFrame (image, aviSession, NULL, 0);

 

However, I cannot open the saved movie.avi file with the Windows Media Player with the message "Windows Media Player cannot play the file. The Player might not support the file type or might not support the codec that was used to compress the file."

 

So I tried the AVI2 functions as:

avi2Session = imaqCreateAVI2("movie2.avi", NULL, IMAQ_USE_DEFAULT_QUALITY, 30);

imaqWriteAVIFrame2 (image, avi2Session);

 

but the following error occurred. 

NON-FATAL RUN-TIME ERROR: "FullSystem.c", line 84, col 27, thread id 5964: Function imaqCreateAVI2: (errorCode == -1074396157 [0xbff60403]). Unlicensed copy of NI Vision Development Module or NI Vision Runtime.

 

I am wondering if the AVI2 functions run on the same license as the AVI functions? Why I can use AVI functions but not AVI2 functions?

 

I have the full development system and the Vision Acquisition software licenses. 

Image 2.png

 

Any suggestions are appreciated. 

 

0 Kudos
Message 1 of 5
(2,922 Views)

I haven't heard of the imaqCreateAVI2 function. Where did you find this? A quick google search for that function doesn't bring up any results.

 

Vision Acquisition Software (VAS) is included in the Vision Development Module (VDM), so there's a chance that there's something in VDM that you're missing. You could download a trial version to see if it solves the issue. However, I suspect it might just be an issue with the function not being read properly rather than a licensing issue. 

Francine P.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 5
(2,879 Views)

Hi Francine,

 

Thank you for the reply. The imaqCreateAVI2 function is under the library tree NI Vision->File I/O and is defined in nivision.h. Please find below the two screenshots for the function. 

Image 1.pngImage 2.png

Here is a link about the AVI2 functions, but it is based on Labview, not LabWindows.

https://www.ni.com/en/support/documentation/supplemental/21/avi-codec-support-with-avi2-in-ni-vision...

 

I will try VDM and let you know the results. 

 

BTW, do you know why I cannot open the avi file generated by the imaqCreateAVI function with the Windows Media Player?

 

Thank you. 

 

Kind regards,

Sipei

 

0 Kudos
Message 3 of 5
(2,873 Views)

Thanks for the info! 

Can you try running a built-in example program that creates an AVI file, and see if you can play those files? If you search the keyword "AVI" in the Example Finder you can find relevant examples.

How large is the file? The IMAQ AVI VIs have a 2GB limitation in LabVIEW and I'd guess that the same is true for CVI.

 

Francine P.
Applications Engineering
National Instruments
0 Kudos
Message 4 of 5
(2,864 Views)
Solution
Accepted by topic author Sipei

This issue has been solved. 

 

The AVI2 functions are under the license of VDM, so we need to install the vision development module first. 

0 Kudos
Message 5 of 5
(2,827 Views)