Changing unit text limitations -error 1128

Hey everyone,
I'm developing a VI which uses the native power of LabVIEW Units to do all my number conversions.
Here's my question, once the units are set for a control at edit-time can i change the Unit Text to something unrelated at run-time in order to prepare my indicator for a different signal? For instance lets say Channel 1 is a temperature for Test1 so programmatically converting from Fdeg to Cdeg and back is no problem for LabVIEW. For Test2, the same VI is used but now Channel 1 is a pressure. Can i programmatically change my indicator units from Fdeg now to a pressure unit like psi, atm, or bar? I'm getting Error 1128 "Input unit is not compatible with the current unit." even though the unit is correct when entered at Edit-time.  Any thoughts?
Thanks,
Craig
Solved!
Go to Solution.

Hi craige,
no, you can't change the unit type at runtime. This will be fixed at compilation time... You can only change to other representations of the same physical property (like Pa to bar or to some obscure psi for pressure).
One old trick when using units:
You may use "$1" as unit for a control. Using a "Convert unit" function also set to "$1" you can then strip the unit. So your subVI will accept any unit for the connected control - but that doesn't solve your perticular problem
Message Edited by GerdW on 12-30-2009 08:31 PM
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • Error when changing unit of Issue in material master

    Hi,
    When i am  trying to change Unit of issue in Qualitymanagement view of  a material using MM02 transaction, we  got error message - "The unit of issue cannot be changed because the material is used in a BOM-------Mesage no. M3214"
    Can anyone suggest what is the reason behind this. ?. how to avoid this error.
    Thanks in advance.

    HI Aditya,
    "The unit of issue cannot be changed because the material is used in a BOM-------Mesage no. M3214"
    The reason is that material is used as a component in BOMs with the present unit of issue as a unit in the bom line item.Unless you change that bom line item unit to its base unit ,system will not allow you to change the unit of issue in QM.
    First check in which BOMs the material you were changing is used as a component.this you can do in transaction CS15.
    then change the unit of measure used for the material in bom line item to base unit of measure.if one only one BOM is there change in CS02.if more BOMS are there do mass change in CS20.
    Then try to change the unit o fissue.now system will allow you to do the changes.

  • Error msg no FS780 when changeing tax text in FTXP

    Hi ,
    I am geting following error msg no FS780 when changeing tax text in FTXP

    First add the message in OBMSG transaction code.
    Application Are: FS
    Message: 780
    Switch Off
    Then come to OBA5 Switch off for batch and online posting.
    Regards,
    Ravi

  • How do I change the text on a label for a SAP delivered WD view

    Hi,
    I need to change the text that is being displayed for a label in a SAP delivered WD ABAP View. When I look at the properties for this label, the Text property is currently empty, so I assume that the text that is being displayed in the view is coming from the dictionary. I was hoping to change the text of the label via the Enhancement Framework. I created an OTR entry, then went into SE80 for the WD Component, I navigated to the view in question, I pressed the Enhance button and entered $OTR:<package>/<alias name> in the text property for the label. Finally I saved and activated and was prompted to create an Enhancement Implementation, which I did and I selected it. Everything seems to be fine (no errors or warnings). I then ran the WD application. My change was not there. I then went back into SE80 for the WD Component that I created the enhancement. I navigated to the View and looked in the text property of the label and saw that my change was not there. I repeated this process several times and each time when I added the OTR entry to the text property of the label, it saves and activates without issue (in enhancement mode), but when I run the WD App the change does not show up and when I go back to the WD View, my change to the text property is gone. I know that if I really wanted to I could register the object and add the OTR entry to the text attribute of the label, but I am trying to perform this change using a modification free enhancement. Can this be done via an Enhancement, or do I have to register the object and make my change using a modification?

    Hi Gregg,
    excellent question. I had the same problem as well before.
    What I have learned is that you cannot change a UI Element via Enhancements.
    You can add new UI Elements (e.g. new label) or remove existing elements, but you cannot change them (except the layout properties (e.g. colspan) maybe).
    The only possibilities I see is
    1. Remove the existing label, and add a new label with your desired text
    2. Do it as a modification
    3. Do it as a configuration (This means you go to the webdynpro application in SE80, right click and select "Create/Change Configuration)
    4. Do it as customizing (This means you add the URL parameter sap-config-mode=X to the URL, navigate to the label, right click on it, and select "Change Settings for Current Configuration").
    The disadvatages of 3) and 4) are
    - texts in configurations and customizing are not translatable (as far as I know)
    - if you have multiple configurations, you have to change the label multiple times
    Hope this helps a bit,
    Daniel

  • Error while trying to retrieve text for error ORA-12705

    I am getting the message "Error while trying to retrieve text for error ORA-12705" when trying to connect to a remote oracle database on the network.
    I can access this database using:
    sqlplus username/password@database
    from a dos prompt.
    For some reason I can't connect when using PHP (through my local Apache2 server on Windows XP).
    'phpinfo' says oracle in enabled (installed as per: http://www.oracle.com/technology/pub/notes/technote_php_instant.html), so I'm pretty sure the problem isn't with php itself.
    My guess is it's something with Apache, and maybe environment variables or user permissions or instantclient (10).
    All the folders, from instantclient to the Apache server have full permissions set for "Everyone" which I would assume includes this mysterious "nobody" user I've read about.
    As for instantclient, I have placed that "tnsnames.ora" file from the oracle server there, and that hasn't changed much.
    I've tried setting, unsetting, editing (environment variables):
    LD_LIBRARY_PATH
    ORACLE_HOME
    ORACLE_SID
    TNS_ADMIN
    NLS_LANG
    ORA_NLS33
    in both the system environment, and even with PHP's "putenv" function. (Note: and restarting each time I changed a system var.)
    In PHP i'm using:
    $c = oci_connect("username","pasword", "database")
    I've tried OCILogon instead of oci_connect
    For "database" I've tried:
    - using the path to the oracle db: //Oracle1/e/oracle/ora81
    - mapping the path to x: drive and using: x:/oracle/ora81
    - using the name of the database by itself
    - using the name of the database underscored with the database name
    - using "(ADDRESS=(PROTOCOL=TCP)(HOST = host)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=database)))"
    I have tried everything I can find from:
    the Oracle installation page: http://www.oracle.com/technology/pub/notes/technote_php_instant.html
    the Oracle troubleshooting page: http://www.oracle.com/technology/tech/php/htdocs/php_troubleshooting_faq.html#connect
    and these forumswith no results, just the same error.
    I have also spent about 16 hours Googling for help, and nothing.
    Can someone please tell me, what exactly does a user using:
    Windows XP
    Apache 2
    PHP
    intantclient10
    Oracle 8i (on a remote server)
    need to do to connect to Oracle before jumping off a bridge?

    Turns out Oracle was previously installed on this company laptop :(
    I deleted any 'Oracle' mention in the registry with 'regedit' (from the command line) using the Find option. Not sure if it's always a good idea to do that, but I backed up the important stuff first anyway.
    I uninstalled and reinstalled everything using the same guide mentioned above, and then it worked.
    Now I can be friends with Oracle again.
    Would be nice if the "Deinstall" removed the registry entries that caused this issue...

  • Unit of measurement error

    i
    hi guys
    crested po with unit of measure kg and also made migo,miro and RFQ  but now when i change unit of measurement from kg to pc in material master there is error
    the base unit of measure cannot be changed choose display errors
    1 if there are no stock of the material in the current period and in the previous period if there are stock in the previous period you can clear them as follow
    -post the stock in the previous period to the current period so that the stock for the previous period is the same as the stock for the current period
    -clear the stock with the posting date in the previous period
    -if no purchase order exist for the material
    i have already made po migo,miro, RFQ , please can you guide me step by step how to change the unit of measurement
    thanks in advance

    Hi
    Goods issue the particular material to some cost center. Then there will not be any stock for the particular material. Then change the UOM.
    It will work out.
    Then reverse the Goods Issue.
    Regards,
    Raman

  • Do you know how to change the Text Object for Billing Document?

    Hi,
    If you execute Transaction VOTX or VOTXn it will take you to Text Determination. The Billing Doc & Sales Document both has the VBBK as Text Object for me and is it like that for all.
    I need to change the Text Object to VBRK for Billing Doc, which is the ideal because I am using the Function Module READ_TEXT to retrieve text. This work perfectly for Sales Document which has VBBK as Text Object, but does not work for Billing Doc where it through as error message saying “Text 0020000021 ID 0002 language EN not found”.
    Thank You
    Kishan

    Hi kishan,
    For updating these text you can use FM 'SAVE_TEXT'.
    As for your problem, to get the parameter you need, go to the billing document, go to the text, and display it in plain page mode.
    Then you do 'GO TO' -> 'HEADER', and a pop-up window open with the parameters you need Obect type, ID, Name, ...
    Regards,
    Erwan.

  • How to change the text of label dynamically

    Hi all,
    I have done a dynpro program.It requires to implement the dynamically display the label text, for example: there is a label, sometimes, we want to display "Purchase Order" and sometimes we want to display "Sales Order". Can anyone tell me how to change the text of label according to my requirements? thanks in advance!

    Hi Wei,
    AS of now you will not be able to change the Text Field ( Label ) dynamically or at runtime. This is a limitation.Refer to this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/e4/2adbef449911d1949c0000e8353423/frameset.htm
    But, there is a way around.
    You can make a text field Visible / Invisible based on your program logic. So, based on what you want, you can process a module which will take care of that.
    Have a look at these DEMO Code. You can have a good idea to implement the logic.
    DEMO_DYNPRO_MODIFY_SCREEN - Demonstration of Dynamic Screen Modifications
    Thanks,
    Samantak.

  • How to change the text "form of address" while Create User in EP6.0??

    Hi All,
      We are using NDS 2.0.9 & EP6.0.
      I have the following doubts:
      1) I have to change the text <b>Form of Address</b> which comes when we <b>Create User</b> in EP.
      Can any1 please let me know how to change that text? Is there any .par file? What is the name of .par file (if any) which is used to <b>Create User</b> in EP6.0??
      2) I am getting the value of this <b>form of address</b> by <b>request.getSalutation()</b> in PDK, but this value is coming in the <b>Welcome Message</b> in the masthead. I tried to change the masthead by changing the corresponding code, but i am getting a runtime error. Is there any other method of making this salutation value <b>NOT</b> appear in the masthead welcome message?
      Please help me in this regard. Thanks in Advance. Bye.
    <b>Regards,
    Sai Krishna.</b>

    Hi Sai Krishna,
    within HeadiView.jsp, you'll find this code fragment:     
    if(salutation != null) {
      return java.text.MessageFormat.format(welcomeClause, new Object[] {firstName, lastName, salutation}).toString();
    } else {
      return java.text.MessageFormat.format(welcomeClause, new Object[] {firstName, lastName, " "}).toString();
    Just delete the first part and always use the second:
    return java.text.MessageFormat.format(welcomeClause, new Object[] {firstName, lastName, " "}).toString();
    This will delete the salutation without errors
    Hope it helps
    Detlev
    PS: For both solutions, 1. and 2., think of it: These workarounds will be overwritten witch patches / maybe hotfixes.

  • Preview issue: can't change the text of annotation taken in PDFs.

    With Preview you can annotate PDFs (highlight or underline text, taking notes). It is a nice feature, and I use it a lot.
    I've notice that after saving the changes made on a PDf, I can no longer modify the text in the notes (I can change the text, but these changes are not saved). To me it is a terrible limitation, I would say it is a BUG.
    The workaround is to delete the note, and create a new one with the new text, but it's time consuming.
    I hope this behavior will be changed soon.
    Bye,
    Giorgio

    PDF documents were really never meant to be editable, especially not with a program named "Preview". Use a different format or some specialized software such as PDF Clerk Pro or Full Acrobat.
    Message was edited by: etresoft

  • How to change the text variables for a standard report-writer report ?

    I am trying to change the text variables for a report -writer report and transport the same so as to change the title page and the report output heading  .I know the Report-Group 6Z02 and the library 6O1 to which it belongs.I tried using the change transaction GR32 after going to the area menu through FGRP . I try to change the text variables through  but it throws an error "You chose a name in the reserved name range - try different name ".
    I have also tried copying this report into another report and changing the new report . I was able to change and save the text variables . Now when I try to overwrite the original report 6Z02-001 with this new report , it does not allow that.
    Let me know how I can change the text variables for the same

    Can anyone please suggest me what to do here ?

  • How to change header text in MB02

    Dear All,
    We update qty of the stores acknowledgement in the MB02. However if the qty that was punched earlier has been found to be incorrect as is the scenario below:
    GR: 166
    Stores ack: 147
    GR reversed: 166
    Now we are not able to cancel the mat doc because of the diff in the stores ack.
    When we go to change the stores ack in the MB02 header text the error thrown is: Qty is already updated for Mat doc.
    Regards
    Arpita

    Hi Arpita ,
    Is it a Standard error ?. If yes provide the class and the error no.
    In normal cases system does not take text into consideration while reversing a mat.doc unless a user exit is implemented.
    Regards
    Ramesh Ch

  • How to update a text file or change some text easily ??

    Hi
    I want to change some text inside a text file. I can do it as below:
    1) new a File file
    2) new a FileInputStream(file) and call read()
    3) modify text
    4) new a File newfile
    5) new FileOutputStream(newfile) and call write()
    6) delete file
    7) rename newfile to file
    It is too complecated. What is easy way to do it ? Thanks for help
    Gary

    Hi NLSurfMan,
    I ceate a coding below , it always give me error:
    java.io.FileNotFoundException: c:\abc\file.rtf (The process cannot access the file because it is being used by another process)
    I have closed the FileReader and BufferedReader. I still have this problem. Why. Thanks. Gary
    int c;
    String text="";
    File filename=new File("c:/abc/file.rtf");
    FileReader fileReader =new FileReader(filename);
    BufferedReader bReader=new BufferedReader(fileReader);
    while ( (c=bReader.read())!=-1 ) {
    text=text+(char)c;
    bReader.close();
    fileReader.close();
    System.out.println("text="+text);
    text=text+" I want to make some change here";
    File filename1=new File("c:/abc/file.rtf");
    BufferedWriter bWriter =new BufferedWriter(new FileWriter(filename1));
    bWriter.write(text,0,text.length());
    bWriter.close();

  • Duplicating movieclips w/textfields on them & changing the text

    Okay, there is a movie clip in the library. Has three layers.  Each of the layers is also in the library.  Layer 1 has a button symbol, layer 2 a text symbol with instance name 'item_label', layer 3 is color. instance name is 'flbutton'.  To me, it looks like this was created into a symbol itself and given intance name of 'menu_item'.
    An array is created with button label names.  A loop is created based on the number of labels in the array.  An instance of 'menu_item' is created each loop and placed on the stage/screen and the text on the button is changed to the item in the array.
    My question....how do you do that in AS3?
    var menu_label:Array = new Array("Introduction", "Templates", "Services", "Clients",
             "Testimonials", "Support", "About Us", "Contact");
    // *** menu label array length must be equal to number of
    // *** total frames inside "menu button bg" Movie Clip in the library.
    var total:Number = menu_label.length;
    var tween_duration:Number = .85;// in seconds
    var radius:Number = 185;
    var angle:Number;
    var i:Number = 0;
    function create_menu():Void
    angle = (i - 2) * Math.PI * 2 / total;
    position_x = Math.cos(angle) * radius;
    position_y = Math.sin(angle) * radius;
    var fm = menu_item_group.menu_item.duplicateMovieClip("menu_item" + i, i);//** menu_item_group is instance name already on the
                                                                                                                      //** stage and is instance of symbol in library that has
                                                                                                                      //**instance name of menu_item
    fm.stop();
    fm.bg.gotoAndStop(i + 1);
    fm.over = true;
    fm.item_label = menu_label[i];   //** here is where the text of each newly created MovieClip's text is changed
    fm.item_no = i;
    more code.........
    loop
    Can someone tell me how to do this in AS3?  I have learned how to duplicate a movieclip with DisplayObjects, but I have no way of knowing how to get to the text field in order to change it.
    Regards,
    Kevin
    ps. new to Flash. Decent amount of VB programming experience.

    You are correct about the instance names etc... my apologies... I did not save my work and lost what I was doing.  My Dev enviroment is a personal laptop with Flash.  The company has yet to purchase Flash.  My laptop did an auto Windows update.  I lost my testing .fla.
    You were right about the instance name.  It was missing from my previous example.  That has been correct.  I now get no errors, but setting the autoSize property did not work.
    I'm creating two MovieClips.  One is the MovieClip of the actual TextField and the other is of a MovieClip with the TextField on it.
    import flash.display.MovieClip;
    import flash.text.TextField;
    import flash.text.TextFieldAutoSize;
    When I create the MovieClip of the TextField directly:
    var mcTxt:MovieClip=new clsText();   //pardon me, but I just had to use some VB naming conventions to help myself out.
    addChild(mcTxt);
    mcTxt.item_Label.autoSize=TextFieldAutoSize.LEFT;
    mcTxt.item_Label.text="Hello Willeeerrrrr";
    When I add the field without changing the text, the text field defaults to "Hello World".  When I attempt a change as in the code above, the text field looks as follows:  Hello Willeee.  If I add a fourth 'e', .text="Hello Willeeeerrrr", it will add it to the text field the next time I test.  The final 'rrrrr's' get truncated.  Wierd.
    Now, when I do the above on the MovieClip with the child text field, the text just disappears.
    var mc:MovieClip=new clsMenuItem();//MovieClip with the embedded/child textfield
    addChild(mc);
    mc.mcMenuItem.item_Label.autoSize=TextFieldAutoSize.LEFT;
    mc.mcMenuItem.item_Label.text="Hello Willred";
    The above code causes the text to display blank.
    I'm close and hope it's just a property setting...ideas?

  • TEXT ENGINE ERROR

    When I opened a PS file with a text layer, that I wanted to change, an error message popped up saying the "text engine could not be initalised". STUCK!!!  I am not able to use the text tool in ANY of my PS files anymore! I got a iMac and CS6, did not upload any new fonts lately BUT updated to Yosemite and updated to onone Photo Suite 9. No crashes or any other catastrophies with my Mac lately. Living in AUSTRIA and using my system in german,see screenshot...

    Same problem with text module error
    Any solution, Adobe guys?

Maybe you are looking for

  • How can i develope a report for getting purchase requisition details

    how can i develope a report for getting purchase requisition details like mrp controller release date unit of measure

  • Elements 9 printing problem HELP !

    After opening Nikon RAW file, doing all I want to do with it, then File/Print - it randomly tells me I need to install a printer (yes it is installed and yes it works perfectly sometimes) - sometime it works fine but sometimes it doesn't but when it

  • Macros definition in SOP

    Hi, I have got some doubts about macro definitions in SOP. First, I would like to know how to use the ">" and "<" operators. Sometimes in the sequence of instructions they seem to behave as IF sentences. Example Operand 1           Operator          

  • /etc/rc.d/tomcat doesn't exist! [solved]

    I installed tomcat but /etc/rc.d/tomcat doesn't exist!  What do I do from here? Last edited by synthead (2008-09-12 22:51:23)

  • Delimited Jobs reflecting in Selection List!!!

    Dear Experts,                We have delimited a set of jobs as per clients requirement need your advice to remove those Delimited Jobs from the selection list Only new jobs should get displayed please advice. Thanks & Regards Khaiser