How to connect the value of the input string to numeric values


I'm trying to figure out how to connect the value of unique user input string to numeric values. Basically I want the user to enter the name of a gas that I have a list for (I think I put the list of gases in a table >). Then I want to match numeric values 2 'a' and 'b', according to which gas, name of the user has set. These 'a' and 'b' values will be automatically matched with the name of the gas in a list that I put. For example, hydrogen gas has the value 3 for "a" and 4 for "b. when the user puts the ' hydrogen' name in a string constant, automatically 'a' and 'b' must be issued.» I have connect a and b to a formula

Thanks for any help


It is perhaps not exactly what you are looking for, but perhaps you could use the enumerated data type and the array of clusters of points (a, b).

Look at the VI I enclose.

Tags: NI Software

Similar Questions

  • How to connect the cables to an AMD Radeon HD 7450 video card for two monitors individual work?

    I have a HP Pavilion p6-2360eo with the video card Radeon 7450 connected to a monitor of 23xi Pavilion.

    Now, I want to add a monitor of 23xi more, but I do not understand how to connect the cables to the video card to get two logical screen (different views on each monitor)

    Supposedly this monitor can connect to the video card, you have the HDMI connection.  Assuming that the first monitor is connected via DVI, then try a HDMI cable to the second.  I got this from the description of the video card on THIS page.

    Support up to two displays at the same time in these configurations: DVI, HDMI and VGA + HDMI (using the included adapter cable)

  • How to connect the keyboard for apple tv wireless?

    How to connect the keyboard for apple tv wireless?

    If you mean the 4th generation new Apple Tv, you cannot currently. It does not support keyboards at this time.

    If you mean the 3rd generation Apple Tv:

    Use a keyboard Apple Wireless with your Apple TV (2nd or 3rd generation) - Apple supported

  • How to connect the iMac 27 inches 5 K (end of 2014) as PC monitor


    How to connect the iMac 27 inches 5 K (end of 2014) as PC monitor?

    Are there any adapter or cable that can help?



    PCs have no support for the target Display Mode.

  • How to connect the Officejet Pro 8100 printer to wireless network

    Bought a "nine" Officejet Pro 8100 and want to use via my wireless network. The CD supplied with the printer is obsolete. Updated Apple software but can't see how to connect the printer to the network. Getting Started Guide is no help on this issue. Searched for support without result pages. Utility HP does not provide a method to set up a wireless feature. Find all the instructions, I say first of all make sure that the printer is connected to the wireless network, and that's what I can't find out how. What I forget?

    Finally, I called HP hotline for help and was rescued. It turns out that Apple's software update software includes all the required components. The software from the HP Web site is no longer available. It's frustrating to see the Getting Started Guide refer frequently to the HP installation wizard and be unable to locate it. Once the wizard tech took control of my computer and installed the necessary software, it was a breeze!

    I also note that compose the support number to talk with a guy was rather brief: between 1 and 2 minutes, I recall. Although there was a menu of the phone, it was not a large (unlike the attempt labyrinthine and often circular to locate the online help).

    Insofar as HP knows the necessary software in not available via software update or directly from HP, wouldn't make sense to inform buyers, as well as how to access? At least do not place meaningless, useless on the Web site links that lead into oblivion and frustration!

    Although I did appreciate the journey, I finally arrive at my destination. Thanks to Aris, HP technician. You are exceptional!

  • How to connect the printer wireless hp with the computer?

    * - Original title - the printer printing

    How to connect the printer wireless hp with the computer?

    HP all what you need to be able to complete the task... See here...

  • How to connect the slot button Cascades

    I am new to waterfalls and QML and yesterday I tried to port native QtWidget app to waterfalls, but it does not. The problem is, I add some buttons to the container in QML main file and coded my custom slot function which should be executed when the user click some button. But I don't know how to connect the clicked() signal to my function from the custom location.

    When using

    Connect (CloseButton, signal(Button::clicked()),this,slot(on_closeButton_clicked()));) or connect (exitButton, SIGNAL (clicked ()), this, SLOT (on_exitButton_clicked ())); I get error "unable to connect SIGNAL (null) to SLOT (on_closeButton_clicked ()) ' on all the buttons.

    Here is my code in app.cpp

        QmlDocument *qml = QmlDocument::create("main.qml");
        qml->setContextProperty("cs", this);
        AbstractPane *root = qml->createRootNode();
        textHolder = root->findChild("textHolder");
        openButton = root->findChild("openButton");
        saveButton = root->findChild("saveButton");
        saveAsButton = root->findChild("saveAsButton");
        closeButton = root->findChild("closeButton");
        exitButton = root->findChild("exitButton");
    //one slot function
    void App::on_closeButton_clicked()
    //if( | QIODevice::Text)){

    And qml

    import bb.cascades 1.0
    Page {
        id: mainPage
        Container {
        id: main
        Container {
        id: buttonHolder
        scrollMode: ScrollMode.None
                layout: StackLayout {
                    layoutDirection: LayoutDirection.LeftToRight
                    leftPadding: 5.0
                    rightPadding: 5.0
                    topPadding: 5.0
                    bottomPadding: 5.0
                touchPropagationMode: TouchPropagationMode.None
                objectName: "buttonHolder"
                Button {
                    id: openButton
                    text: "Open"
                Button {
                    id: closeButton
                    text: "Close"
                    onClicked: {
                Button {
                    id: saveButton
                    text: "Save"
                    onClicked: {
                Button {
                    id: saveAsButton
                    text: "Save As"
                    onClicked: {
                Button {
                    id: exitButton
                    text: "Exit"
            Container {
                id: textHolderArea
                layout: AbsoluteLayout {
                topMargin: 5.0
                leftMargin: 1.0
                rightMargin: 1.0
                bottomMargin: 2.0
                TextArea {
                    id: textHolder
                    textStyle.fontStyleHint: FontStyleHint.Default
                    layoutProperties: AbsoluteLayoutProperties {
                    leftMargin: 5.0
                    rightMargin: 5.0
                    preferredHeight: 645.0
                    textStyle.justification: TextJustification.Enabled
                    objectName: "textHolder"
                    text: ""

    And I have no idea how call my app.cpp C++ slot in my main QML file

    Your buttons should an objectName set to be visible to C++, the id is only visible inside the QML.

  • How to connect the bluetooth iball-groovy head game

    How to connect the bluetooth iball-groovy head game

    Hi Gurushankar,

    You can consult the following articles and check.

    Connect to Bluetooth and other wireless or network devices


    Add a Bluetooth device or other wireless or network device: frequently asked questions

    Hope this information helps.

  • How to connect the akai ATT01U

    How to connect the Akai ATT01U with my PC? (Windows 7)

    Johan Burgman

    With the supplied USB cable, I guess.  You probably have to install the software provided with the unit first.  Check job mode, manual quick start or any documentation that came with the device.

  • How to change the input to Dogri language

    How to change the input to Dogri in Windows 8 language using visual studio 2005

    Hey Yusuf,

    To change the language in the Visual Studio program, I suggest you view the query in the Visual Studio forum:

  • Is there anyone know how to connect the "HP PSC 2355 all in one for iPhone 4S?

    Is there anyone know how to connect the "HP PSC 2355 all in one for iPhone 4S?


    First of all, please check if your printer in the list:

    If so, you can use this hotfix/install:


    If NOT you must print using other applications (if applicable) such as

    Kind regards.

  • How to connect the URL of Web site companies existing on the new site I've built?

    How to connect the URL of Web site companies existing on the new site I've built?


    If you want to use the current domain with your new business catalyst site, please follow this link

    User manual

    Let me know if you have any question.

  • How to connect the Ombudsman with several bpel process

    Hi Please someone tell me how to connect the Ombudsman with several processes bpel in soa 11g

    And here

  • SQL: how to display the second string of the function in the Jobs table only if the function has more than one string.

    SQL: how to display the second string of the function in the Jobs table only if the function has more than one string.


    You can use REGEXP_SUBSTR Oracle/PLSQL: REGEXP_SUBSTR function

    Select the function double REGEXP_SUBSTR('PUBLIC RELATION REPRESENTATIVE ','[^]+',1,2);

    Do you have any value of the column as no 2nd string?

  • date format picture ends before converting all of the input string

    In the following query, I get the error: ORA-01830: date format picture ends before converting all of the input string

    Select sum (e.gl_fig) in the rm_gl e where e.as_on_dt < = trunc (to_date('31-Nov-2011'), 'Q')-1


    Moreover, how many days are there in November? It IS 30 or 31?

    Please change from 31-Nov-2011 to November 30, 2011, then it works.

    select sum(e.gl_fig) from rm_gl e where e.as_on_dt <= trunc(to_date('30-Nov-2011', 'DD-MON-YYYY'),'Q')- 1

Maybe you are looking for