10-01-2013 04:08 PM
Dear LabVIEW community!
Most of you, I’m sure, know and use in LabVIEW 2012 such useful and helpful feature as conditional terminal in For Loop (see it on the picture below).
But if one saves such code in previous versions of LabVIEW, then we see, that code has different look (VI Snippet was made in LV 2012, so don’t be confused – it is really code in LV 2011).
The same algorithm is made by using case structure and shift register. But the problem is that this shift register is uninitialized (1) (we have some constant (2) on the block diagram after saving file in previous version, but it is wrong constant for our case), and you know, that it can cause unexpected behavior of the program. So, if you have to convert such a code to previous versions of LabVIEW, don’t forget to check it, and initialize that shift registers.
Solved! Go to Solution.
10-01-2013 04:27 PM
Wow! I had no idea this little "conditional terminal" existed. I've been doing Example B all this time, and it sometimes really causes my BDs to elongate. I don't know about you, but my programming always to contain the best examples of "The drawing will fill the space available - and then some." Now, I'll get to stick in one or two more bits before I hit the right-hand wall. Thanks.
Cameron
10-01-2013 04:39 PM
What specific version of 2012 are you using?
This works properly for me in 2012 SP1 f4.
10-01-2013 04:55 PM
I use LabVIEW 2012 (32-bit) f5. Maybe, really, it is a reason of such behaviour?
10-01-2013 05:29 PM
Yea, it looks to me like this was fixed in 2012 SP1.
10-01-2013 05:31 PM
Thank you! Now it's clear for me.