10-11-2012 12:56 AM
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
10-11-2012 01:13 AM
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.
http://forums.ni.com/t5/LabVIEW/Compiler-Error-With-an-Overridden-Method/m-p/2180952#M700628
Br,
/Roger
10-11-2012 02:52 AM - edited 10-11-2012 02:53 AM
@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
10-11-2012 04:29 AM
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
10-11-2012 04:46 AM
@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
10-11-2012 04:55 AM
@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
10-11-2012 05:25 AM
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
10-11-2012 07:02 AM
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
10-11-2012 07:05 AM
With LabVIEW 2012 compiled application
Resonanzmessplatz V1.9.9_LV2012_Application.zip
10-11-2012 09:53 AM
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?
Br,
/Roger
Message 1: LV2011 Build.