LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 1050 while saving image/video from matlab script

Hi,

I am developing an application to generate videos from iteratively generated images. The application is intended for free distribution to the scientific commnunity.

 

I initially used the Vision Development Package, but I recently realized that I couldn't distribute the application because every final user shoud buy a VDP license to use the VDM Runtime engine (while the LV Runtime engine is free to use).

 

So I was obliged to use a matlab script to generate the video.

 

The problem now is that I get the following error when I run the VI:

 

"Error 1050 occurred at LabVIEW: Error occurred while executing script. Error message from server: ??? Cannot create file path. Permission Denied"

 

It seems it is because Matlab should be opened as administrator and it is not whan called within LV (I get the same error If I run the matlab script directly in matlab without administrator privileges).

 

Any suggestion?

 

thank you in advance

 

Fabio

 

0 Kudos
Message 1 of 5
(119 Views)

Don’t try to generate the images in a protected directory maybe?

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 5
(84 Views)

Hi,

I want to distribute freely to the scientific community an executable generating image and video files.

I knew that the LV runtime is for free and I planned to distibute an installer embedding the LV runtime.

I started using the Vision Development Module, but later realized that the use of the VDM runtime is not for free (every user must have a license) and the users could not use the application (application running, but no images or video shown in the application display)

Then I moved to matlab scipt, but then I realized that there is still same problem, this time with matlab license.

 

Is there any way I can distrubute for free such an application? I read some documents talking about generating dlls. Any ideas?

 

thank you in advance

 

0 Kudos
Message 3 of 5
(79 Views)

There have been many commercial and open source attempts at providing a LabVIEW library for image acquisition and processing. Most were based on OpenCV as backend. And almost all of them have been sooner or later abandoned.

Creating such a library is very complex and time consuming and is one of the more advanced methods to test a programmers knowledge of low level programming and memory management.

Trying to sell such a library has consistently failed since most users do not feel like paying for a toolkit library based on an Open Source library and giving it away for free always fails because this is not a project of a few weeks but a much longer one and it requires continuous attention even after the first “Look mom it works!” moment. But for free projects the initial motivation to do it usually fades after it is shown that it starts to work. Except that you have maybe reached 50 % of the functionality needed for it to be a useful library for people who don’t know themselves about how to hack in the depths of C programming (most LabVIEW users really) but those remaining 50% of functionality require a magnitude more work than what was done until then.-> Instant motivation breakdown!

 

And then there is always the additional requirement for proper documentation! I have many libraries on my NAS that could actually be very interesting for other people but that are virtually undocumented and to difficult to use for others without such documentation. And giving them away totally for free also feels somewhat difficult. There are hours and hours of work and sweat put in and usually a trick or two that use unofficial LabVIEW manager functions that could potentially break with every new LabVIEW release (but so far almost never has, and some of those libraries are 20 years old and more. One is even almost 30 years old!)

Rolf Kalbermatter
My Blog
0 Kudos
Message 4 of 5
(68 Views)

I stumbled into this discussion.

Does anyone knows if it can be a solution to my problem? 

 

Integrate LabVIEW and MathWorks, Inc. MATLAB® Code Without MATLAB® License - NI

 

Could it be done with the VDM as well?

0 Kudos
Message 5 of 5
(55 Views)