LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -229771 after compiling VI in application builder

Solved!
Go to solution

Hello,

 

bevor I start testing the application on another computer I did the following steps.

 

The error causing "DAQmx create channel" call is located inside a subvi. I put this subvi into a new clean VI and compiled it as an application - no errors!

 

Compiling and running my main.vi, where the same subvi with the "DAQmx create channel" call ist located still results in the error -229771.

 

Any ideas about the behaviour?

 

Thanks and best regards,

Michael

0 Kudos
Message 11 of 29
(993 Views)

Sometimes you just got to get used to some workaround LabVIEW hackery and trickery to get around such issues.

I have to resort to a few of these "sub-vi" tricks myself.

 

The "hard" LabVIEW problems are usually ignored I have noticed. Smiley Indifferent

 

http://forums.ni.com/t5/LabVIEW/Compiler-Error-With-an-Overridden-Method/m-p/2180952#M700628

 

Br,

 

/Roger

 

0 Kudos
Message 12 of 29
(988 Views)

@MichaGue_01 wrote:

Hello,

 

bevor I start testing the application on another computer I did the following steps.

 

The error causing "DAQmx create channel" call is located inside a subvi. I put this subvi into a new clean VI and compiled it as an application - no errors!

 

Compiling and running my main.vi, where the same subvi with the "DAQmx create channel" call ist located still results in the error -229771.

 

Any ideas about the behaviour?

 

Thanks and best regards,

Michael


Can you narrow down the issue and how to reproduce and fix it (if possible), for helping your fellow LabVIEW brothers and sisters. Also attaching the offending code to the report. Then post it as a LabVIEW bug report.

 

Link the bug report thread here:

http://forums.ni.com/t5/BreakPoint/Monthly-Bugs-October-2012/m-p/2182524#M21144 (monthly bug thread)

 

Br,

 

/Roger

 

0 Kudos
Message 13 of 29
(981 Views)

Hello,

 

just to clarify my posting. I do not have problems wiht the compiler. The error -229771 appears while I run the compiled application.

 

The error causing "DAQmx create channel" call is located inside a subvi. I put this subvi into a new clean VI and compiled it as an application. With this application I do not get the error -229771.

 

Compiling my main.vi and running the application, where the same subvi with the "DAQmx create channel" call ist located, still results in the error -229771.

 

Any ideas about the behaviour?

 

Thanks and best regards,

Michael

0 Kudos
Message 14 of 29
(973 Views)

@MichaGue_01 wrote:

Hello,

 

bevor I start testing the application on another computer I did the following steps.

 

The error causing "DAQmx create channel" call is located inside a subvi. I put this subvi into a new clean VI and compiled it as an application - no errors!

 

Compiling and running my main.vi, where the same subvi with the "DAQmx create channel" call ist located still results in the error -229771.

 

Any ideas about the behaviour?

 

Thanks and best regards,

Michael


It seems to me like it could be some application/compiler issue when you have to create a subvi and put the code there for the error to dissapear?

 

Furthermore, the application you have built with the 8.21 version of LabVIEW works, right?

 

Br,

 

/Roger

 

0 Kudos
Message 15 of 29
(967 Views)

@User002 wrote:

It seems to me like it could be some application/compiler issue when you have to create a subvi and put the code there for the error to dissapear? 

But the DAQmx call is always in a subvi. Once the subvi is in my main programm, and the application does not work. On the other side the subvi is inside a clean vi and the application runs without any error.

 


RogerIsaksson wrote:

 

Furthermore, the application you have built with the 8.21 version of LabVIEW works, right?

 


That is right. The application, compiled with LabVIEW 8.2.1 works.


Michael

 

0 Kudos
Message 16 of 29
(962 Views)

Can you attach the code?

 

If it's too large for the silly 10MB forum limit, send it to erogisa@gmail.com

 

I can have a look at it tonight I'll try saving it as a LV2011 project and building an exe from there.

 

We'll see how it goes.

 

Br,

 

/Roger

 

0 Kudos
Message 17 of 29
(956 Views)

Attached, you will find the code (Resonanzmessplatz V1.9.9_LV2012_Code.zip). The LLB and the application compiled with LabVIEW 2012. The pdf shows where the error appears.

 

I do not have LabVIEW 2011. Could you please compile it and attach it, so I can test the LV2011 application tomorrow?

 

Thanks a lot and best regards,

Michael

Download All
0 Kudos
Message 18 of 29
(949 Views)

With LabVIEW 2012 compiled application

Resonanzmessplatz V1.9.9_LV2012_Application.zip

0 Kudos
Message 19 of 29
(946 Views)

Okay, here's a slightly modified program (i removed some possible race conditions) and built executable. Check so that my changes din't make any unwanted side-effects.

  

I also tried to uncheck some of the settings in the application build configuration, but then the exe's was over the 5MB(nutty!) limit.

 

So I suppose you can try that yourself?

 

Modify.JPG

 

Br,

 

/Roger

 

Message 1: LV2011 Build.

Download All
0 Kudos
Message 20 of 29
(933 Views)