Hi Folks,
I've started running into some instability in one of my projects, and I'm wondering if anyone else has encountered this. To summarize everything below, I've got what appears to be a corrupt FPGA VI reference that causes LabVIEW 8.5 to crash frequently. For the gory details, please read my five paragraph essay below (sorry it's so long).
I have a VI on my RT target that initializes an FPGA target, meaning it opens the reference, writes a control or two, and then runs the FPGA VI. I passed the FPGA VI ref out and used it later in the code. Eventually, I made this ref into a typedef so that I could easily update it throughout the code. Since I made the typedef, I've changed my RT app a lot, and now when I open the VI above where everything gets initialized, LabVIEW crashes. I also noticed this behavior in another subVI in my RT code - whenever I open the front panel or right click, LabVIEW "encounters a problem and needs to close." Unfortunately, I don't get a cpp file and line. The common factor seems to be the FPGA VI reference.
Okay, so I removed my typedef to see if that would help. I still get similar behavior - this time I right clicked the "open reference" node and clicked on "select VI" (there was already a VI selected - not from scratch.) This crashed LabVIEW immediately. Sometimes if I try to open the initializing VI from the project explorer, the same thing happens. If it's any help, the FPGA VI was compiled before, but isn't compiled now - I feel like that shouldn't matter in opening a reference, though.
The only way I successfully avoided the crashes was to open each VI that uses the FPGA VI ref outside of the project, remove the offending code (diagram disable didn't stop crashes), and make a stripped down version of everything for debugging the RT side. I'm thinking of just rewriting from scratch the parts of the code that access FPGA controls and methods next.
Lastly, I can't post my code on here (it's proprietary), but it's already uploaded to the NI FTP site for an unrelated support ticket. It's very possible that someone could check this firsthand.
Any thoughts or similar experiences?
Thanks in advance,
Jim