From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-28-2011 12:51 AM
Though I found LabVIEW very interesting , still some of its basic fundamentals are not clear, like using comparison operators (>,<,..) for solving different
mathematical expressions. Please give example showing how to use such operators in advanced mathematical problems.
Best Regards,
Allawi
05-28-2011 03:23 AM
Open the example finder (help...find examples) and look e.g. at the example named "Greater - Various uses.vi"
Please aks again if anything is not clear.
05-28-2011 10:44 AM
The Greater-Various Uses.vi example shows how the function operating with different types of data. What I am looking for is how to use such functions
in selecting different mathematical expressions i.e..(working like logical if statement).
05-28-2011 10:58 AM
@allawi1 wrote:
What I am looking for is how to use such functions in selecting different mathematical expressions i.e..(working like logical if statement).
You need to be more specific. A comparison operation IS like a logical IF statement and the result is either TRUE or FALSE.
What do you mean by a "mathematical expression"? What do you mean by "different"? Can you give an illustrative example?
If two alternative mathematical expressions should depend on the comparison, wire the comparison output to a case structure and place the two different expressions in their own case, for example.
05-30-2011 10:30 AM
The following is what I mean:-
If X >= CONSTANT then solve EQUATION 1 else solve EQUATION 2.
Please construct a block diagram for this simple IF "logical" statement using comparisons functions.
Thanks.
05-30-2011 10:58 AM
Have you worked through the on-line tutorials for LabVIEW? Your question is very elementary and should be covered by those tutorials.
Lynn