LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Coersian dot on "Stop if True"

Solved!
Go to solution

@danil33 wrote:

You can add a conditional terminal to configure a For Loop to stop when a condition occurs. A For Loop with a conditional terminal executes until the condition occurs or until all iterations complete, whichever happens first. For example, if you want a loop to execute a set number of times unless an error occurs, you can use a For Loop with a conditional terminal and wire an error cluster to the conditional terminal.

            If you wire the conditional terminal in a For Loop, you cannot predetermine the number of iterations the loop executes. You can determine the number of iterations the loop completes by auto-indexing an output array and checking the number of elements after the loop executes or by wiring an indicator to the loop iteration terminal and checking the count after the loop executes.The number wired to the count terminal or the number of elements in the auto-indexed input array acts as the maximum number of loop iterations that complete if the condition wired to the conditional terminal never occurs. If you want a loop to iterate until a condition occurs with no maximum number of iterations, use a While Loop instead.

 

If the conditional terminal of a While Loop, a For Loop, or a (Windows, ETS, Vxworks) Timed Loop is Continue if True , the loop executes its subdiagram until the conditional terminal receives a FALSE value. If the conditional terminal is Stop if True , the loop executes its subdiagram until the conditional terminal receives a TRUE value.

 


Hello danil33,

 

   what is the relation with the question and your statement?. Am trying to give you suggestions not to make things complex and I am giving you feedback very politely so try to post answers only to the question and also directly. I am not sure how you will recieve feedback from Knights.

 

Co-ercian dots will not harm your performance much depending on its usage. When you are using Tydef its obvious that the normal boolean and the type defined boolean data types are slightly different.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 11 of 15
(588 Views)

So...sorry.I just tried to post a link.Meanwhile I can't edit that post.SORRY.Smiley Sad

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 12 of 15
(582 Views)

@P Anand wrote:

@danil33 wrote:

You can add a conditional terminal to configure a For Loop to stop when a condition occurs. A For Loop with a conditional terminal executes until the condition occurs or until all iterations complete, whichever happens first. For example, if you want a loop to execute a set number of times unless an error occurs, you can use a For Loop with a conditional terminal and wire an error cluster to the conditional terminal.

            If you wire the conditional terminal in a For Loop, you cannot predetermine the number of iterations the loop executes. You can determine the number of iterations the loop completes by auto-indexing an output array and checking the number of elements after the loop executes or by wiring an indicator to the loop iteration terminal and checking the count after the loop executes.The number wired to the count terminal or the number of elements in the auto-indexed input array acts as the maximum number of loop iterations that complete if the condition wired to the conditional terminal never occurs. If you want a loop to iterate until a condition occurs with no maximum number of iterations, use a While Loop instead.

 

If the conditional terminal of a While Loop, a For Loop, or a (Windows, ETS, Vxworks) Timed Loop is Continue if True , the loop executes its subdiagram until the conditional terminal receives a FALSE value. If the conditional terminal is Stop if True , the loop executes its subdiagram until the conditional terminal receives a TRUE value.

 


Hello danil33,

 

   what is the relation with the question and your statement?. Am trying to give you suggestions not to make things complex and I am giving you feedback very politely so try to post answers only to the question and also directly. I am not sure how you will recieve feedback from Knights.

 

Co-ercian dots will not harm your performance much depending on its usage. When you are using Tydef its obvious that the normal boolean and the type defined boolean data types are slightly different.


P Anand: It is just a copy/paste from the help manual. There is nothing new there.

 

danil33: don't just copy/paste from the help manual without any other explanation from your side. And it is ok if you don't have an answer, then just don't post anything.

0 Kudos
Message 13 of 15
(571 Views)

@P Anand wrote:

@danil33 wrote:

You can add a conditional terminal to configure a For Loop to stop when a condition occurs. A For Loop with a conditional terminal executes until the condition occurs or until all iterations complete, whichever happens first. For example, if you want a loop to execute a set number of times unless an error occurs, you can use a For Loop with a conditional terminal and wire an error cluster to the conditional terminal.

            If you wire the conditional terminal in a For Loop, you cannot predetermine the number of iterations the loop executes. You can determine the number of iterations the loop completes by auto-indexing an output array and checking the number of elements after the loop executes or by wiring an indicator to the loop iteration terminal and checking the count after the loop executes.The number wired to the count terminal or the number of elements in the auto-indexed input array acts as the maximum number of loop iterations that complete if the condition wired to the conditional terminal never occurs. If you want a loop to iterate until a condition occurs with no maximum number of iterations, use a While Loop instead.

 

If the conditional terminal of a While Loop, a For Loop, or a (Windows, ETS, Vxworks) Timed Loop is Continue if True , the loop executes its subdiagram until the conditional terminal receives a FALSE value. If the conditional terminal is Stop if True , the loop executes its subdiagram until the conditional terminal receives a TRUE value.

 


Hello danil33,

 

   what is the relation with the question and your statement?. Am trying to give you suggestions not to make things complex and I am giving you feedback very politely so try to post answers only to the question and also directly. I am not sure how you will recieve feedback from Knights.


I haven't a clue what the point of that post was, either.

0 Kudos
Message 14 of 15
(568 Views)

@danil33 wrote:

It is almost impossible to avoid coercion dots in the latest versions of LabVIEW ...


You make this sound like coercion dots are evil. They are simply notifications. And what do you mean by "impossible to avoid"? And as far as this being limited to the current version of LabVIEW, I fail to see where you came up with that conclusion. The issue sited by the original message has existed for a long time.

 


... as a typedef is now viewed as different than its underlying type.

What do you mean by "different"? A numeric typedef is still a numeric.

 


@danil33 wrote:

They also alert you that your chose datatype may not be optimal or appropriate for a certain function.


That is an incorrect statement with respect to "optimal" or "appropriate". Coercion dots have nothing to do with "optimal" or "appropriateness".

 


It is always best to avoid coercions/conversions.

That is simply not true. You cannot state this as an absolute rule. Just because there's a coercion dot there doesn't mean it's bad. Sometimes it's completely irrelevant. And sometimes it's exactly what you want.

 


Choose a proper data type from the beginning if at all possible.

This, at least, I can agree with.

0 Kudos
Message 15 of 15
(563 Views)