Michael Aivaliotis Posted September 3, 2006 Report Share Posted September 3, 2006 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 () and wait for the next version... Quote Link to comment
ohiofudu Posted September 3, 2006 Author Report Share Posted September 3, 2006 Original Post:http://forums.ni.com/ni/board/message?boar...2&jump=true Hi Michael, I made the same VI in 7.1 pro I did not see any thing wrong with the code or I am wrong???I tried to followup from the original post but I dont quite understand what the bug is.Can you please share some more light???. ohiofudu. Quote Link to comment
Michael Aivaliotis Posted September 3, 2006 Report Share Posted September 3, 2006 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 Quote Link to comment
ohiofudu Posted September 3, 2006 Author Report Share Posted September 3, 2006 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. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.