Reverse array display

In my application I have a Boolean array display, and two arrays of double precision floating point numbers.
Also, I have some graphs, which I can make the lower right corner 0,0 which visually displays my process
The array displays element 0,0 in the upper left corner, how can I make the lower right element 0,0?
Thanks
Martin

If I was only doing the Boolean display, that could possibly be a solution.
But, because of the diversity of configurations, 4 X 20 to 12 X 50, the size of the text in the X and Y values, I need to still scroll the numbers.
Here is a picture of what the page looks like.
So, when I get a red indicator for a failure, I can scroll the numbers and make a correlation, between the Boolean and X/Y values.
But, I need to do the Diagonal Flip on all three arrays to coincide with the physical process.
Attachments:
Array Layout.png ‏103 KB

Similar Messages

  • How to reverse array display order?

    Is there a way to reverse the way labview displays array data?  When using a boolean array I would like the LSB to be on the right side.
    I know that you can use the reverse array function, but that changes the actual data. I would rather just change how the data is displayed.  Also I have quite a few and don't want to have to add that to all of them.
    Thanks

    It should be fairly trivial to add a reverse array before displaying the data. Keep in mind, when you display the data on the Front Panel, you can keep a parallel branch wire on the Block Diagram that is not affected by the Reverse Array.
    Also, if you are displaying many of these arrays, perhaps you could use a 2D array on the Front Panel to show all bitmaps at once? Or, a 1D array that contains a cluster of the Boolean array if the Boolean arrays are ragged/jagged. Using this method would be scalable, meaning you would need only 1 Reverse Array for N arrays you want to display.
    And smercurio_fc is right about the XControl being able to display a reversed array. But if you're not willing to drop Reverse Array in a few places, you're probably not willing to bite off the non-trivial task of creating an XControl (there's a moderate learning curve for getting the hang of creating a good XControl).
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • How do I reverse the displays?

    I see how to rearrange the displays but how do I reverse them?

    Not exactly sure what you mean by:
    "how do I reverse them?"
    So clearly you can change them left and right but maybe you mean change one to be the primary. (Having the tool bar.) You click and drag the tool bar represented in the display arrangement to the other display, making that the primary.

  • 11i FSG Reports - Non recognition of reversal when displaying entered cur

    Hi,
    I created an FSG report in which i was able to get 3 columns, the first one stands for GL Balances in LKR (Functional currency) and the next two columns stands for USD and GBP (Entered Currency)
    To get the two columns in entered currency i created a Column Set in which i parameterized the last two columns with two control values and adopted these control values when defining the Report. The Accounting Combinations were given to the row set for the first column and the Column Set for the second & third columns. By this i was able to get a report which showed the total balance in Functional Currency and two other columns to display journals entered in a foreign currency to the same account (USD and GBP).
    However, after reversing one of the earlier Journal Entries i posted in GBP, the relevant column in the Report did not get updated. The Functional Currency GL balance was updated.

    Hi,
    Have you updated the Translation balances after reversing the journal. I mean, you have to run the Translation program and update the required currency balances.
    Regards,
    Sridhar

  • Programming project - Reversed array

    I'm having a little trouble with this programming project. What I have to do:
    "Write a program named ReverseNumbers that prompts the user to enter 10 numbers, then writes the numbers in reverse order:
    Enter 10 numbers: 34 82 49 102 7 94 23 11 50 31
    In reverse order: 31 50 11 23 94 7 102 49 82 34
    Hint: Store the numbers in an array, starting at position 0. When printing the numbers, visit the elements of the array in reverse order."
    Here's what I have so far:
    import jpb.*;
    public class ReverseNumbers {
    public static void main(String[] args) {
    int[] reverse = new int [10];
    int num;
    int sum = 0;
    int sum2 = 0;
    int num1;
    for(num = 0; num < reverse.length; num++) {
    SimpleIO.prompt ("Enter ten numbers: ");
    String x=SimpleIO.readLine();
    reverse [num] = Integer.parseInt(x);
    for(num = 9; num >= 0; num--) {
    System.out.print( "  " + reverse [num]  );
    }

    warnerja wrote:
    Roridge wrote:
    Herko_ter_Horst wrote:
    Roridge wrote:
    You could delimit your input entry with a comma and then split on the input String to get your integers. e.g. "1,2,3,4,5,6,7,8,9,10"Right, because comma's are so much better than spaces...Yeah, well at least I Suggested something... you are so Elitist!I could have suggested that the OP bake a cake, but that would have helped about as much as you did.
    You are so Noobist!What is the deal with you two, are you like two lovers sitting next to each other determined to prove your Elite status?

  • Removing Movieclips from an Array Displayed on stage

    Hi Everyone ,
    I am new to AS3 so please forgive me in advance if I end up annoying anyone ;(
    I need some help in removing Movie Clips from the stage , these were initially loaded off an array
    Here is the Code with the NEXT Button , : for both ARRAYS , Notes and Notes15 ( referring to 15th frame)
    function nextframepop2(Event:MouseEvent):void{
    trace("Mouse Enabled");
    removeChild(notes15[4]);
    removeChild(notes15[3]);
    removeChild(notes15[2]);
    removeChild(notes15[1]);
    removeChild(notes15[0]);
    nextFrame();
    function nextframepop1(Event:MouseEvent):void{
    trace("Mouse Enabled");
    removeChild(notes[1]); // This is Line 635 , but I am not sure what I am doing wrong here.
    removeChild(notes[0]);
    nextFrame();
    I am calling this Function with an If Statement , I need to make sure all the Movie Clips are loaded before the End User decides to move to next slide.
    Here is what I get when I run the Next Button ,
    ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
    at flash.display::DisplayObjectContainer/removeChild()
    at PORTDemoPresent_fla::MainTimeline/nextframepop1()[PORTDemoPresent_fla.MainTimeline::frame 2:635]
    Can anyone please help ?

    Based on what you show it is likely that some other function (like the one before it as shown) has already removed the object.  What you should do is learn to use the trace function to troubleshoot your code.  In this case put in a trace anywhere you add or remove the same object that tells you whether it is added or removed and which line of code it is, realizing that you might be storing the same object with different references to it.  That way you should be able to isolate where things are being removed when you don't expect them to be.

  • Hello guys need help with reverse array

    Need help reversing an array, i think my code is correct but it still does not work, so im thinking it might be something else i do not see.
    so far the input for the array is
    6, 25 , 10 , 5
    and output is still the same
    6 , 25 , 10 , 5
    not sure what is going on.
    public class Purse
        // max possible # of coins in a purse
        private static final int MAX = 10;
        private int contents[];
        private int count;      // count # of coins stored in contents[]
         * Constructor for objects of class Purse
        public Purse()
           contents = new int[MAX];
           count = 0;
         * Adds a coin to the end of a purse
         * @param  coinType     type of coin to add
        public void addCoin(int coinType)
            contents[count] = coinType;
            count = count + 1;
         * Generates a String that holds the contents of a purse
         * @return     the contents of the purse, nicely formatted
        public String toString()
            if (count == 0)
                return "()";
            StringBuffer s = new StringBuffer("(");
            int i = 0;
            for (i = 0; i < count - 1; ++i)
                s.append(contents[i] + ", "); // values neatly separated by commas
            s.append(contents[i] + ")");
            return s.toString();
         * Calculates the value of a purse
         * @return     value of the purse in cents
        public int value()
            int sum = 0; // starts sum at zero
            for( int e : contents) // sets all to e
                sum = sum + e; //finds sum of array
            return sum; //retur
         * Reverses the order of coins in a purse and returns it
        public void reverse()
           int countA = 0;
           int x = 0;
           int y = countA - 1;                                          // 5 - 1 = 4
           for (int i = contents.length - 1; i >=0 ; i--)                        // 4, 3 , 2, 1, 0
                countA++;                                             // count = 5
            while ( x < y)
                int temp = contents[x];
                contents[x] = contents [y];
                contents [y] = temp;
                y = y- 1;                                         // 4 , 3 , 2, 1 , 0
                x = x + 1 ;                                             // 0 , 1,  2  , 3 , 4
    }

    ok so i went ahead and followed what you said
    public void reverse()
          int a = 0;
          int b = contents.length - 1;
          while (b > a)
              int temp = contents[a];
              contents[a] = contents;
    contents [b] = temp;
    a++;
    b--;
    }and its outputting { 0, 0, 0, 0}
    im thinking this is because the main array is has 10 elements with only 4 in use so this is a partial array.
    Example
    the array is { 6, 25, 10, 5, 0, 0, 0, 0, 0, 0,}
    after the swap
    {0, 0 , 0 , 0, 0 , 0 , 5 , 10 , 25, 6}
    i need it to be just
    { 5, 10, 25, 6}
    so it is swapping the begining and end but only with zeroes the thing is i need to reverse the array without the zeroes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Reverse / Negative Display Colors

    Hi,
    I have no idea how my brother managed to screw up the color scheme on this computer. It seems all the colors are Negative of what they should be ( i.e. Blue displays as Yellow, white as black , and so on ) . I tried restarting the computer and on restart everything seems normal to the point that I guess it sets the color preferences , after which all the colors show up reversed.I tried going through system preferences and there is really nothing that I see that can cause this. I asked my brother how he managed to do this and he said he touched something on the keyboard?
    Any help is appreciated.

    Ok, I was going to unmark this as a question but figured someone else might have the same problem. It is fixed.
    Check System Preferences -> Universal Access and make sure you don't have the settings altered through keyboard shortcuts ( happens when someone tries to clean or dust keyboard while plugged in ). My problem was it was set as White on Black .

  • Array display trouble

    i have an array that when its searched it displays the result in JOptionPane windows, but if there are more than one result it will show it up in one then another one comes up after and displays in there to. i want them both displayed in the same box part of my coding is here:
    if (inputbox == 1){
    String input2 = JOptionPane.showInputDialog("Please enter a flight number eg QF5");
    for (int row = 0; row < 21; row++) {
    if (Flights[row][0].equals(input2)){
    JOptionPane.showMessageDialog(null,"flight " + Flights[row][0] + '\n' + "Will be leaving from " + Flights[row][3] + " and going to " + Flights[row][4] + '\n' + "Departing at: " + Flights[row][1] + " And will arrive at: " + Flights[row][2]);
    }i use a menu system at the start which they press a number, in this example its 1, it will take them to another box that askes them to enter a flight number which it then searches the array for. it works ok if there is only one answer but if there is more than 1 then it shows them in seperate boxes, i want them in the same box.
    thanks for having a look

    Sorry, attached the wrong VI so I'm reposting because I ran out of time to edit! This may be a little overly-complex so there may be a better way. But let me know if this is more what you're looking for. You'll have to add the logic for the greater than into the for loop yourself. Also, I am not sure what you want to compare index 0 from the array to. Do you want to skip the comparison there or compare it to zero? If you want to skip that comparison and just start at index one, you could use a case structure around all the code in the for loop and if i=0 you don't do anything.
    Edit: Just realized you weren't looking for a difference but an equality, you will have to modify the code a bit but hopefully this is a starting point.
    CLA, LabVIEW Versions 2010-2013
    Attachments:
    Untitled 1.vi ‏14 KB
    ramp.png ‏14 KB

  • Array Display

    I have created a two-dimensional array after collecting information from various objects in the form and I want to display it. What is the easiest way to display each element discretely without building tables and stuffing each cell discretely because that involves too much coding!
    Any suggestions will be appreciated.

    q-bertsuit wrote:
    The program runs fine the way it is now if it is left alone. No problem gathering and displaying the data. It only reacts to external events such as mouse scrolling, changing windows, clicking etc. Would chaning the design have any effect on this? After initialization, the program enters a loop that only aquires data and passes it to an array. Thats it. I dont really see how that can be optimized?
    Thanks for your inputs guys!
    I can esily imagine someone being offered an aspirin tablet years ago reacting similarly saying "I don't see how putting something in my stomach is going to help my headache."
    GUI updates are handled in a single thread.
    When you are not touching the screen the GUI thread has little to do. WHen people are poking at it it has to work harder.
    If the sinlge thread is part of the code flow, it becomes a bottle neck.
    You fix the bootle neck by getting it out of the way of the other tasks. That can be done by seperating the work so the GUI stuff is not involved with the acquistion work.
    YOu don't have to change it if you can live with it.
    I am just trying to explain what you are seeing and offer a method to change it.
    Its your call.
    have fun!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Help.  Somehow my toddler reversed the display on our macbook pro.  Documents are now black with white type.  Photos look like negatives.  I have tried to undo this but I don't know how!

    If anyone knows how to undo this, I would greatly appreciate it.  Clearly I am outsmarted by a 2 year old!

    Maybe your child likes "negative-image" ... who are you to judge?

  • How to reverse Pen-tilt display/cursor?

    Took a screen shot of a Youtube vid, then took a screen shot of the screen shot. Essentially, I don't have that grey box anymore. I dropped the pen and it swapped it to the cursor. So now I see the tilt and brush shape instead of the circle and the grey box is completely gone. How do I get the box back?

    It should be fairly trivial to add a reverse array before displaying the data. Keep in mind, when you display the data on the Front Panel, you can keep a parallel branch wire on the Block Diagram that is not affected by the Reverse Array.
    Also, if you are displaying many of these arrays, perhaps you could use a 2D array on the Front Panel to show all bitmaps at once? Or, a 1D array that contains a cluster of the Boolean array if the Boolean arrays are ragged/jagged. Using this method would be scalable, meaning you would need only 1 Reverse Array for N arrays you want to display.
    And smercurio_fc is right about the XControl being able to display a reversed array. But if you're not willing to drop Reverse Array in a few places, you're probably not willing to bite off the non-trivial task of creating an XControl (there's a moderate learning curve for getting the hang of creating a good XControl).
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • How to change the display order of Boolean Array

    Hi,
    I'm inputting an Hex number and want vi to display it as a Boolean array of indicators.
    The LSB appears to be on the top if the array goes up and down or, on the Left most while going right and left.
    As in Registers, the LSB is always on the Right most.
    How do I change the order of this display 180 degrees, so that the LSB is on the Right?
    Thanks
    Rafi

    Use the "reverse Array" from the array palette.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to display photos in reverse order (new to old) in photo stream?

    In the main Photo Stream (my Photo Stream) which often contains many photos, is there a way to reverse the display order so the newest pictures are shown first? This was the default in one of the old software versions. It would nice nice to have a button to do this.

    No, but if you wish to provide feedback to Apple you can do so using the link.
    http://www.apple.com/feedback/

  • How to display array

    Hi, I have a problem to display array from my database. The following are the two files that I tried to input multiple values in mailaddress database in the second file and I tried to display the values from the database when the user login the first file. The values are recorded in the database well but I always got java.lang.NullPointerException error in my first file. I checked the code, it shows that array display wrong. Would you please help me? Thanks a lot in advance.
    <zhangmailinputtest.jsp>
    <%@ page language="java" contentType="text/html; charset=Shift_JIS" %>
    <%@ page import="beanYama.*,java.sql.*,java.util.*,java.text.*" %>
    <%@ include file="inc_conv_char.jsp" %>
    <%
    String uid =(String)session.getAttribute("uid");
    String unam =(String)session.getAttribute("unam");
    String depart =(String)session.getAttribute("depart");
    String perms =(String)session.getAttribute("perms");
    String flag =(String)session.getAttribute("flag");
    if(flag==null){
         response.sendRedirect("index.jsp");
    }else{
    %>
    <html>
    <body>
    <%!      String[] name;
         String[] departa;
         String[] email;
    %>
    <%
              Connection con = null;
              Statement stmt1 = null;
              ResultSet rsq = null;
              Class.forName("org.gjt.mm.mysql.Driver");
              con=DriverManager.getConnection("jdbc:mysql://localhost/progress?user=ntjs&password=ntjs&useUnicode=true&characterEncoding=Shift_JIS");
              stmt1=con.createStatement();
         rsq=stmt1.executeQuery("SELECT name AS name1 from mailaddress;");
              if(rsq.next()){
                   for (int i=0;i<name.length;i++) {
                   name[i] = rsq.getString("name1");
                   rsq.next();
              stmt1.close();
              con.close();     
    %>
    <form action="zhangmailtestfinal.jsp" method="post">
    <table width="60%" border="1" cellpadding="1" cellspacing="1" bordercolor="#000099">
    <tr>
    <td width="20%"><div align="center">Name</div></td>
    <td width="20%"><div align="center">Department</div></td>
    <td width="50%"><div align="center">Address</div></td>
    </tr>
    <tr>
    <td><input type="text" name="name" size="25" value="<%=name[0]%>" align="middle"></td>
    <td><input type="text" name="departa" size="25" align="middle"></td>
    <td><input type="text" name="email" size="53"align="middle"></td>
    </tr>
    <tr>
    <td><input type="text" name="name" size="25" align="middle"></td>
    <td><input type="text" name="departa" size="25" align="middle"></td>
    <td><input type="text" name="email" size="53"align="middle"></td>
    </tr>
    <td><input type="text" name="name" size="25" align="middle"></td>
    <td><input type="text" name="departa" size="25" align="middle"></td>
    <td><input type="text" name="email" size="53"align="middle"></td>
    </tr>
    <tr>
    <td><input type="text" name="name" size="25" align="middle"></td>
    <td><input type="text" name="departa" size="25" align="middle"></td>
    <td><input type="text" name="email" size="53"align="middle"></td>
    </tr>
    <td><input type="text" name="name" size="25" align="middle"></td>
    <td><input type="text" name="departa" size="25" align="middle"></td>
    <td><input type="text" name="email" size="53"align="middle"></td>
    </tr>
    <tr>
    <td><input type="text" name="name" size="25" align="middle"></td>
    <td><input type="text" name="departa" size="25" align="middle"></td>
    <td><input type="text" name="email" size="53"align="middle"></td>
    </tr>
    <td><input type="text" name="name" size="25" align="middle"></td>
    <td><input type="text" name="departa" size="25" align="middle"></td>
    <td><input type="text" name="email" size="53"align="middle"></td>
    </tr>
    <tr>
    <td><input type="text" name="name" size="25" align="middle"></td>
    <td><input type="text" name="departa" size="25" align="middle"></td>
    <td><input type="text" name="email" size="53"align="middle"></td>
    </tr>
    <td><input type="text" name="name" size="25" align="middle"></td>
    <td><input type="text" name="departa" size="25" align="middle"></td>
    <td><input type="text" name="email" size="53"align="middle"></td>
    </tr>
    <tr>
    <td><input type="text" name="name" size="25" align="middle"></td>
    <td><input type="text" name="departa" size="25" align="middle"></td>
    <td><input type="text" name="email" size="53"align="middle"></td>
    </tr>
    </table>
    <input type="submit" name="save_button" value="Save">
    </body>
    </CENTER>
    </html>
    <%
    %>
    <zhangmailtestfinal.jsp>
    <%@ page language="java" contentType="text/html; charset=Shift_JIS" %>
    <%@ page import="beanYama.*,java.sql.*,java.util.*,java.text.*" %>
    <%@ include file="inc_conv_char.jsp" %>
    <%
    String uid =(String)session.getAttribute("uid");
    String unam =(String)session.getAttribute("unam");
    String depart =(String)session.getAttribute("depart");
    String perms =(String)session.getAttribute("perms");
    String flag =(String)session.getAttribute("flag");
    if(flag==null){
         response.sendRedirect("index.jsp");
    }else{
    %>
    <html>
    <body>
    <%!
         Connection con = null;
         PreparedStatement ps = null;
         ResultSet rs = null;
    %>
    <%
         String[] name = request.getParameterValues("name");
         String[] departa = request.getParameterValues("departa");
         String[] email = request.getParameterValues("email");
    try{          
              Class.forName("org.gjt.mm.mysql.Driver");
              con=DriverManager.getConnection("jdbc:mysql://localhost/progress?user=ntjs&password=ntjs&useUnicode=true&characterEncoding=Shift_JIS");
              Statement stmt0=con.createStatement();
              stmt0.executeUpdate("delete from mailaddress");
              String query ="INSERT INTO mailaddress (mail_userid,name,departa,email) VALUES (?,?,?,?)";
              ps = con.prepareStatement(query);
                   for (int i=0;i<name.length;i++){
                   ps.setString(1,uid);
                   ps.setString(2, name);
                   ps.setString(3, departa[i]);
                   ps.setString(4, email[i]);
                   ps.addBatch();
              ps.setString(4,uid);
              int[] results = ps.executeBatch();
              Statement stmt1=con.createStatement();
              ResultSet rsq=stmt1.executeQuery("SELECT name AS name1 from mailaddress where mail_userid=" + "'" + uid + "'" + ";");
              if(rsq.next()){
                   for (int i=0;i<name.length;i++) {
                   name[i] = rsq.getString("name1");
                   rsq.next();
    } catch (Exception e) {
                   throw new ServletException(e);
              } finally {
                   try {
                        if(rs != null) {
                             rs.close();
                             rs = null;
                        if(con != null) {
                             con.close();
                             con = null;
                   } catch (SQLException e) {}
    %>
    </html>
    <%
    %>

    Where exactly is the exception being generated?
    My guess is this bit here:
    if(rsq.next()){
      for (int i=0;i<name.length;i++) {
        name = rsq.getString("name1");
        rsq.next();
    }I don't think your name array has been initialised in this file. Plus it assumes that the name array has exactly the same number of items as the query returns. To me thats rather dubious...
    I would suggest this instead
    while (rsq.next()){
        name = rsq.getString("name");
    }I'm still not entirely certain what you are trying to accomplish, but thats probably the cause of the null pointer.
    good luck,
    evnafets

Maybe you are looking for

  • Pricing date

    Hi, What is the significance of the Pricing date control in the info record and purchase order. Where can I see the pricing date control field in the enjoy transaction. I can see it in the ME22 screen but not in the enjoy transaction? -Chetan

  • Can I use my car stereo connected to my iPhone when I have it an Apple watch connected?

    Can I use my car stereo connected to my iPhone when I have it an Apple watch connected? In short, I want my phone to connect to my car audio when I'm driving rather than my Apple watch.

  • SPident command not found SLES 11

    I have a SLES 11 server running ZLM 7.3 and with SLES10sp1 & 2 I could run SPident -vv to verify my system was up-to-date. When I type SPident -vv in SLES 11 I get the following: # SPident -vv If 'SPident' is not a typo you can run the following comm

  • Oracle Express 10g - SQL Command Line - copy and paste?

    Is there a special key to copy and paste SQL statement in the SQL command line? I'm doing a spool and this can only be achieved through the SQL command line. Thanks for the help if any.

  • Valign top issues - please help!

    hi hi, ok I am not a beginner but not quite an expert (yet!) Small issue: I built this page and want it to all to align to the top of the page. I added valign="top", however still does not work. Did I place it in the wrong spot? Here is my test page: