NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make locals are as integer in teststand

Solved!
Go to solution

 Hello Friends

 

            I m new to the Teststand .I have interest to learn Test stand and i know LabVIEW Somwhat.I have to initialise the locals as an integer and it pass to another locals its a real integer .It takes that value is in floating value.For example i m dividing one number ie 53/10.The result should 5.3 but i need only the integer as 5 only.But i get when i changed the format in locals but it pass to another real integer loclas it shows as 5.3 value.How to convert it. 

Jayavel
0 Kudos
Message 1 of 4
(5,211 Views)
Solution
Accepted by topic author Jai2K12

First TestStand only supports a single numeric data type and that is a float.

So you can't convert it to an integer in TestStand, but you can round the number to a whole number integer.

 

Round(53/10,0)

 

Number Round(Number number, Number option = 0)
This function rounds a number to an integer.
Parameter 1: The number to round.
Parameter 2: An optional parameter: how to round.
    Pass 0 to rounds towards zero (the default).
    Pass 1 to round away from zero.
    Pass 2 to round towards positive infinity.
    Pass 3 to round towards negative infinity.
    Pass 4 to round to the nearest integer. If the number is exactly between two numbers, rounds to the nearest even integer.
Returns:     The rounded number.

 

 

Omar

Omar
0 Kudos
Message 2 of 4
(5,208 Views)

Hello Omar

        Thanks for ur reply Omar.But i need one example its easy to understand the concept ..

 

Jayavel
0 Kudos
Message 3 of 4
(5,187 Views)

Hello Omar,

  

   I got the answer thanks for ut reply omar... 

Jayavel
0 Kudos
Message 4 of 4
(5,185 Views)