Can express VI, Build Table, display two numerical representa​tions?

I have a string,converted to a number, and two other numbers built into an array. The string that is converted to a number is actually a hex number read from a serial device. I am using the express VI, Build Table, to display the data on the from panel. The problem is that I want to display the one result as hex and the other two as a fractional with two digits of precision. Is there a way to do that or is it better to do it from scratch and not use the express VI in this case? Any help would be appreciated.
Thanks,
Troy

Express VIs are great for doing some things but they lack some of the versatility of the regular functions. Because of your mix of data types that you wanted to represent, the Express VI was unsuited to the task and the modification I made to your program is actually simpler (just look at how much code is inside the build table Express VI some time.
As to your second question, you will need to have a shift register maintain the contents of the table so that each repetition of the loop will append new data to the table. In the smiple example that I had attached in an earlier post, there is a shift register doing exactly that. I initialize the shift register at the start of the program with an empty 2D array. Each time the Add button is pressed, it takes the new row and appends it to the existing 2D array that is connected to the table. At some point, you might also want to consider redoing your program to eliminate all of those sequence structures. They make programs harder to read and debug. I would add some error in/error out connections to your serial VI. This would help you enforce dataflow without using sequences. It would also help track down problems shen an error does occur.

Similar Messages

  • How can i build table with two user name columne  ?

    How can I build view with two columns for user name ( one create and the other
    Can change also ) 
    And to display full name ( the user name is the key but not display  ) ?

    Hi,
    Creating View
    •     From initial screen of data dictionary(T.Code: SE11), enter the name of object i.e. view.
    •     Select view radio button and click on the push button.
    •     Dialog box is displayed for types of views.
    •     Select the view type.
    •     On the next screen, you have to pass following parameters.
    •     Short text
    •     In the table box you need to enter the table names, which are to be related.
    •     In join table box you need to join the two tables.
    •     Click on the TABFIELD. System displays the dialog box for all the table fields and user can select the fields from this screen. These fields are displayed in the view fields box.
    •     Save and Activate: When the view is activated, view is automatically created in the underlying database system. As long as the table exists in the database, the view also exists (Unless you delete it).
    Regards,
    Bhaskar

  • Express DAQ data output to two numerical indicators

    Hi,
    I'm a complete Labview newbie, so apologies if this is a really obvious question, but after reading through pages of documentation I still can't get anywhere.
    I'm using a PCI 6220 data acquisition card, and want to measure 2 independant currents, outputting each value on a seperate numeric indicator.
    I used the DAQ assistant, and set up the two signals without too much trouble in the box that appears when you double click the assistant. If I connect the data output on the box diagram to a graph indicator, I can see both signals fine, but I would much prefer a numeric indicator for each signal. I can connect one, and that works fine: displaying the first current measurement I defined, but I can't see any way to get the second current measurement displayed in the same manner.
    All help welcome!
    Thank you

    I've attached a screenshot of the VI and the DAQ assistant configuration window thing - hopefully this helps explain what I mean(!)
    I don't seem to be able to choose a channel for the numeric indicator?
    Attachments:
    VI_screenshot1.jpg ‏366 KB
    daq_assist screenshot1.jpg ‏146 KB

  • Can't get the table display my results

    OK After some good hours of debugging i am able to display my results on JTable for my queries. But i got another problem now. When i select Query2 from my JComboBox and click on execute button nothing happens, same thing for query3 and 4. The only thing which works is QUERY1 why? what am i doing wrong?
    import java.awt.FlowLayout;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.JOptionPane;
    import javax.swing.JTable;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.TableModel;
    import java.awt.event.ActionEvent;
    import java.sql.Connection;
    import java.sql.Statement;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.ResultSetMetaData;
    import java.sql.SQLException;
    import java.util.Vector;
    public class DatabaseProgramming extends JFrame implements ActionListener{
         static final String JDBC_DRIVER = "com.mysql.jdbc.Driver";
         static final String DATABASE_URL = "jdbc:mysql://localhost/employees";
         static final String USERNAME = "jhtp6";
         static final String PASSWORD = "jhtp6";
         private static final String QUERY1 = "SELECT * FROM employees WHERE DEPARTMENTNAME = 'SALES'";
         private static final String QUERY2 = "SELECT * FROM hourlyEmployees WHERE hours >= '30'";
         private static final String QUERY3 = "SELECT * FROM commissionEmployees ORDER BY commissionRate DESC";
         private String names[] = {"QUERY1", "QUERY2", "QUERY3", "QUERY4"};
         private Connection connection;
         private ResultSet resultSet;
         private Statement statement;
         private ResultSetMetaData metaData;
         private JTable resultTable;
         private JComboBox queryBox;
         private JButton button;
         private int number;
         private boolean connectedDatabase = false;
         private DefaultTableModel dtm;
         public static void main(String[] args) {
              DatabaseProgramming frame = new DatabaseProgramming();
              frame.setVisible(true);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         public DatabaseProgramming() {
              super("Testing Database");
              setLayout(new FlowLayout());
              //dtm = new DefaultTableModel(getColumnName(number),0);
              //     statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
                   //         ResultSet.CONCUR_READ_ONLY);
              queryBox = new JComboBox(names);
              queryBox.setEditable(false);
                   //queryBox.addActionListener(this);
                   button = new JButton("EXECUTE");
                   resultTable = new JTable();
                   button.addActionListener(this);
                   add(queryBox);
                   add(button);
                   add(resultTable);
                   //add(result);
                   setSize(400,400);
          public void actionPerformed(ActionEvent e)  {
              String selection = (String)queryBox.getSelectedItem();
                        if(selection.equals(names[0]))
                        validateQuery(QUERY1);
                        if(selection.equals(QUERY2))
                             validateQuery(QUERY2);
                        if(selection.equals(QUERY3))
                             validateQuery(QUERY3);
          public void validateQuery(String query) {
                   try {
                        Class.forName(JDBC_DRIVER);
                        connection = DriverManager.getConnection(DATABASE_URL, USERNAME, PASSWORD);
                        System.out.println("Yay Database Connected");
                    Vector col = new Vector();
                    Vector data = new Vector();
               statement = connection.createStatement();
                  resultSet = statement.executeQuery(query);
                  metaData = resultSet.getMetaData();
                  number = metaData.getColumnCount();
                  for(int i=1; i<=number; i++)
                       col.addElement(metaData.getColumnName(i));
                  while(resultSet.next()) {
                       Vector row = new Vector();
                       for(int i=1; i<=number; i++)
                            row.addElement(resultSet.getObject(i));
                       data.addElement(row);
                 resultTable.setModel(new DefaultTableModel(data,col));
                 resultTable.revalidate();
               catch ( SQLException sqlException )
                  sqlException.printStackTrace();
                  System.exit( 1 );
               catch(ClassNotFoundException e) {
                    e.printStackTrace();
               finally
                  try                                                       
                     statement.close();                                     
                     connection.close();                                    
                  catch ( SQLException sqlException )
                     JOptionPane.showMessageDialog( null,
                        sqlException.getMessage(), "Database error",
                        JOptionPane.ERROR_MESSAGE );
                     System.exit( 1 );
    }

    One last question how can i display the columnName on my JTable? Add the table to a scroll pane and the scroll pane to the frame.

  • How can I get HyperTrend to display the numeric value output of a CHOOSE statement?

    I have non-linear values I need to display on a HyperTrend graph.  I'm currently converting the input raw signal to a Units (Engineering) value and then looking up the actual value (from a calibration chart) using a CHOOSE statement in order to display the actual value on a panel, but I need to display the values output by the CHOOSE statement on a HyperTrend graph, along with other similar values.
    How can I do this?

    I have non-linear values I need to display on a HyperTrend graph.  I'm currently converting the input raw signal to a Units (Engineering) value and then looking up the actual value (from a calibration chart) using a CHOOSE statement in order to display the actual value on a panel, but I need to display the values output by the CHOOSE statement on a HyperTrend graph, along with other similar values.
    How can I do this?

  • Sorting table - display two "sorting triangles"

    When I implement sorting on JTable I need to press the table header in order to see the "sorting triangle".... when I press again I see it inverted because the sorting order changes....
    Is this possible to display both triangles (and only highlight one of them if the sorting is applied for specified column)?
    Thanks

    When I implement sorting on JTable I need to press the table header in order to see the "sorting triangle"add this line and the triangle will be showing, above the already-sorted column
    table.getRowSorter().toggleSortOrder( [columnNumber] );

  • Where is Table display (Tabular reporting) in nw2004s Query designer?

    Hi Experts,
    I'm doing NW2004s BI project.
    Is there any guy who can see or use table display function (for tabular reporting) in nw2004s Query designer?
    I can see it in frontend patch version BW SP09 903 (but icon was inactive ( though I was using only one structurein query)  . but it disappear in patch version SP10 .
    Please let me know the true!

    Hi,
       SAP said that the function will not be supported in query designer. You have to use report     designer. Please check note 1002271.
    Best Regards,
    Jeff

  • Table Display in BI 7.O

    Hi All,
    I need to display keyfig then Characteristic( Right hand side coloum of keyfig i need to show characterstic).
    I think, we can achieve this through "Table display" in 3.X but, I didn't find the option in BI 7.0.
    Please let me know where can i find this option...
    Thanks in advance.
    Jim

    Hi..........
    SE16N u2013 General Table Display
    Check this link :
    http://www.sd-solutions.com/documents/SDS_SE16N.html
    Also you can check the following link for table display in query:
    http://help.sap.com/saphelp_nw04/helpdata/EN/f1/0a569ae09411d2acb90000e829fbfe/content.htm
    It may help you..........
    Regards,
    Debjani........
    Edited by: Debjani  Mukherjee on Sep 13, 2008 8:10 AM

  • How to display two waveforms in one waveform chart?

    hellow!anyone can tell me how to display two waveform together in one waveform chart? thanks!

    Hello,
    An easy way to tell how to make multi-plot charts and graphs is to hold your mouse over the chart/graph terminal on the block diagram and make sure Context Help (Help >> Show Context Help) is enabled. This screen will tell you how to connect the indicator for a multiple-plot display.
    You might want to take a look at my attached screenshots of a working multi-plot chart.
    Hope this helps!
    Liz F
    National Instruments
    Attachments:
    Multi-plot_chart.bmp ‏902 KB

  • Where is the build table express vi located in the function table?

    I must be blind but I can't locate the build table express vi in lv8 or 8.5.  Someone slap be upside the head and point it out.  Thanks

    It's on the Controls palette. Were you looking on the Functions palette?
    Message Edited by Dennis Knutson on 04-23-2008 08:22 PM
    Attachments:
    Express XY Graph.PNG ‏17 KB

  • How can i  change the column label text in a alv table display

    how can i change the column label text in a alv table display??
    A similar kinda of question was posted previuosly where the requirement was the label text was needed and following below code was given as solution :
    <i>*  declare column, settings, header object
    DATA: lr_column TYPE REF TO cl_salv_wd_column.
    DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    DATA: lr_column_header type ref to CL_SALV_WD_COLUMN_HEADER.
    get column by specifying column name.
    lr_column = lr_column_settings->get_column( 'COLUMN_NAME1' ).
    set Header Text as null
    lr_column_header = lr_column->get_header( ).
    lr_column_header->set_text( ' ' ).</i>
    My specific requirement is i have an input field on the screen and i want reflect that value as the column label for one of the column in the alv table. I have used he above code with slight modification in the MODIFYVIEW method of the view since it is a process after input. The component gets activated without any errors but while run time i get an error stating
    <i>"The following error text was processed in the system CDV : Access via 'NULL' object reference not possible."</i>
    i have checked in debugging and the error occured at the statement :
    <i>lr_column = lr_column_settings->get_column( 'CURRENT_YEAR' ).</i>Please can you provide me an alternative for my requirement or correct me if i have done it wrong.
    Thanks,
    Suri

    I found it myself how to do it. The error says that it is not able to find the reference object i.e  it is asking us to refer to the table. The following piece of code will solve this problem. Have to implement this in WDDOMODIFYVIEW method of the view. This thing works comrades enjoy...
      DATA : lr_cmp_usage TYPE REF TO if_wd_component_usage,
             lr_if_controller  TYPE REF TO iwci_salv_wd_table,
             lr_cmdl   TYPE REF TO cl_salv_wd_config_table,
             lr_col    TYPE REF TO cl_salv_wd_column.
      DATA : node_year  TYPE REF TO if_wd_context_node,
             elem_year  TYPE REF TO if_wd_context_element,
             stru_year  TYPE if_alv_layout=>element_importing,
             item_year  LIKE stru_year-i_current_year,
             lf_string    TYPE char(x),
      DATA: lr_column TYPE REF TO cl_salv_wd_column.
      DATA: lr_column_header TYPE REF TO cl_salv_wd_column_header.
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    Get the entered value from the input field of the screen
    node_year  = wd_context->get_child_node( name = 'IMPORTING_NODE' ).
    elem_year  = node_year->get_element( ).
      elem_year->get_attribute(
       EXPORTING
        name = 'IMPORT_NODE-PARAMETER'
       IMPORTING
        value = L_IMPORT_PARAM ).
      WRITE L_IMPORT_PARAM TO lf_string.
    Get the reference of the table
      lr_cmp_usage  =  wd_this->wd_cpuse_alv( ).
      IF lr_cmp_usage->has_active_component( ) IS INITIAL.
        lr_cmp_usage->create_component( ).
      ENDIF.
      lr_if_controller  = wd_this->wd_cpifc_alv( ).
      lr_column_settings = lr_if_controller->get_model( ).
    get column by specifying column name.
      IF lr_column_settings IS BOUND.
        lr_column = lr_column_settings->get_column( 'COLUMN_NAME').
    set Header Text as null
        lr_column_header = lr_column->get_header( ).
        lr_column_header->set_text( lf_string ).
    endif.

  • How can I use an Express database build with RAA in Express Objects???

    Hello, everybody!
    I have installed Express Server and Client on my computer. I've build an Express database With Relational Access Manager mapping data from an Oracle database.
    Now I want to use this express database in Oracle Express Objects.
    I understand that an express database build with understand can be used by defining a connection to Express Server and using the option Relational Access Manager Connection.
    But, I didn't understand the settings of this option. I open the settings window and there it is :
    - the MASTER DATABASE Box where I have to write the name of the CUBE from the express database build with understand?
    - the RDC File Box : what do I have to write here? I've read the HELP but I didn't understood. There is no file with the RDC extension in my computer.
    Thank you for your help!
    Anca.
    [email protected]

    you can extend it, very easly, with an Airport Express.
    once you connect the AExpress, on the App Airport Utility, in Wireless tab choose to "Extent a Network", you will be able to select your Network enter your Network Password and it is done
    i have 2 AExpress to extend my signal and also to Airplay to Remote Speakers and works perfectly
    good luck

  • Any calendar app that can display two calendars per day side by side?

    Is there any app that can display two calendars (data sync with iCloud Calendars) side by side?  e.g. one calendar for planning and the other for actual / diary.

    Calendar can have two or more calendars calendars listed at the same time.
    Each can be a different color for identifidation.
    The first screenshot shows that the Medical and Joint calendars are shared calendars.
    Will that work for you?

  • Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotfo

    Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotform.com, but this form doesn't search the site, instead it sends me an e-mail. Do you have a solution for me? Thanks.

    Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotform.com, but this form doesn't search the site, instead it sends me an e-mail. Do you have a solution for me? Thanks.

  • Can Pages display two windows of the same document?

    Can Pages display two open windows of the same document? In editing my book and looking for duplications of stories or material, it would be very helpful to see side-by-side windows. Is this possible?

    Peggy
    They must have misread your:
    "Please may I have multiple views of the same document."
    as
    "Please delete 90 features from Pages and mangle any old documents it opens."
    An easy mistake anybody could make.
    Peter

Maybe you are looking for

  • Problem with AJAX in IE (new) with a good explication

    Hi, I´m having a problem with the appendToSelect, only working on IE, that´s why delete the else from the function: function appendToSelect(pSelect, pValue, pContent) { var l_Opt = document.createElement("option"); l_Opt.value = pValue;      if(docum

  • How do I update to photoshop camera raw 8.6 in PhotoshopCC

    When I try to edit a lightroom file in PhotoshopCC I get a message This version of lightroom may requiire the photoshop camera Raw plugin version 8.6 for full compatibility. Please update using Photoshop help menu. When I use photoshop help and click

  • Movement type 457

    Hi friends, I got a customer return of  item ABC with quantity 1. after post goods issue. "1" apprear under "Return" in MMBE, the same time,  line item in MB51 with 651 and 1. Then I need go MIGO transfer posting use move type 457 to transfer this "1

  • Automatic PO Print

    Hi The issue here is the PO is getting print automatically some time with out manual or user intervention. We found in NAST table the filed name NAUTO is set to "X" means automatic Wats the table for condition record? Vijay

  • ¿puedo instalar nuevamente el photoshop en otro computador

    Buena Tarde, robaron mi computador a mediados de abril, necesito instalar nuevamente el programa de photoshop, actualmente pago una mensualidad de $9.99, el No. de pedido es [removed by moderator]  lo hice el 07/12/2013, no recuerdo el No. de contras