LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Compiling "write to jpg\bmp\png file" in Labview2011

Hello everyone,

 

I'm trying to compile a source code written in Labview 8.5 into Labview 2011.

 

In the old source code I used the "write BMP/JPG/PNG file" VIs.

I noticed that these VIs have changed in Labview 2011.

Either way (using the old or new VIs) I get an error (#1003 - Vi is not executable) when I try to run my compiled .exe file.

 

Did anyone encounter this problem?

Do you have any idea how to bypass this problem?

 

Thanks in advance.

 

0 Kudos
Message 1 of 22
(2,477 Views)

That does not sound right. Does the target computer have the correct run time engine installed?

 

LabVIEW code is always compiled, even if a VI is run in the development system. I assume your code runs fine before building the executable. Is this correct?

0 Kudos
Message 2 of 22
(2,476 Views)

Hello Altenbach,

 

As you assumed, my code does run before building the exceutable.

 

I have LABVIEW 2011 Runtime engine installed.

I even reinstalled it, but the problem still remains.

 

Looks like I'm missing something...

0 Kudos
Message 3 of 22
(2,452 Views)

Mentos wrote:

I have LABVIEW 2011 Runtime engine installed.

I even reinstalled it, but the problem still remains.


Could it be you only installed the minimum run time engine (~32MB)? You definitely need the std (~210MB).

0 Kudos
Message 4 of 22
(2,449 Views)

I have LVRTE2011f3std.exe which is ~210MB.

 

Might it be some kind of collision between the old and new vi's (with the same name) I may have in my source code?

0 Kudos
Message 5 of 22
(2,444 Views)

Could it be an inappropriate license?

(I have the Professional Development System license installed)

0 Kudos
Message 6 of 22
(2,424 Views)

You don't need a license for the LabVIEW run time engine, and this includes things from the "Graphics Formats" palette.

 

Are you using anything from the vision module? In this case you may need this.

0 Kudos
Message 7 of 22
(2,415 Views)

Hi Altenbach,

 

a) I'm not using anything from the vision module.

 

b) The probloem looks a bit wider:

In order for my built application to open I need to disable in the source code (before compiling) 3 different groups of VIs:

    1) VI's from the Graphics & sound palette (such as Write to BMP file.vi etc.)

    2) Math functions, such as vi.lib\Analysis\2dsp.llb\Y[i]=X[i-n].vi or vi.lib\Analysis\2dsp.llb\Unwrap Phase.vi

    3) Some file Vis - Read From Spreadsheet File.vi and File Dialog.vi

 

Any idea what am I missing?

 

 

0 Kudos
Message 8 of 22
(2,386 Views)

Does the executable work on the machine used to build the application?

Have you tried reinstalling the run tim engine?

0 Kudos
Message 9 of 22
(2,382 Views)

1) Yes, The same PC is used to compile the source code and then check the application. The problem repeats itself on other PCs but all have LABVIEW and source code installed.

 

2) Yes, I reinstalled the Labview 2011 runtime engine. No change

0 Kudos
Message 10 of 22
(2,378 Views)