Arithmatic Equation - How to change decimal point ?

Dear all,
I am very new to LabView. I am currently using LabView 7.1 for my project.
I am building a voltmeter reader. (attached is the vi file). The flow should be like, i am reading voltage from I/O card. Then, the voltage value (eq. 10 volt) is changed to percentage (for example 91%). I am using simple arithmatic icon (multiply and division). Then, these value will be written to a file (eq. voltage1.lvm).
The output file is something like this :     

Here is one function called "Format into File" that has it.  It is located to the top of the VI function block.  Other file I/O VI's have it has well.  If you right click on the function and select Edit Format String, it will pop up with a dialog box to help you create the format specifier.
Message Edited by Ravens Fan on 05-12-2008 11:38 PM
Attachments:
Example_VI_BD6.png ‏1 KB

Similar Messages

  • How to change decimal point in Rotate Tool.

    Hi,
    I use the rotate tool to design gauges, like clocks, a lot. I hold the ALT button and click on the center of my drawing and then a window pops up to enter in what degree I want my object to be. Currently the decimal point only allows for hundredths, ex. 45.25 degrees. Is there any way to change this to thousandths or even higher, ex. 45.25125? I've attached a screenshot to show you what I mean.
    Any help would be appreciated!
    Thanks,
    Laura

    Laura Belle,
    When you enter the full decimal value, that should give you the right rotation whatever the truncated value is.
    At least I hope that is still the case in your version.
    You may test it as follows:
    1) Create a square with W = H = 100;
    2) Rotate thrice, each time inserting 33.333333 degrees, then rotate by -100 degrees;
    3) Look at the W and H values;
    4) Repeat 1) - 3), only with 33.33 degrees and see what you get.
    You should get W = H = 100 in 3) and  something like 100.017 to 100.018 in 4).

  • Change decimal point

    Hi!
    How to change decimal point to '.' or ',' ,and how to do this only for current schema, session or user.
    Thanks in advance.

    Decimal separator is an NLS setting. By default it is determined by the value of your NLS_TERRITORY but it is easy enough to override...
    SQL> SELECT 0.98 FROM dual
      2  /
          0.98
           .98
    SQL> ALTER SESSION SET NLS_NUMERIC_CHARACTERS = ",."
      2  /
    Session altered.
    SQL> SELECT 0.98 FROM dual
      2  /
          0.98
           ,98
    SQL> Cheers, APC

  • How to change access point name

    Need to know how to change access point name for straight talk on iPhone 4

    There are several other threads here about doing this, or you can look up the "sim swap" method, documented here: http://www.jgmedia.biz/how-to-get-data-and-mms-working-on-straight-talk-iphone-4 -and-iphone-4s-on-ios-6-updated-sim-swap-method/. This does require temporary access to a T-Mobile or Simple Mobile SIM/Micro-SIM card.

  • How to increase Decimal Points for the BOM Component Quantity

    Hi All,
    While creating BOM:
    Can anyone help me to know how i can increase the Decimal points for the BOM components quantity.
    I can able to give only upto 3 decimal points, but the requirement is more than that.
    I have increased the Decimal point value to 5 in transaction Code CUNI. but still it is allowing me to enter only upto three decimal places.
    Thanks and Regards
    Khadeer

    Khadeer,
    You would be better off changing the base quantity of the parent part.  Instead of "1 EA  parent contains .00003MG of  component" you could say "100 EA parents contain .003MG of component".
    Alternately, you could use different units of measure for your parent or component parts, which would be more suitable for the 3 place decimal limitation.
    I agree with Anil in that if you elect to change the decimals from standard, you could end up with huge changes that will propagate through every module in the ERP.  In my view, there is no need of this kind of headache.
    Best Regards,
    DB49

  • How to delete decimal point and adding leading zeros....

    Hi,
    I have one requirement in the report   i.e.
            <b>Present Value    :</b>  44567.98
            <b>Expected Value  :</b> 0000004456798
    In the present Value how will I remove that decimal point and how to add those six ing zeros. I tried with CONVERSION_EXIT....but it is not giving. Help me...
    Thanks in advance.
    Regards,
    Kumar.

    Hi,
    Use SPLIT and COMCATENATE fnctions.
    Eg:  split l_v at '.' into l_v1 l_v2
            concatenate l_v1 l_v2 into l_v.
    For adding leading zeros
    Use FM CONVERSION_EXIT_ALPHA_INPUT.
    Eg:
    data: tknum type vttk-tknum value '99156'.
    call function 'CONVERSION_EXIT_ALPHA_INPUT'
         exporting
              input  = tknum
         importing
              output = tknum.
    Sri
    Message was edited by:
            Sri Tayi

  • Change decimal points in SD Condition type from 2 to 3, for EU

    Hello,
    We have a slight problem with the amounts. We are using resource related billing in the project and to track some expenses, there are some condition types created. Since the currency is maintained as EU, the decimal places are maintained as 2 decimals in OY04 and we dont want to change that.
    We face an issue, when SAP Converts condition value from 3 to 2 decimals
    For example, when in Contract we have an Condition Value of 100.025, this is converted to 100.03 and tax is applied on this amount.
    When we create an invoice and subsequently a Credit Memo request, that will contain more than one item, and the sum of all items will have to sum up to 100.03, but this is never the case, as with the application of tax rate, the value comes to something like 100.02 or 100.04..
    With 3 decimal points, this amount adds upto correct value.
    So our ideal solution will be the have the Condition Values as 3 decimals and the Net value in 2 decimals.
    Is there something  that can be done for this?
    Hoping for a quick response.
    Regards
    Maddy

    SAP stores the 3 decimal value in XKOMV-kbetr and Xkomv-kwert is calculated based on this 3 decimal values...
    I had a similar scenario with currency conversion and rounding issue in sales Order and Invoice processing, in VOFM routines... so I used a Floating point  value and converted to character value and then used that 3 decimal value for calculation.

  • How to set Decimal Point position from right to left Serial Read Evaluate Number within Range over RS-232

    I am new to Labview, I am communicating with a TQ8800 Torque meter via RS-232. The 16 digit data stream is as follows:
    D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
    Each digit indicate the following status :
    D0 End Word
    D1 & D8 Display reading, D1 = LSD, D8 = MSD
    For example :
    If the display reading
    is 1234, then D8 to D1 is :00001234
    D9 Decimal Point(DP), position from right to the left
    0 = No DP, 1= 1 DP, 2 = 2 DP, 3 = 3 DP
    D10 Polarity
    0 = Positive 1 = Negative
    D11 & D12 Annunciator for Display
    Kg cm = 81 LB inch = 82 N cm = 83
    D13 1
    D14 4
    D15 Start Word
    I am using a modified version of the basic_serial_write_read.vi. I am attempting to parse the 16 digit data stream extracting out the number and whether it is positive or negative. I am having trouble with the decimal point placement. Is there an example that could help me with this? After the number is parsed I am then comparing it to see if it is within +/- 9.2 N cm. If it is then the test passes. I am outputing the data to a file. I have included the vi. Also how can I check for different units of the annunciator. Any help would be appreciated.  Thank you.
    Attachments:
    basic_serial_read.vi ‏100 KB

    What is the definition of the End Word?  You will likely need to figure this out experimentally (the manual doesn't seem to define it).  Whatever it is, you should set that as the termination character and enable the termination character.  That will help you in keeping your messages in sync.  Just tell the VISA Reads to read more than a message should be, something like 30 should work nicely.
    The error you are seeing is a buffer overload.  This means that the instrument is sending data to you faster than you can process it.  So you need to figure out how to perform the read faster.  File IO is slow.  So you should put that into a seperate loop so that your loop does nothing but read the data from the port as quickly as the data comes in.  Use a queue to send the data from the reading loop to the logging loop.  This is known as a Producer/Consumer.
    And here is a cleaned up version of your code.  No need for your express VI or the formula node.  Some other general cleaning up also done to make it easier to read.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    serial read.png ‏80 KB

  • How to restrict decimal point entry in numeric field?

    Hi All,
    There is a requirement from our client that, they cannot accept amount in decimals. That is, they cannot accept the cents, the amount that can be received from them is only in EURO and the same will be entered in the field. They want me to restrict the entry of a decimal point totally in the field, so that there requirement is fulfilled.
    Is this possible? If yes let me know how?
    If no, can you provide me justification, so that i can intimate the same to my client.

    Dear Steve,
    I had written in my first thread that, They want me to restrict the entry of a decimal point totally in the field.
    If i use 9999 as format mask, then it still allows me to enter a decimal, but when the focus moves out of the field, it highlights the field and warns me "Field must be of form 9999".
    But my requirment is to "Restrict the entry of decimal point totally @ runtime".

  • How to fix decimal point limit

    Hi
    how do i fix the decimal point digit.
    for e.g
    if the input number is 123.33
    then it should conver it to 123.330
    OR
    if input 123
    then it should convert it to 123.000
    OR
    if input 123.321456
    then it should convert it to 123.321
    Thanks in advance.

    No that is not the solution.
    But I found out a different solution. The following code will give me exact figure which I was looking for.
    BigDecimal inputSize = new BigDecimal(12.3215)
    inputSize.setScale(3, RoundingMode.FLOOR);
    Thanks to all of you for your support
    Ciao :-)

  • Change decimal point dynamically

    Is there a way to change dynamically the decimal point used in numeric control without restarting application?
    With decimal point localized, that's work only when restarting the application...
    Thanks

    Yes, you can by changing the Format string:
    Changing it from '%.;%f' will use a dot as decimal sign. If you change the format string into '%,;%f' will use comma.d
    You have to do this for every control you want to change, so creating some framework is usefull.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • How to change reference point to center?

    Hi all,
    I have page item and angle through which i want to move. I want a page item to be moved from center.
    So how do change it from topLeft to center?
    Thanks In advance,
    Pooja

    Hi,
    two choices (or more ;-) )
    1. app.activeWindow.transformReferencePoint = AnchorPoint.CENTER_ANCHOR//which is a genereal setting ...
    2. //use transform:
    var currGraphic = app.selection[0];
    var theRotateMatrix = app.transformationMatrices.add({counterclockwiseRotationAngle:-90});
    currGraphic.transform(CoordinateSpaces.INNER_COORDINATES,  AnchorPoint.centerAnchor, theRotateMatrix);

  • Change decimal points

    Hi gurus,
    My client wants to give( in conditions in the sales order ) the price of a material as 120.123 ( i.e.three numbers after the point ) but the system accepts only two numbers like 120.12.
    what are the settings needed to give three decimal points.
    regards,
    anand.

    Dear vas
    Go to OY04 and maintain decimals as 3 there.
    Thanks
    G. Lakshmipathi

  • How to change decimal places in currency

    Hello ,
    I am an abapers,I Have one problem while displaying the currency fields in my Report.
    My problem is In Fbl5n,it displaying amounts as 50,000 for document number,
    But in my database,It is storing as 500,00 for that document number.I need to store the amount as 50,000. is there any settings to be changed to solve this problems
    For this how can i solve this problem.
    Waiting for your favourable reply
    Regards
    Maruthi

    Hi
    You can change your profile in SU3 transacton.
    Thanks
    Ashok
    Assign points for useful answer

  • How to insert decimal point while selecting data from a table

    Hi All ,
    My select requirement says , If the value received with no decimal then insert decimal before last 2 bytes. I need to retrieve data with this condition.
    May you people help how i can achieve this?
    Thanks in advance,
    Sachetan

    Is the data a number in string format?
    with q as (select '12345' myNum from dual
    union all select '45.78' from dual)
    select case when instr(myNum, '.') > 0 then to_number(myNum) else
           to_number(substr(myNum, 1, length(myNum) - 2) || '.' ||
                    substr(myNum, length(myNum) - 1)) end newNum from q
    NEWNUM
    123.45
    45.78If not just use
    with q as (select 12345 myNum from dual
    union all select 45.78 from dual)
    select case
    when instr(myNum,'.')>0 then myNum
    else myNum/100
    end myNum
    from q
    MYNUM
    123.45
    45.78

Maybe you are looking for