LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I turn off compatibility with 7.1 when labview 8 converts my 7.1 code?

Hi,

I just loaded LV8 on my mac. It converted/compiled my app code to 8. While doing that, it changed many of my constants to hidden controls to maintain combabtibility with 7.1. I really don't care about 7.1 anymore. Is there a way to turn this off so I can re-compile the code and keep it the way it is?

Obviously, I am new to LV but I don't see a reason for keeping the compatibility with 7.1 if my lab is going to 8.

Any thoughs, comments, or critisims would be appreciated.

tarek316
0 Kudos
Message 1 of 7
(2,924 Views)

The particular issue you're talking about isn't necessarily "compatibility" with LabVIEW 7.1...it's actually ensuring that your VIs behave the same in 8.0 as they did in 7.1.  As described in that dialog box, a change was made in LabVIEW 8.0 regarding how VI diagrams are compiled in regards to Case Structures with cases that will never run.  If you are using case structures with constants wired to their selectors purely to keep VIs in memory at particular points in your code, then you should heed the advice given in the context help for the created control and use a Static VI Reference in your code instead of a subVI in a case structure.  If you are using case structures with constants wired to their selectors to comment out code, perhaps you should use the Diagram Disable structure instead.

-D 

Message 2 of 7
(2,919 Views)

I think Darren for his comments, they answered my problem on why I am getting these warning when converting to 8x.  There is one other aspect to this.  I use the case structure to keep my collection of vi’s in my current library when I do a build developer distribution.  These are vi’s that I know I will be using, but have not called them yet.  Otherwise they will be dropped out of the library when I do a rebuild.  I do this because all of my libraries will become executables and I don’t want any external changes happening to them if I was using common libraries.  Maybe someone has a better way to do this?  I’m new to 8x so maybe project will help with this problem.

0 Kudos
Message 3 of 7
(2,825 Views)
In LabVIEW 8.0 and later you should use Static VI References if you want to keep the subVIs in memory (but don't need to actually execute them) on a diagram.
 
-D
0 Kudos
Message 4 of 7
(2,807 Views)

Thanks Darren, but the issue is keeping them in the library, not in memory.  I don't care if they are in memory.  This is an interim issue that revolves around the way I build systems some times. 

 

I appreciate your time and support.

 

Steve

0 Kudos
Message 5 of 7
(2,796 Views)
Steve,

One way is to create a VI called All VIs. Any VI which will be put into your final program is placed on the diagram, but not wired to anything. Some of the instrument drivers do something like this.

Lynn
0 Kudos
Message 6 of 7
(2,791 Views)

Lynn,

Great idea, I'll start doing that instead of the case structure.

 

Thanks,

Steve

0 Kudos
Message 7 of 7
(2,782 Views)