Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Labview > Re: Enabling mu...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 54178 of 58664
Post > Topic >>

Re: Enabling multiple timed loops in successive frames of a flat

by Ravens Fan <x@[EMAIL PROTECTED] > May 12, 2008 at 11:40 PM

First, I would recommend reading up on the LV style guide.&nbsp; You have a
lot of right to left wiring that really creates some spaghetti code.&nbsp;
In your subVI's, the inputs should flow into the left side and the output
out the right side.&nbsp; Like wise for case structures.
&nbsp;
2 things could be causing your problems.&nbsp; One is using the Stop
function.&nbsp; That is the equivalent to using the abort button at the
top of LabVIEW.&nbsp; It brings all code to a screeching halt.&nbsp; It
should never be used on a block diagram.&nbsp; Using the abort timed loop
function is similar.&nbsp; Your are using that has a way to end your timed
loop rather than building your stop condition boolean logic properly.&nbsp;
(Note, good style puts the continue or stop terminal for a loop to the
lower right.&nbsp; It was hard to find that terminal since it was buried
in the middle of your loop.)&nbsp; Are you sure your second times loop is
not executing at least once?&nbsp; You have some very awkward boolean
logic structures combining together to your case structure that stops the
timed loop.&nbsp; Not Exclusive Or?&nbsp; In one leg of that, you are
"Not"ting an XOR of one boolean with a True constant.&nbsp; If I'm not
mistaken, that is like doing nothing to the original boolean value.&nbsp;
Perhaps the conditions that caused the first loop to stop are the same in
the second loop and not allowing the 2nd loop to finish.
&nbsp;
If you use your error wires carefully, it can control the execution of the
code and you won't need so many (if any) frames of the flat sequence
structure.)
 




 3 Posts in Topic:
Enabling multiple timed loops in successive frames of a flat
BSUENGR <x@[EMAIL PROT  2008-05-12 12:40:08 
Re: Enabling multiple timed loops in successive frames of a flat
MikeS81 <x@[EMAIL PROT  2008-05-12 13:10:06 
Re: Enabling multiple timed loops in successive frames of a flat
Ravens Fan <x@[EMAIL P  2008-05-12 23:40:05 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 16:33:05 CST 2008.