03-14-2010 03:48 PM
hello. i'm new to forums and hope i don't leave out too much about the problem. but from what i've read through, i'll post what i hope is helpful to get a basic intro on the situation.
i'm using labview 8.6 on a macbook pro (i can give out specs if necessary). i've been working on a VI that simulates low count fluorescence lifetime imaging to aide a previous professor of mine in my masters thesis work. i've since graduated, but am still looking to continue this work because i feel it would be helpful to the university and gives me more practice with various programming methods, currently monte carlo simulations.
that being said, i had a working simulation running not long ago. i use the call library function node to input C libraries which i create in Xcode. i have and use the CIN 8.5 plugin to ensure labview reads the file correctly. and that has been the case for a while. i modify the files, add the new parameters, select the function name, and run the program.
then recently everything stopped working. and for the life of me, i cannot seem to figure out why. i added a new library function node to the VI (bringing the total count to 4), added the parameters, and it crashed when i ran it. there was nothing done differently between that library function call and any other, so it confuses me. the one thing that stood out was that the function name, which usually comes up in the drop list, didn't show up and i had to manually add it. the code was set up identically to the others already working in the VI, so i tried to debug it for memory allocation faults or uninitiated arrays. i found nothing, so i modified it to do nothing complex, just output one number. it still didn't work. thinking maybe it is just that particular library function, i took the code and inserted it into one of the existing library function nodes, compiled it, and tried to run the program. once again, it crashed. i've noticed that now all of my library nodes, in the .bundle format, cannot find their associated function names when i specify their paths. the only thing i can think that i did between when the library nodes worked and stopped working was start to mess around with trying to write an iPhone application using the simulator and some practice files to see how everything worked. i don't see how that could affect it, but it's worth pointing out. i should probably note that when i compile and build my libraries, i use Mac OS X 10.6 as the active SDK, Devopment as the active configuration, and i386 as the active architecture. this is the same setup i've used for all codes.
i hope this is enough to at least get started on some sort of solution. if anything else needs to be known, please ask and i'll clear up what i can. i've attached the crash report that i get when i try to run the program in case that helps at all.
thank you,
justin
03-15-2010 02:34 PM
Hi Justin,
Thanks for posting. So just to clarify, when you added the new library function node to the VI, LabVIEW crashed. When you added this code to one of the existing library function nodes, it still crashes correct?
If you revert back to the original code (without this new library function node or without this code in an existing node), does it still crash or are you able to run again?
03-15-2010 07:23 PM
yes, that is correct that it crashes with the new code when i have both made it a separate library function node and when i incorporated it into an existing code. the odd thing is that it actually seems to work now. i believe that i was using the wrong environment to call the new codes, which is why whenever i tried to revert to the original code previously, it still crashed. it seems that in order to be called, i need to use Deployment rather than Development and ppc instead of i386 in the active configuration and architecture in Xcode, respectively. while playing around with the iphone app, it must have reset my defaults to a non-labview friendly form. so now that i've got that part of the code working, i need to find out why it's still crashing on me. at first, i thought it must be the random number generator, but testing that separately in the code works just fine, so there must be something internal in the code. probably a memory allocation fault. but now that i can actually get everything running once more, i should be able to sort that issue out myself.
thank you very much for the help. sorry i didn't actually have anything to fix, unfortunately. i'm going to spend some time trying to debug this section of code to find where the fault lays. i may come back if i cannot find it in there, but hopefully it will not come to that.
take care and many thanks,
justin