Unable to define a control unit label to the engineerin​g unit of a tag

Hi all,
I use the "read tag" to get the value of a tag, and I connect this value to a control.
I would like to see the tag engineering unit affected to the unit label of the control. Is there any way to do that?
It seems that the "read tag" returns a value with no units, and I can't link it to a control with a different physical data type (such as K or degC...).
The reason I want to use the unit label of a control, is to have the possibility to change this unit to compatible units ( on the front panel), and have the value automatically converted.
Thanks for your help.
Hélène.

Hello,
I would recommend you to get the raw value to you DSC Application, and once the value gets there.
You can modify the Tag Attributes (like the Scale, etc) but I think it is a lot easier to use the math functions in LabVIEW to modify the values coming from your tags.
VG

Similar Messages

  • Internationalization ADF BC Control Hints Label

    Hi guys,
    In Control Hints Label of the ViewObject's Attribute, I declared a label. It's defined in ModelBundle.properties file. Then I created an localized version of the ModelBundle.properties file whose name is ModelBundle_tr.properties.
    On the JSPX page I included two ImageLink components, a CommandButton component and a InputText component. The source for the Links, the Button and the InputText are:
    <af:commandButton text="#{res.LOGIN}"/>
    bq. <af:spacer width="10" height="10"/>
    <af:commandImageLink icon="/images/tr.png" actionListener="#{UserPreferences.localeChangeListener}" immediate="true">
    bq. <af:setPropertyListener from="tr" type="action" to="#{UserPreferences.language}"/>
    </af:commandImageLink>
    <af:spacer width="10" height="10"/>
    <af:commandImageLink icon="/images/us.png" actionListener="#{UserPreferences.localeChangeListener}" immediate="true">
    bq. <af:setPropertyListener from="en" type="action" to="#{UserPreferences.language}"/>
    </af:commandImageLink>
    <af:inputText value="#{bindings.FirstName.inputValue}"
    label="#{bindings.FirstName.hints.label}"
    required="#{bindings.FirstName.hints.mandatory}"
    columns="#{bindings.FirstName.hints.displayWidth}"
    maximumLength="#{bindings.FirstName.hints.precision}"
    shortDesc="#{bindings.FirstName.hints.tooltip}">
    <f:validator binding="#{bindings.FirstName.validator}"/> </af:inputText>
    Within the UserPreferencesBean.java
    public class UserPreferences {
    private String language;
    public UserPreferences() {
    public void setLanguage(String language) {
    this.language = language;
    public String getLanguage() {
    return language;
    public void localeChangeListener(ActionEvent actionEvent) {
    FacesContext.getCurrentInstance().getViewRoot().setLocale(new Locale(getLanguage()));
    When I click on any of the ImageLink, the page is refreshes and the Text of the CommandButton changes. However the label of the InputText is not changes. What is strange is that when I click the same image link the label changes. That is, I should click twice the ImageLink to be able to have correct control hint label for the view object's attribute. The code in the localeChangeListener method is not enough to have the control hint of the view object to refreshed??

    Hi ,
    maybe you have the same problem as me.
    11G  bug, a Label on an ADF Datacontrol and Locale, adfbundle
    thanks edwin

  • Testcase for error - "Unable to allocate thread control block"

    Hello,
    The down-below code throws the error message:
    db_stat: Unable to allocate thread control block
    BDB: 4.8, OS: Ubuntu 9.10
    Thanks
    #include <stdlib.h>
    #include <sys/ipc.h>
    #include <db.h>
    #define DIRECTORY "/tmp/db"
    int main()
    // open environment
    DB_ENV *handle;
    int status = db_env_create( &handle, 0 );
    status = handle->set_cachesize( handle, 0, 32*1024*1024, 0 );
    status = handle->set_thread_count( handle, 0x100 );
    key_t key = ftok( DIRECTORY, 'M' );
    handle->set_shm_key( handle, key );
    u_int32_t flags = DB_CREATE | DB_INIT_MPOOL | DB_INIT_TXN | DB_INIT_LOCK | DB_INIT_LOG | DB_SYSTEM_MEM;
    status = handle->open( handle, DIRECTORY, flags, 0644 );
    if( status != 0 )
    exit( 1 );
    // raise error
    chdir( DIRECTORY );
    for( int i=0; i < 0x1000; ++i )
    system( "db_stat -e | grep process/thread | wc" );
    return 0;
    }

    Hello,
    I am still looking into this, but upon closer examination here is the situation, basically as reported.
    The test calls set_thread_count which sizes the memory. In __env_attach(), (dbenv->thr_max is used to size the region. So you are correct, the higher the value used in set_thread_count, the larger the size of the region will be. Eventually that memory will be depleted, and __env_alloc_size() returns ENOMEM, after multiple calls to system(db_stat). __env_alloc_free() is not called. This is the part I am still investigating.
    The test uses system to fork a separate processes for db_stat and the failing stack is:
    lt-db_stat: assert failure: ../dist/../env/env_failchk.c/426: "ret == 0"
    lt-db_stat: __os_stack+0x2b
    lt-db_stat: __os_abort+0x1d
    lt-db_stat: __db_assert+0x47
    lt-db_stat: __env_set_state+0x53c
    lt-db_stat: __env_attach_regions+0x38b
    lt-db_stat: __env_open+0x154
    lt-db_stat: __env_open_pp+0x334
    lt-db_stat: lt-db_stat
    So db_stat is opening an environment, attaching to its region, and then __env_set_state() calls __env_alloc(). It is __env_alloc() which fails with ENOMEM after some point when there is no more space to be allocated from the shared region. And I'm still looking into that space would be returned to the shared region.
    Thanks,
    Sandra

  • Triggers and control unit between drums and Logic

    I have to purchase a trigger set and a trigger control unit to put on a Ludwig drum kit so that to connect to my Stylus RMX sets on Logic thru my AMT8 interface. I have heard about Ddrum for the trigger set, and for the control unit?..
    Any advice?
    Thanks
    Fulvio

    the d4 is ok, but unable to load in your own samples. the d5 has this option, but is discontinued. The Yamaha RM50 is my weapon of chioce and is leaps and bounds better in sound quality and options than anything I've seen from Alesis. Great audio out options, and of course, all the MIDI you need, plus the ability to load samples with a memory expansion, and ability to trigger sounds from any card in the R series synths. meaning, load a card for a bass guitar and trigger that from your kick drum, load some string and fx patches and trigger those from your snare. endless possibilities. Check out the RM50, I love mine and highly recommend it.

  • Controlling a label's text with Threads

    Hello,
    I couldn't find a specific topic about Java Threads and that's why i am writing here.
    I am developing a kind of strategy game and in one module i need to show the total amount of money the user has.
    - at first, when the game starts, the player chooses an amount.
    - the game starts and the player buys something
    - the amount should be updated, for a logical and routine transaction.
    But since the frame which is responsible from such transactions differ from the main frame, i could not do the update operations.
    e.g.
    public class GameMain extends JFrame{
    //The label is here
    }//end of gamemain
    class TransactionFrame extends JInternalFrame{
    //The internal frame has some buttons and radio buttons to allow the user to make transactions, purchasing of certain tools
    }//end of transactionframeThe best way that came into my mind was to update the label in my GameMain class whenever the player selects , say "Add" button in TransactionFrame.
    I had many tests before to do it with a certain paint method to handle those issues, but i couldn't find a solution.
    On the other hand, the TransactionFrame class' instances are created in some other class which I think wouldn't be relevant to say here, because it does nothing to do here.
    What i want to do is, as defined above,
    - i want to update the label in GameMain and
    - it should be updated whenever "Add" button is clicked in the TransactionFrame, which is a JInternalFrame.
    Here is what i have tried:
    1. i added a flag value in the TransactionFrame's "Add" button, and whenever it becomes "true", the Thread controlling the Label's text of GameMain, is triggered
    and the new amount will be presented to the user.
    -->But, although the player doesn't click anything on the internal frame, the thread in the main frame consideres it as clicked and tries to run something else.
    2. the other thing is, I put the amount at the internal frame as a string (drawn in paint method of this frame),
    --> This time, I updated the amount here but whenever I close the frame and create the frame by clicking on some button, the amount remains as chosen in the starting phase.
    (e.g. user selected 5000$, then bought something, the new amount: 4000$, ok, i close the frame and reopen it, the amount is: 5000$ !).
    I hope that I described the problem clearly here,
    What i expect is given above, if you'd like to advice me to try other things, please do not hesitate.
    Thank you,
    led1433

    You're probably long gone, so I'm not sure you'll see this, but my opinion is that your next step is to try to decrease the cohesion (I think that's what it's called) of your code so that the code that represents your main GUI has little knowledge of the code that represents the JInternalFrame and visa versa. I'm no pro at this, but one way to possibly do this is to give both public methods that get and set the amount and then let a Controller class call these methods. For instance:
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.*;
    public class Test3B {
      private static void createAndShowUI() {
        final Main3B main = new Main3B();
        main.getComponent().setPreferredSize(new Dimension(500, 400));
        final Internal3B internalGui = new Internal3B();
        internalGui.addSetAmountBtnListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            String amtString = internalGui.getAmountFieldText().trim();
            try {
              int amount = Integer.parseInt(amtString);
              main.setAmount(amount);
            } catch (NumberFormatException nfe) {
              JOptionPane.showMessageDialog(main.getComponent(), "Enter integers only",
                  "Error", JOptionPane.ERROR_MESSAGE);
        JInternalFrame internalFrame = new JInternalFrame();
        internalFrame.getContentPane().add(internalGui.getMainPanel());
        internalFrame.setBounds(10, 10, 400, 300);
        internalFrame.setClosable(true);
        main.addInternalFrame(internalFrame);
        JFrame frame = new JFrame("Test3B");
        frame.getContentPane().add(main.getComponent());
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.pack();
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
      public static void main(String[] args) {
        java.awt.EventQueue.invokeLater(new Runnable() {
          public void run() {
            createAndShowUI();
    class Main3B {
      private static final String AMOUNT_LABEL = "Amount is: ";
      private int amount = 0;
      private JPanel mainPanel = new JPanel();
      private JLabel amountLabel = new JLabel(AMOUNT_LABEL + amount, SwingConstants.LEFT);
      private JDesktopPane desktop = new JDesktopPane();
      public Main3B() {
        desktop.setBorder(BorderFactory.createLineBorder(Color.blue));
        mainPanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
        mainPanel.setLayout(new BorderLayout());
        mainPanel.add(amountLabel, BorderLayout.NORTH);
        mainPanel.add(desktop, BorderLayout.CENTER);
      public void addInternalFrame(JInternalFrame internalFrame) {
        desktop.add(internalFrame);
        internalFrame.setVisible(true);
      public void setAmount(int amount) {
        this.amount = amount;
        amountLabel.setText(AMOUNT_LABEL + amount);
      public int getAmount() {
        return amount;
      public JComponent getComponent() {
        return mainPanel;
    class Internal3B {
      private JPanel mainPanel = new JPanel();
      private JTextField amountField = new JTextField(10);
      private JButton setAmountBtn = new JButton("Set Amount");
      public Internal3B() {
        mainPanel.add(new JLabel("Enter New Amount:"));
        mainPanel.add(Box.createHorizontalStrut(5));
        mainPanel.add(amountField);
        mainPanel.add(Box.createHorizontalStrut(15));
        mainPanel.add(setAmountBtn);
      public JPanel getMainPanel() {
        return mainPanel;
      public String getAmountFieldText() {
        return amountField.getText();
      public void addSetAmountBtnListener(ActionListener al) {
        setAmountBtn.addActionListener(al);
    }

  • Power control unit interface problem

    I'm trying to get my intellegent power control unit running remotely through LabVIEW, but i'm having some slight problems. I want to make it a continiously running program so that the user can turn on or off the power to the outlets until they press the stop button. I've tried looping with a while loop but that doesn't seem to work quite right. Any suggestions?

    I apologize, I didn't realize how vague I was being. I am trying to make it so that the front panel will basically mimic the instrument itself. I am not able, however, to do so because when I write the code with a while loop I use 'ok buttons' and 'power lights' and place them on the inside of the while loop. I will turn on the power to a switch and when the loop goes through the first iteration the power light and button will reset itself to the default position (light off and button labeled off) I have attatched the very basics of what i am having troubles with (both front panel and block diagram). Thanks.
    Attachments:
    screen_shot_ipc1.bmp ‏1826 KB
    screen_shot_ipc2.bmp ‏2808 KB

  • Unable to define Radio Button Text field & unable to change column position

    Hi,
    While designing a screen in Screen Painter, I am unable to define Radio Button Text field as this option is not there in Graphical Element. And also I want to specify the starting position of column of that element different from the default value, but I am unable to define that because the field is non-editable.
    Can any one please help me out.
    Regards,
    Koushik

    Hi,
    Please find below the sample program from ABAP docu :
    PROGRAM demo_dynpro_input_output.
    DATA: input  TYPE i,
          output TYPE i,
          radio1(1) TYPE c, radio2(1) TYPE c, radio3(1) TYPE c,
          box1(1) TYPE c, box2(1) TYPE c, box3(1) TYPE c, exit(1) TYPE c.
    CALL SCREEN 100.
    MODULE init_screen_100 output.
      CLEAR input.
      radio1 = 'X'.
      CLEAR: radio2, radio3.
    ENDMODULE.
    MODULE user_command_0100 input.
      output = input.
      box1 = radio1.
      box2 = radio2.
      box3 = radio3.
      IF exit NE space.
        LEAVE PROGRAM.
      ENDIF.
    ENDMODULE.
    Here radio1(1) TYPE c is defined within the program but in the element list there are RADIO1 element exist. One is actual radio button and the other is Radio Button Text.
    I am not able to create that radio button text using same object name.
    Please suggest.
    Regards,
    Koushik

  • Unable to load Site Control File

    Hello,
    The background :
    I am in the process of learning how to create a Management Pack for a distributed application in SCOM 2012 R2.</p><p>For this, I picked our SCCM Site server to use as an example. So, in short, am writing a management pack for SCCM 2007 Discovery.
    I know a management pack might already exist. I am trying to learn by using an architecture I'm familiar with so I need to create this from scratch.
    In order to discover SCCM Site installed on a server, I decided to use the SMS WMI namespace. By reading the
    SMS_ProviderLocation Instance, I am able to detect if the server has SCCM Site installed on it.
    My next step was to find out where the SMS database is hosted. I found
    ROOT\SMS\site_ABC\ namespace contains an instance of SMS_SCI_SiteDefinition where I can find the database name and server name which I can use to discover the other components of a distributed application.
    The problem :
    When I run the query Select * from SMS_SCI_SiteDefinition I get a generic error 0x80041001.
    More Information reveals the following:
    error description : " Unable to load site control file "
    error code : " 2160198400 (0x80c20300) "
    file name : " c:\qfe\nts_sms_fre\sms\siteserver\sdk_provider\smsprov\sspsitecontrolextractor.cpp "
    Now, I cannot find the QFE folder anywhere. The SCCM Site is working fine and the site_control_manager component has no errors. I can launch the SCCM console on that server without any errors and the site status messages do not contain any errors.
    Can someone please help me out with "detecting" an installed instance of SCCM site server using WMI? Is the above error cause for worry for the SCCM part of my brain?
    Thanks in advance for your guidance!

    Thanks for your response Don!
    The SMS_Site instance does not provide information of the database server and database name.
    The funny thing is when I browse use wbemtest to connect to root\SMS\site_XXX and enumerate classes, i do not find
    the SMS_SCI_SiteDefinition. 
    I find it when i enumerate recursively and can browse into the values. I'm not sure how could build a query against this now.
    Can anybody with a test instance of SCCM 2007 check this and let me know please?
    Everything you are looking for exist within WMI. You can use the documentation script as an example to get what you are looking for.
    http://www.enhansoft.com/pages/downloads.aspx
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • How To Use Control Hint Label In columnHeader?

    Using JDeveloper 9.0.3 I created a uiXML-BC4J app.
    I specified control hint Labels for each attribute in a view object whose source is a db table. The uix page browses the table using the view object. How do I get the column header to use the Control Hint Label? I'm currently hard coding column header text:
    <columnHeader>
    <bc4j:sortableHeader text="Product No" />
    </columnHeader>
    I would rather specify the control hint Label. How do I do that?
    Thanks for your time.
    Greg

    By "in the page", I meant just as you're doing it now.
    You could also externalize it to a Java ResourceBundle;
    see the "Internationalization" chapter of the UIX
    developer's guide.

  • Control's label/caption passed from calling vi

    I would like a way to pass the control name and data to a subvi so the subvi control names are overwritten. I want the subvi to take each name from the calling program and make a text header using the calling names (not the subvi control names). The files I've attached aren't exactly what I want, but may give the general idea of what I want to accomplish. I would like to NOT pass anything other than the control into the subvi (as I have currently have it, if possible). If this question is not clear, please let me know.
    -Thanks in advance.
    Attachments:
    header-append_tester.vi ‏69 KB
    vi-caller-cluster.vi ‏27 KB

    You cannot change the label of a control during runtime. This is why LabVIEW incorporates Captions.
    I will take a look at your VIs later (when I turn on my workstation) and look at your implementation to see if I can offer any further advice. I used a method similar to this to pass data to indicators and sent a string to the caption to adjust the display to indicate the "label" of the value.

  • When installing Adobe Captivate I get msg: unable to set-up control panel

    When installing Adobe Captivate I get msg: unable to set-up control panel..Does anyone know how to resolve?

    Hi,
    It seems that Captivate is not downloaded completely. Only one file is downloaded(i.e. .exe) , .7z file is missing.  You can follow the below instructions to download Captivate 7 via direct links.
    In order to download Adobe Captivate 7.0 Windows English, open the link mentioned below and sign in with your Adobe ID and password.
    https://www.adobe.com/cfusion/tdrc/index.cfm?product=captivate
    Once you sign In with your Adobe Id and password, you will be redirected to Adobe Captivate 7.0 download page, Do not click on download. Kindly stay on that page and paste the below two links on the Trail Page Address Bar  one by one and save the files on your system at same location:
    http://trials3.adobe.com/AdobeProducts/CPTV/7/win32/Captivate_7_LS21.7z
    http://trials3.adobe.com/AdobeProducts/CPTV/7/win32/Captivate_7_LS21.exe
    When both the files finish downloading, then run the second file (.exe) which will start extracting the first file (.7z) and will start installing Adobe Captivate 7.0 on your computer.
    Regards,
    Mayank

  • Unable to set parental controls on itunes b/c my username and password are not correct.  How do I reset them?  There is no prompt to give any clues what they are.

    unable to set parental controls on Itunes b/c my user name and password got rejected.  How do I reset them or figure out my username and password?

    This is a user to user support forum.  We are all iphone users just like you.
    You are not addressing Apple here at all.
    This is an odd way to ask your fellow iphone users for help. Berating oterh users will not help you.
    "it's too fragile"
    No it is not.  i have never damaged one, nor has anyone I know.
    " U loose data when Ur phone is locked"
    No you don't.  Why do you think this?
    "and there is no customer support!!!  "
    Wrong yet again.  Apple has an 800 number and they have many retail stores and they have support articles that you can access using the search bar. Or you can contact them throgh express lane online
    "but I will go back with Blackberry "
    Please do.
    Good ridance

  • Tab control page label change color programmatically

    Hi everybody!
    I have a question about a tab control.
    I'm trying to figure out a way to programmatically change the  properties of the tab labels so the selected tab's label looks different to the others.
    I'd like to do this by changing aspects of it's font and it's color. But I can't find out how to access it either directly or by reference.
    I can get at the label string so if all else fails I could make the selected one all capitals!
    Am I missing something, or is this one of those things which can't be done?
    I'm using Labview 11.
    Regards,
    Jonathan.

    The link still works for me!
    Search the forum for "Tab Color".
    This does not change the text, but the tab color which is what I do to high light the selected tab.
    I use dark gray and light gray to help the user tell which tab is "active".
    Not exactly what you wanted.
    http://forums.ni.com/t5/LabVIEW/How-can-I-change-the-font-color-size-of-tab-controls/m-p/967920/high...
    http://forums.ni.com/t5/LabVIEW/Programmatically-changing-page-color-in-a-tab-control/m-p/840699/hig...
    http://forums.ni.com/t5/LabVIEW/tab-control-color/m-p/3062557/highlight/true#M873360
    Omar

  • Unable to define RETURN REASONS in CREDIT_MEMO_REASON in Receivables Lookup

    Hello All,
    I am unable to define RETURN REASONS in CREDIT_MEMO_REASON in Receivables Lookup for RMA in 12.0.6 version. How to define. The moment i click the line level the add button gets disable.
    Please help me regarding this. It is urgent.
    Thanks in Advance.
    Regards
    Aditya

    Hi,
    Please change the access level to 'User' and then you can add new reason codes.
    Thanks
    Robert

  • How do I get the Label for a Front Panel Control to appear in the Block Diagram but not on the Front Panel?

    How do I get the Label for a Front Panel Control to appear in the Block Diagram but not on the Front Panel? On the Front Panel I am making a complex control that consists of a Slider and a Numerical Input box. Both Controls display the same information and either can be used for Input. When one changs, the other is made to display the same value.
     But I only want the Slider to display the Label on the Front Panel, to avoid confusion. On the Block Diagram however, I want both controls to display their Labels so that I know what they are. How do I display the Label for a Control on the Block diagram, but not display its Label on the Front Panel?

    No.  The Label Visible property is separate for the front panel control label and the block diagram terminal label.
    How did you start out with the block diagram's label not being visible?  Whenever I drop a control or indicator, the label is always visible on both the FP and BD by default.  Maybe there is a LabVIEW option that causes new controls/indicators not to have their labels visible by default, but I have yet to find it.  I don't think an item should ever be dropped without the label visible, good LabVIEW coding practice demands that the labels for control terminals on the block diagram be visible so that you know what control or indicator a wire is going to.
    That being said, I have seen a lot of VI's posted where the label for the terminal on the BD is not shown (against good programming practice.)  I've gone to the BD and right clicked to show the label.  Sometimes, the people have an empty label (which will turn off the visibility for both the FP and BD) and I'm forced to add some text of my own into the label so I can figure out what their code is doing.  When I add some text to the label, at that time, I find both the BD and FP labels become visible.
    Are you dealing with controls that have empty labels to start?
    Good programming practices:
    1.  Always have a name for all of your controls, never use and empty label by deleting the text in the label.
    2.  Make the labels unique.  For example, don't have two controls both called Stop.  How do you know quickly know which terminal relates to which control?
    3.  Always show the labels on the block diagram, so you know the function of a control's terminal.  If you want to hide the label on the FP, that's okay.
    4.  If you want a different label to appear on the FP than whatever you actually called the control, then use the caption.  You can hide the label and show the caption.  This is useful if you need to programmatically change what the "label" is on the front panel such if you are making an application that needs to change its user interface such as for a foreign language.

Maybe you are looking for

  • Can't transfer videos and photos taken with my ipad (3rd gen) from camera roll to iMovie

    Hey guys, Last week I purchased iMovie for Ipad! I was looking forward making some nice clips, trailers etc. but I realized, I can't add videos nor photos what I've took with the iPad to iMovie! When I click on 'add photos' or 'add videos' option, no

  • Creative MediaSource/Zen Xtra/Vista Is

    I have had?a Zen Xtra for a couple of years, I recently got a new computer which has Vista Installed. After going through the nutroll that was downloading MediaSource for Vista and updating the firmware to be Play-for-sure, etc... everything seemed t

  • Unable to install iis manager on windows 8 home edition

    Hi I get an error while trying to install IIS manager from "Turn on off windows features" on a windows 8 machine. Just before trying to install this I install Visual Studio community online and rebooted my machine. Visual Studio works fine.  I also m

  • What is going on with the Hard drives?

    I purchased my macbook in Feb 2007. I've had two 160GB macbook hard drives corrupted (beyond any data retrieval) since then (and in the last year). I lost a great deal of PhD Thesis the first time. Both times i had the screen freeze (unrelated to pow

  • Problem in Unzipping the zip file

    Hi I have created a program to unzip the zip files in the folder named after the zip file it is working well well when u try to zip zip files put in a directory i.e u create a folder name contents and put files into that and then zip it but when u di