Number to fractional string

hi ....
i am very new to the NI Labview, anybody help me to explain the  number to fractional string, which are used in following block diagram.
what is the motto behind using the number to fractional sting and please do not suggest me to read context help on this topic. 
Attachments:
tab-grap1407.vi ‏152 KB

23235573 wrote:
hi ....
... please do not suggest me to read context help on this topic. 
Hi 23235573,
why not? The context help describes what this function do. You can convert a number to a fractional string.
Mike

Similar Messages

  • Number to fractional string not working correctly

    I am measuring some parameters from oscillsocpe. i need to write these values to text file for which i am using write to spreadsheet, but what is happening is it is always writing zero value to file, on debugging i found that while converting from number to string it is always writng zero to string indicator, then separately i used that number to fractional string indicator and it is always showing zero in string output , i dont why it is happening.
    Attached below is the code.
    Solved!
    Go to Solution.
    Attachments:
    Time meas sub.vi ‏31 KB

    Ranjeet Singh and Norbert_B
    Thanks for ther reply
    Ranjeet singh,
    number to fractional string is working correctly, there is some other problem, because inly when i am executing this code converting this rise time value to string then only it is showing zero, otherwise for any random number if i am checking this number to fractional string is working correctly.
    Norbert_B
    i dont need to convert it back to string that i am doing only to check why it is showing zero value on converting number to string , because when i was writing to spreadsheet file it was always writing zero value, so when checked that code it was observed that while converting from array of numbers to spreadsheet string it is always writing zero value that's why i am doing it here just to check why it is not converting to string, but your suggestion helped in focussing the string that i am gettong from VISA read, i can use that  in last case if i wont be able to find the solution but main problem is that why i am not able to convert it back to string, why it is showing zero because it is because of this only write to spreadsheet is always showing zero value .

  • Number to fraction string +format value

    Hi there,
    I just met a stupid question which made me crazy, please help.
    The question is simple:
    Target: Numeric floating control-> number to fraction string -> format value -> desirable string format
    For example: 20.00 -> 20.00000 (Q1: why extra 0s?)-> "20.00"
    I use the following program:
    why doesn't it work, please?
    Thanks!

    Hi TriStones,
    "Why it doesn't work?"
    Because you haven't read the context help for "Number to fractional string"! Especially the sentences on those two additional inputs of that function (Q1)...
    I would suggest using FormatIntoString like that:
    (I tried to replicate your example, but your wiring is very bad: it's not clear which wire is connected to which input...)
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Conversion​: engineerin​g string to fractional string

    Hello everyone
    I am loading a text file with several columns that has text (informations about the file and column titles) and values in engineering format. After I load this file I use "spreadsheet string to array" to convert it to 2D array of strings.
    I would like to leave all the "text" (informations about the file and column titles) unchanged, but I want all the "engineering values" to be converted to "fractional values". How do I convert an engineering string to a fractional string?
    I will have to convert the whole file at once because different files have different positions for text and engineering values and because of that would be impossible to know the index of values and convert just them.
    Thanks.
    Dan07
    Solved!
    Go to Solution.

    Hi Dan,
    conversion is done like that:
    But you have to select, what is text and what is number, on your own. How should LabVIEW know about your file format?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Javascript Error! Error number: 45 error string: Objects is invalid line: 387, Line 428

    I am running Indesign CS3 on an XP computer. I installed a plugin for barcodes from teacup Software, Barcodemaker for Indesign CS3 win and this has crashed my Indesign CS3.
    Everytime I startup I get this Javascript error! Error number: 45 Error string: objects is invalid line: 387 I hit enter and iget the same message line: 428.
    The adobe knowledge base has a message http://kb.adobe.com/selfservice/viewContent.do?externalId=kb402389&sliceId=2
    I can't find the file Pluginconfig.txt on my computer to delte as suggested in this article. Can anyone help with this issue.
    I have uninstalled the plugin and I have try to repair/reinstall my copy of Indesigh CS3 version 5.0.4 but it still is not possible to use Indesign.
    Has anyone encoutered this problem? Can you tell me where to find this file Pluginconfig.txt.

    C:\Documents and Settings\[username]\Local Settings\Application Data\Adobe\InDesign\Version 5.0\Caches\InDesign Recovery
    This is a hidden folder, so you'll need to set Explorer to show hidden files if you haven't already. Start by just renaming the folder to _InDesign Recovery and it should rebuild on the next launch if this is going to work. If it doesn't work, you won't have lost anything.
    Might work even better if you were to try a system restore, however. Do you have a restore point from before the plugin was installed?
    Peter

  • Regexp substr to select the max number out an string

    Hi all,
    I need a solution for a query.
    I,ve a query to select the lowest number in a string.
    select regexp_substr('9 - 10','\d+')
    from dual;
    9
    So this is the query I need to select the min number in he string.
    but now I need it to give me the highest nr in the string .
    the output that I need =10
    Can someone help me pleasse?
    My regards

    Caroline wrote:
    select regexp_substr('9 - 10','\d+')
    from dual;
    9
    So this is the query I need to select the min number in he string.Actually it only gives you the first number in the string, not the minimum number.
    SQL> select regexp_substr('9 - 10','\d+')
      2  from dual;
    R
    9If your string is the other way around it will give you 10 instead of 9.
    SQL> ed
    Wrote file afiedt.buf
      1  select regexp_substr('10 - 9','\d+')
      2* from dual
    SQL> /
    RE
    10You probably want something like...
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select '9 - 10' as txt from dual)
      2  -- end of sample data
      3  select min(num) as min_num, max(num) as max_num
      4  from (
      5        select to_number(trim(REGEXP_SUBSTR (txt, '[^-]+', 1, level))) as num
      6        from t
      7        connect by level <= length(regexp_replace(txt,'[^-]*'))+1
      8*      )
    SQL> /
       MIN_NUM    MAX_NUM
             9         10
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select '10 - 9' as txt from dual)
      2  -- end of sample data
      3  select min(num) as min_num, max(num) as max_num
      4  from (
      5        select to_number(trim(REGEXP_SUBSTR (txt, '[^-]+', 1, level))) as num
      6        from t
      7        connect by level <= length(regexp_replace(txt,'[^-]*'))+1
      8*      )
    SQL> /
       MIN_NUM    MAX_NUM
             9         10
    SQL>

  • Finding number in a string

    I am trying to find a number in a string from my database to replace it.  Here is my funciton:
    function findUserID($friendsString, $userToFind){
              echo $friendsString . " " . $userToFind;
              $pos = strpos($friendsString,$userToFind);
              if($pos){
                        return true;
              return false;
    it returns "25,29 25".  How can it not find 25 in that string?

    I understand that it starts at 0.  it should still work.  i had it working before.  i must've changed something. 
    here is my code for passing to the function:
    $query = mysql_query("SELECT friends, pendingFriendRequest
    FROM members
    WHERE username = '$userID'");
    if (mysql_affected_rows() > 0) {
              $row = mysql_fetch_array($query) or die(mysql_error());
              $friends = $row['friends'];
              $pendingFriends = $row['pendingFriendRequest'];
    // If the user exists in the waiting list, then
    //continue (we must confirm that they are first by checking the DB
    $test = findUserID($pendingFriends, "25");
    if($test){
              // If they are, then continue to add them
              $test = confirmFriend($pendingFriends, "25");
              if($test) {
                        echo "<br />You have confirmed " . findUserName(24) . "as a friend.";
              } else {
                        echo "<br />Error: Please try again, or contact us.";
    } else {
              echo "<br />Error: You either have this person as a friend already, or there was an internal error.";

  • How to generate a unique 8 byte number for a String in DES

    Hi All,
    Is there any way to generate a unique 8 byte number representation of String?
    I know it can be done with DES encryption (while MD5 gives 16 bytes number). My requirement is:
    Every time a String is passed - my static method should return the same unique number - all the time.
    i.e A String "AAAAAA" will return same unique number all the time. How can I achieve this (8 byte number) by DES Encryption or any other encryption?
    Thanking all in advance.

    Thanks for your reply. Won't there be any loss of data if I consider only first 8 bytes? Will Integrity be maintained.?
    In some cases my Strings can be unusually long - having length of 400 to 500.
    I want 8 bytes as I want to map the number with MySQL bigint field.

  • HT3529 I have i0S7.0.2 on my iPhone 5.  I want to to send a new string of messages to someone but every time I type in the recipient's phone number, the old string of messages pop up.  Is there any way to start a new, fresh string?

    I have i0S7.0.2 on my iPhone 5.  I want to to send a new string of messages to someone but every time I type in the recipient's phone number, the old string of messages pop up.  Is there any way to start a new, fresh string?

    SadisticIron wrote:
    i just baught my first iphone and it is a jalbroken
    Buzz! Thank you for playing!
    Discussing jailbroken devices is forbidden here by the Terms of Service.
    You can not get help here.

  • Method to test if the value is a number or a string?

    Hi Everybody !!!
    Do you know a method that permit to test if the value is a number or a string?
    Thanks !!!

    What kind of value is it? Is it a String and you want to test if it holds a number or characters? If so, use toCharArray() on the String to convert it to a char array and use Character.isDigit() and/or Character.isLetter() on each of the char array elements to test it's type.

  • Increment a number within a string

    Hi!
    How can I increment a number within a string ?
    This code doesn' t provide the rigth result
    DATA zahl TYPE I.
    DO 10 TIMES.
    zahl = zahl +  1.
    write:/ 'HALLO zahl'.
    ENDDO.

    Hello,
    Change the code like this.
    DATA ZAHL TYPE I.
    DATA: LV_ZAHL(8),
          CHAR(255).
    DO 10 TIMES.
      ZAHL = ZAHL + 1.
      WRITE: ZAHL TO LV_ZAHL.
      CONCATENATE 'HALLO' LV_ZAHL INTO CHAR.
      CONDENSE CHAR NO-GAPS.
      WRITE:/ CHAR."'HALLO'NO-GAP,ZAHL NO-GAP.
    ENDDO.
    Regards,
    Vasanth

  • Separating character and number within the string

    I want to separate the character and the number within one string.
    For example,
    12345ABCD (the numbers and character may differ in lengths)
    I want to separate into two different string of 12435 and ABCD.
    Your help would be greatly appreciated.
    Thanks!

    here is an example:
    sample_separator.sql
    declare
      i        number := 0;
      j        number := 0;
      x        number := 0;
      vBasis   Varchar2(40) := '12345ABCD';
      vString1 Varchar2(40);
      vString2 Varchar2(40);
    begin
      for x in 1 .. length(vBasis) loop
        for i in 0 .. 9 loop
          if substr(vBasis,x,1) = to_char(i) then     
            vString1 := vString1 || substr(vBasis,x,1);
          end if;
        end loop;
        for j in 65 .. 90 loop
          if substr(vBasis,x,1) = chr(j) then
            vString2 := vString2 || substr(vBasis,x,1);
          end if;
        end loop;   
      end loop;
      dbms_output.put_line('vString1: '||vString1);
      dbms_output.put_line('vString2: '||vString2);
    end;
    /when run:
    SQL> @r:\sample_separator.sql;
    vString1: 12345
    vString2: ABCD
    PL/SQL procedure successfully completed.
    SQL> hope this helps.

  • How to manipulate a number from a string

    Hi All
    I am using CRXI and have designed a report that will list all of our fleet starting with the 'Fleet No.' The fleet no. field is a string so that the fleet no.s weren't displaying in numerical order. I converted the field to a number and it then worked fine. Now, of course, the boffins have decided to create new fleet no's '7110.1'. With the field being a number these weren't displaying on my report. I thought if I played with the 'decimal points' that would help. My report now has '101.0' instead of '101' as well as displaying '7110.1'. Is there a formula to suppress the decimal point if it is zero?
    Thanks in advance for your help

    Please try this:
    1.     Right click on the field (formula field for FleetNo - {@numFleetNo})
    2.     Select Format field.
    3.     Select the Number Tab
    4.     Click on Customize...
    Write the following formula in front of Decimals and Rounding by clicking on X-2 editor of both.
    if {@numFleetNo} - Floor ({@numFleetNo}) = 0 then
        0
    Else
        1
    Hope this will help.

  • I need to sort an array of strings based on the number in each string.

    Basically, I have a directory of files that all have the same name but each with a different number on the end.
    example: image 1.jpg, image 2.jpg, etc.
    When I use the List Directory function that returns an array of strings containing the file names in the directory, they don't come out in a 1, 2, 3, order like they appear in the directory. It sorts them character by character so that they come out like: 1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 2, 20, 21, 22 etc.
    Is there a simple way of sorting this array of strings with the file names (as above) so that they are in numerical order?

    It's a while since this thread was started, but I am sure others will have use for this so here goes:
    The in-built array sort function sorts the strings the same way DOS and Windows do. Microsoft has fixed this in the Explorer that comes with XP, however the rest of the OS(s) still sorts the old way.
    The attached "AlphaLogical String Array Sort" VIs will sort strings arrays the same way as the new XP Explorer. There are three different implementations of the sorting, one based on the Insertion sort algorithm, a Quick Sort based on recursive calls (the most elegant way, but unfortunately LabVIEW has too much overhead when doing recursive calls so this is actually a very slow alternative) and finally the fastest; a stack based Quick Sort. There is also a test VI that will show you how the different implementations perform.
    I had not used recursive calls in LV much until I made the attached quick sort and was a bit disappointed by the fact that it is so slow, but it's a good learning example...The ability to do recursive calls this way was introduced in LV7 I believe...There is an example here on the zone that shows how you can calulate a factorial by using recursive calls, however - unlike for the quick sort (normally) - recursive calls are actually not the optimal solution for that calculation.
    Message Edited by Mads on 09-13-2005 02:30 AM
    MTO
    Attachments:
    AlphaLogical Sorting.zip ‏142 KB

  • SAP Note Number: 953823 says string not supported in FM ??

    Hello Friends
    I am desperately trying to findout how to send a variable length string from XI and save it in a table.
    However, SAP Note Number: 953823 says that STRING is not supported in FM but the work around it suggests is as follows:
    ========================================================
    The only work around for this is :
    To wrap the Function module used in function control with the custom function module,which substitutes the STRING parameter with CHAR datatype.
    ========================================================
    But the problem is that for CHAR datatype you have to give the field length, the requirement I have is to send a VARIABLE LENGTH data.
    Could some one help me in understanding how this can be achieved?
    Thanks a lot in advance
    Ram

    Interesting question.  Maybe I don't completely understand.  When you say store it in a table, do you mean a database table or an itab?
    I seem to be able to pass a string to a FM.  Am I doing something wrong?
    I created a type of string called "ZTYSTR".
    I then created this FM.
    *"*"Local Interface:
    *"  IMPORTING
    *"     REFERENCE(I_STR) TYPE  ZTYSTR
      DATA:
         l_string   type string.
      l_string = i_str.
    ENDFUNCTION.
    Then I call the function module as such.
    REPORT zz_temp.
    DATA: g_str  TYPE string VALUE 'Hello World'.
    CALL FUNCTION 'Z_TEMP'
      EXPORTING
        i_str = g_str.
    Debugging the FM, it says that both the parameter and local variable are of type string.

Maybe you are looking for

  • My iPod touch 3rd gen is stuck on apple logo

    My iPod touch 3rd gen is stuck on the white apple logo. It will not manually restart/restore if I hold the power and menu button. It does auto restart about every 15 minutes on its own. If I plug it into my computer, both my computer and iTunes will

  • Can't install latest Exchange Extension for Photoshop CC

    Hi, I've been trying for a while now to just get the exchange extension working in Photoshop CC. 1. First Photoshop needed to be updated, did that. 2. Then I installed Extension Manager, did that. 3. Then apparently had to update Both, did that. 4. T

  • I have my Apple ID and Password but have forgotten the answers to my security questions, how do i reset them ?.

    Hello i need some help, tried to ring the support desk but closed. I have my apple ID and password but have forgotten the answers to my security questions. When i log into my Apple ID i get the same questions again to answer but do not have the answe

  • Incomplete DB Recovery, Basic query

    One legacy database needs to be recovered. Version 8i, SVRMGR> shutdown abort SVRMGR> startup mount pfile='D:\oracle\admin\ORCL\pfile\initORCL.ora' SVRMGR> recover database until cancel I cannot enter CANCEL, it throws the following error and comes o

  • Error running Azure Virtual Machine Readiness Assessment

    I have downloaded and installed onto three different systems, all with the same results.  Two servers are Win Server 2012 R2, also same error on Win 8.1 Enterprise. WAVMRA.exe, Product Version 2.0.40528.1, dated 5/28/2014. I have verified PowerShell