Jump to content

Bug with "Show Constant Folding"


ohiofudu

Recommended Posts

Original Post:

http://forums.ni.com/ni/board/message?boar...2&jump=true

The attached picture shows where the problem is : LV thinks that the inside nested loop generates a constant. The vi must be run twice to generate a proper result. The first run always generates an array with a column number corresponding to the previous value of Numeric Workaround : carefull with the new show option (16x16_smiley-sad.gif) and wait for the next version... 16x16_smiley-wink.gif

Bug%20Show%20Constant%20Folding.png

Link to comment

In LabVIEW 8.20 Help:

Performance Optimized with ConstantsLabVIEW uses constant folding to optimize the performance of VIs. With constant folding, LabVIEW stores constant values when it compiles VIs instead of calculating them at run time. For constants wired to structures, LabVIEW calculates the output values of the structures when it compiles VIs and stores the values so they are available at run time.

You can display constant folding hash marks on the block diagram by selecting Tools

Link to comment
In LabVIEW 8.20 Help:

Michael,

Thank you so munch for taking the pain to explain what is going on....Now I know how LabVIEW handle constants .I have not upgraded yet to 8.20 I am still with my Good old 7.1 pro at home and 8.0.1 in the office I will be upgrading soon.

once more Thanks.

Ohiofudu.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.