LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Crash when opening Block Diagram

I am converting a Windows .dll based program to an event driven state machine using my Mac (LV2010) as a development computer.  The final program will run in the development environment on a Windows computer.  When I reach a certain point in the conversion process, the VI will crash LV while trying to open the block diagram.  The VI is broken and always has been because of the .dll and possibly because of some bad wires.  I tried rebuilding the VI from scratch and the same thing happened again.  I can open the diagrams of the subVIs with the CLFN calls.  The .dll file is present on the same directory as the VIs.

 

Clues: 1. I have had this happen when first opening the BD after restarting LV.  Maybe this means I need to work all night and finish everything before shutting down LV??

2. I started with an example VI and was modifying it to include the state machine.  Maybe I should build a state machine VI and then add in the camera-specific parts later.

 

I am attaching a zip file with the VI "testNewCamera.3.vi" and various subVIs, typedefed controls and the .dll.  I am also attaching the crash log file.

 

This has now cost me too many man-hours so I am looking for suggestions.

 

I am going to save several interim versions the next time I restart this process.

 

Thanks,

 

Lynn

Download All
0 Kudos
Message 1 of 5
(3,103 Views)

LV will crash when I use the wrong calling convension (Windows vs the the other one).

 

Since you can't open the diagram to fix it, the best I can offer is to re-write working from an old version.

 

That is all I can offer.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 5
(3,095 Views)

Hi,

 

The first thing I try to do when I get a VI (FP or BD) corruption/ issue when opening / crash / whatever...is to mass compile all the VIs I have. Sometimes it works, sometimes not.

 

I was able to open the BD of TestNewCamera3.vi but I am missing a lot of IMAQ VIs and LabVIEW is telling me that a DLL is missing (maybe it is what is causing the crash in your case).

 

imaq.png

 

png.PNG

 

I join the files saved on my computer, maybe you could use it.

 

Regards,

Da Helmut
Voir le profil de Maxime M. sur LinkedIn - View Maxime M.'s profile on LinkedIn
0 Kudos
Message 3 of 5
(3,093 Views)

Thanks.

 

I suspect that the missing .dll is from the IMAQ VIs.  Those will all be removed in the final version.

 

I do not get any error messages.  A blank BD window opens, the beach ball spins for a few seconds and LV crashes.

 

When I shut down LV the last time everything was OK, I saved the VI (broken, not runnable).  Next time I open LV the crash occurs.

 

I'll try the suggestions and let everyone know what I find.

 

Lynn

0 Kudos
Message 4 of 5
(3,073 Views)

Helmut,

 

Very interesting.  I tried opening your copy and got the same crash.  I also tried mass compiling.  I got a bunch of "bad VI" errors, so I suspect that the mass compile did not help.

 

Then I opened the front panel only (of my original) and saved it for previous version (9).  When I try to open the BD of that file in LV 2010, it crashes.  However, I can open and edit it in LV2009.  I can shut down LV and bring it up again and still open the VI BD.  I can also open in LV 2010 the BD of teh VI I edited in LV 2009.

 

Thanks for your comments and suggestions.

 

Lynn

0 Kudos
Message 5 of 5
(3,055 Views)