LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LV crashes when I Create a subVI

I am a newbe with LabView, and I am working through some courses using the Student Edition.

Every time I mark everything on this simple vi (written to try to isolate what conditions are causing this problem) LabView does a complete crash and burn. This only happens when I am using a local variable, although I am not sure I have implemented it correctly.

Attached is the VI and the LabView error report.

Regards,
DerekS
Download All
0 Kudos
Message 1 of 4
(2,727 Views)
The control reference seems to be the problem. And it isn't crashing in LabVIEW 7.1, so it looks like it got fixed.

There are some workarounds, though:
(1) Don't use control references. If you need to remember state information, there are other ways of doing that, such as shift registers.
(2) Don't use the "Create SubVI" function. Just create a VI on your own.

HTH,
Lars
0 Kudos
Message 2 of 4
(2,727 Views)
Hi,

In your program there is no need of the sequence structure or even the local variable. I have attched a modified version of the vi that gives the same results as before but this one does not crash LabVIEW 7.0 when you try to create a subvi by highlighting. On another note, it is best if you create a subvi using the connector pane. Read on help for "creating Subvis from selection" on LabVIEW help to know what are the pitfalls when you create a subvi by highlighting.
0 Kudos
Message 3 of 4
(2,727 Views)
Thanks for the input. I have indeed found out that this is a 7.0 bug, which it sounds like has been fixed. I have found another way to implement the design I was looking for.

Cheers,
Derek
0 Kudos
Message 4 of 4
(2,727 Views)