Array concept

Hi
In C program we have concept of array a(i) where we can increment the i value
Similarly i want to increment my variable in abap program is tht possible if yes can any one explain me...
Thanks in advance.
Maya

in string u ahve concept called offset....check it....
data : a type string,
b(1) type c.
a = 'abcdef'.
b = a+0(1).
write :/ b.
b = a+1(1).
write :/ b.
*check this...!!!!
data : c type i.
c = 5.
b = a+c(1).
write :/ b.
try using this...!!!
u can increment variable c in above program...!!!!
but for grouping different types of fields.......then <b>internal table</b> is option...!!!!

Similar Messages

  • Array concept in oracle

    I wanted to know if there is List/array concept in oracle like we have in C,C#.
    The reason behind asking this question is. I have a CSV files which has thousands of line of integers separated by comma. So let says the first file has the data that looks like -
    File1.txt -
    1,2,3,4
    5,6,8,9
    12,22,23,1,3
    I have another CSV file that has thousands of line of integers separated by comma which looks like.
    File2.txt
    5,6,7,8,9
    10,22,3,4,5
    What I was trying to achieve was to get the list of Int array which is present in File1.txt and not in File2.txt. Please note that the order of number in an array is not relevant. So, 1,2,3,4,5 is same as 4,5,3,2,1
    I tried to solve this with C# but it's taking too much time. So I wanted to explore if this is possible using oracle array/list concept.
    Please suggest

    >
    Sorry I did not included the full detail. So, for "4. Used a logic that excludes List2 from List1. " what I used was Linq query which looks like InputNumberList2.ForEach(x => InputNumberList1.RemoveAll(inner => inner.SequenceEqual(x))); ( I tried without using Linq too but no difference in time)
    >
    I'm not familiar with 'Linq' queries but from the description on this page (http://msdn.microsoft.com/en-us/library/bb397676.aspx) that appears to be doing a full iteration of the integer array for EVERY FILE2 ENTRY. That performance would be TERRIBLE. That is roughly equivalent to a cartesian join between two tables; something you almost never want to do.
    A hashmap.put and remove is very fast in comparison.
    >
    So, if I understood correctly, what you are suggesting is -
    1. First instead of int array , have a string array.
    2. use Hashtable or dictionary.
    >
    You have both. The int array holds the array of integers from the 'split' done on a record: '4,2,3,1' becomes an int array with 4 values.
    You sort the array and then create a string from it: Your input string is '4,2,3,1' and the new string would be '1,2,3,4' in order.
    You use the new string as the key to the hashmap and the record number the string came from as the value.
    When you add the new string (the HashMap 'put' method) the 'put' method returns 'null' if that string did not already exist but returns the previous value (the record number) if the string did exist.
    So if record #1 of file1 has the string '4,2,3,1' it will be stored in the map using myMap.put('1,2,3,4', 1) and that call will return NULL. Then if record #4 has the string '3,2,1,4' it will be stored in the map using myMap.put('1,2,3,4', 4) and that call will return '1' since that string already exists. You can now log that as a duplicate that exists in file1: the string you would log is '1,2,3,4' and the record number you log is '1'. By log I mean write to a file, put in a list/map, etc.
    That way you can always use your 'duplicate' list to find the original records in your input file by their record number.
    >
    Also I am not clear on this part - "And when your delete of a file2 string succeeds (meaning you had the same value in file2 as you had in file1) you can log THAT information to a 'file2_value_exists_in_file1' file with the record number of both the file1 and the file2 record."
    >
    The same concept applies here. For each file2 entry instead of myMap. put you use myMap.remove to try to remove the file2 string. The 'remove' method returns NULL if the string doesn't exist and returns the record number if the key DOES exist. So if the return value is NOT NULL then the returned record number is the record number in file1 that had that same string.
    You can save that file1 record number and string value in a list that represents file1 strings that also existed in file2. And you can save the file2 record number and string as the matching record from file2.

  • Array concept in abap

    I want to know concept of table(array). i want to take name of 5 student from user and display on screen.how can i increment variable.

    hi
    you use internal table to fetch the data from database and use it for further processing. this will help you decrease hitting the Database frequently and hence improve your performance.
    in ur case:
    REPORT  ZM1                                     .
    DATA: BEGIN OF ITAB OCCURS 0,  " Internal table
            NAME(30),  " Char type
          END OF ITAB.
    SELECTION-SCREEN BEGIN OF BLOCK B1.
    PARAMETER: P_NAME LIKE ITAB-NAME.
    SELECTION-SCREEN END OF BLOCK B1.
    START-OF-SELECTION.
    SELECT <field>
      FROM <table>
      INTO TABLE ITAB
      WHERE <condition>.
      IF SY-SUBRC = 0.
        LOOP AT ITAB.
          WRITE:/ ITAB-NAME.
        ENDLOOP.
      ENDIF.
    **reward if helpful
    regards,
    madhu

  • Is there arrays or FOR loops in ABAP?

    Hi everyone!
    Is there an array and FOR loops in ABAP similar to the C Language?
    If there is, please give example. _
    Thanks a lot!

    Hi,
    There is no array concept in ABAP but there are field-symbols which are same as pointers in C.As for the FOR loop there is no such command in SAP/ABAP but we do have the do..while and loop...endloop commands.There is also CASE statements and if..endif commands.
    Thanks,
    Sandeep.

  • Arrays in XSLT Mapping

    Hi,
    Can we use arrays in our XSLT mapping? if yes, please let me know with a example
    Best Regards
    Deepika

    Hi deepika,
    There is no Arrays concept in the XSLT, but there are some ways.
    check this links
    http://bytes.com/groups/xml/87168-xslt-associative-arrays
    http://www.velocityreviews.com/forums/t167975-xslt-associative-arrays.html
    http://www.stylusstudio.com/xsllist/200409/post30980.html
    http://www.stylusstudio.com/xsllist/200102/post41240.html
    Regards
    Ramesh

  • How to define an array in ABAP

    Hi experts,
       Can we define an array in ABAP. if yes then How. plz help.
    Regards.
    Vaibhav Tiwari.

    Hi,
      There are no array concept in abap, instead of array there are internal table and field strings in abap.
    Ex.
    data : begin of itab occurs 10,
              matnr like mara-matnr
              mbrsh like mara-mbrsh,
              end of itab.
    data : begin of itab,
              matnr like mara-matnr
              mbrsh like mara-mbrsh,
              end of itab.
    Regards,
    Prashant

  • How to achieve Multi Dimensional array in Oracle

    Hi,
    Pls give me a solution to achieve the Multi dimensional Array concept in Oracle.
    I've used Nested table concept in which I did not find any Equivalent for the array structure in COBOL given below
    01 customer_record.
    &nbsp&nbsp&nbsp03 telephone_number occurs 3 times.
    &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp05 country_code pic 999.
    &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp05 area_code pic 999.
    &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp05 local_number occurs 2 times.
    &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp08 prefix pic 999.
    &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp08 subscriber_number pic 999.
    Thanks in Advance
    Regds,
    Arkumar

    What about VARRAYs and user defined objects?

  • Benefit of Removing CAS array

    Hi,
    What's the benefit of Removing CAS array in Exchange 2013.

    Are you asking why 2013 does not have the RPC Client Access Server array concept? If so, remember that the server that hosts the active copy of the mailbox database is the one that services the protocol, and the conversion from HTTP - RPC happens locally. 
    CAS 13 is just a protocol proxy, unlike CAS07 and CAS10.
    Do a search for "Every server is an island"  
    Cheers,
    Rhoderick
    Microsoft Senior Exchange PFE
    Blog:
    http://blogs.technet.com/rmilne 
    Twitter:   LinkedIn:
      Facebook:
      XING:
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • Collection in ABAP

    Hello Friends,
    Is there some kind of collection or Array concept in ABAP, Like in JAVA ( Java.util.Collection)??
    In loop I want to take values 1 by 1 and store it in some kind of collection ??
    Many thanks
    Marek

    Hi Marek
    As Suekrue stated, in ABAP the closest concept to an "array" is an "internal table". You can think of them as structured and semanticly-defined matrices. They are like database tables, but are not persistent i.e their lifetime is the programs' runtime.
    You can define an internal table in various ways.
    <u><b>e.g.</b></u>
    DATA: BEGIN OF gt_itab OCCURS 0 ,
            <colmun_1> LIKE/TYPE <data_element/variable> ,
            <colmun_2> LIKE/TYPE <data_element/variable> ,
            <colmun_n> LIKE/TYPE <data_element/variable> ,
          END OF gt_itab .
    With this data declaration, you define an internal table having n columns and several rows (row number is not indicated).
    Alternatively, you can define internal table type at data dictionary and refer to them as
    DATA gt_itab TYPE <DDIC_table_type> .
    or you can refer a structure to be the row-type of an internal table as:
    DATA gt_itab LIKE <DDIC_structure> OCCURS 0 .
    However, reaching to specific records is not done directly indicating the coordinate. You read rows to a work area and reach its field by "-" operator.
    <b><u>e.g.</u></b>
    READ TABLE gt_itab INTO gs_itab INDEX 5 . "read fifth row"
    WRITE:/ gt_itab-<column_name> .
    For more information, I strongly recommend you to inspect SAP Online Help whose address was mentioned at Sidharth's post and the book
    <a href="http://www.sap-press.com/product.cfm?account=&product=H958">"ABAP Objects — The Official Reference" A comprehensive guide to all ABAP language elements</a>
    by Horst Keller & Joachim Jacobitz
    or
    "ABAP Objects: Introduction to Programming SAP Applications" by Horst Keller, Sascha Kruger.
    *--Serdar
    Message was edited by: Serdar Simsekler

  • Why Interface

    What is the goal of interfaces? I mean that
    I see in some books interfaces provides multiple inheritance.
    But I don't understand this issue. Because you are not implementing
    any code in the interface class. So what is the advantages of using
    interface, just to remember what to code? I think in such a way that
    implement the new class without using an interface. Because what you
    will do with interface, is same amount of work not less. Please
    anyone explain this issue to me. Thanks...

    "Interface" as such a strong concept of Object Oriented Programming Model. In simple English what an interface defines is just a contract {or just you can say "Promise"}. But it gives the freedom of implementation.
    A classic example would be interface IStack, this interface promises the user that it supports "push" and "pop" operation in "Last-In-First-Out" fashion. However the person who implements the stack can used any technique convenient for him, keeping the promise fulfilled. He can use linked list concept, Array concept or any new way he finds, but for user it is just "push" and "pop" operations.
    In real world, interface play's role of "Standard". In a situation where multiple vendors ship libraries, it is good to have common API's for the user of library. User always programs against the interface, by this he gains the advantage of changing the supporting library from 3rd party dynamically.
    Coming to your second point, �Interface provides multiple inheritance� is not the correct way of saying it. In my understanding by using multiple interfaces does not makes any class as inherited from multiple base classes as it would do in C++, in Java context using multiple interface makes a class polymorphic. What I mean here is same instance of class will behave differently by accessing different interfaces implemented by it.
    For example if a class �Person.java� implements two interfaces �Imanager� and �Iclerk� what all it means to us is, we can use {or treat} instance of person either as instance of Imanager or as Iclerk.
    For last part of your question �Why at all interface when I have to code every time?� There is a concept called as programming against Interfaces. What exactly this means is you define most likely behavior of an object and declare that as Interface, by doing so your code becomes stable against changes.
    To make you understand more, consider following algorithm:
    In procedural oriented style:
    CalculateSalary (person x) {
    If (x.type == �Manager�)
    CalculateManagerSalary()
    Else if (x.type = �cleark�)
    CalculateClerkSalary()
    In above code you see that if there is new person category �Technician� then apparently you have to modify you source to add new if condition and also you have to add new method something like CalculateTechniciasalary()and you have to compile you code, make it a library, etc.
    In Object Oriented style:
    Little better but still-
    CalculateSalary (Person x) {
    x.CalculateSalary()
    But the problem in above approach is that we are assuming Person �knows� how to calculate his salary. What I mean by this statement is that you should know the entire API�s provided by the person to work with. In c++ language, making Person as base class of all worker class could solve this. When new worker comes into existence all we have to do is just inherit him from base class Person. Now an important question arises. Is it always necessary to be Person in order to get salary? What if the firm also hires animals like elephant for some work and plans to pay through normal salary procedure? Do we have to have new overloaded method �CalculateSalary (Animal y)�? Or should we inherit Elephant from �Person�?
    In Design pattern style:
    We define the procedure as an interface say for example �ICalculateSalary()�. This interface promises us that �when asked for, I will calculate my Salary for you� and whole method changes to -
    CalculateSalary (ICalculateSalary x) {
    x.CalculateSalary()
    Now an Elephant�s salary can be determined with out having to declare new overloaded method or inheriting from �Person�, same is the case with Pigeon. What all of them have to do is implement the interface �ICalculateSalary� to let others calculate salary with out having to know much about Pigeon or Elephant.
    This should make you comfortable.
    Regards,
    K.V.

  • Help needed for Pie chart rendering

    Hi All,
    I have a question related with pie chart rendering. I tried this example with manual node creation. This worked fine for me. After that i tried to change using array concept. But i held up with one issue.
    var mySeq = [50, 100, 75];
    var angleSeq = [0, 80, 240]
    var angle = 360;
    var total = 225
    The Arc length is calculated as 0-80, 80-240, 240-360 respectively.
    So created another
    My the Arc creation code is looking like that,
    For (i in mySeq)
    Arc {
    centerX: 200
    centerY: 200
    radiusX: 200
    radiusY: 200
    startAngle: ? // For first this should be 0, second 80 and third 240
    length: (i*angle)/total //For first 80, second 160 and third 120
    type: ArcType.ROUND
    fill: Color.BLACK
    How to define the startAngle dynamically. I tried with another array like
    For (I in mySeq, j in angleSeq). Then I bind the value of j to startAngle. But no positive result for me.
    Can anyone help me on this issue?
    This is my first try with JavaFX. So i want to finish this successfully. Please help me

    Try this:
    var mySeq = [50, 100, 75];
    var angleSeq = [0, 80, 240];
    var angle = 360;
    var total = 225;
    for (i in mySeq) {
        for( j in angleSeq ){
            Arc {
                startAngle: j
                length: (i * angle) / total //For first 80, second 160 and third 120
                type: ArcType.ROUND
                fill: Color.BLACK
    }or
    var N = 3;
    for (n in [0..N-1])
            Arc {
                startAngle: angleSeq[n]
                length: (mySeq[n] * angle) / total //For first 80, second 160 and third 120
                type: ArcType.ROUND
                fill: Color.BLACK
            }

  • Seek strategy advice after acquired OCA

    Dear all,
    I'm seeking advice from whom is willing to share strategy on how to get a job after OCA is acquired. The situation is this, I was in networking industry with 4 years experience but was cut short because of the changing trend in the economy and decided to focus career on Oracle related job. I just completed my first 1Z0-051 exam and preparing my next exam to get OCA.
    My concern is that I wasn't that young (I'm 36) and don't have any experience in database world whatsoever even though I have background in computer and electrical engineering. What is the best strategy to start my career in the industry as soon as the certification is acquired?
    best regards,
    Val

    jgarry wrote:
    As one who has seen network admins thrown into DBA work and fail miserably, I'd say your best option might be a smaller company that requires a spread of skills among a few people. That way you can impress them with your previous skills while developing your current ones. My impression is there are a lot of companies that have a few people in IT and those inevitably don't have a DBA but need the work done, and may not even know it. The problem with DBA work from a business perspective is that it is overhead. The problem from a skills perspective is that it requires quite a different view of solving problems (as well as being able to have multiple views of problems) and the real issues vary quite a bit from what is taught in OCA. So if you are good at switching hats on a moments notice, you might make the transition successfully. Some of the best DBA's I've run across came from math or EE backgrounds, and I think that is because they are taught to transform complex problems into solvable problems. Certification (especially network certs) emphasizes memorizing tasks, simply the wrong approach for solving complex problems. And that's why OCA has such a bad rap. Junior operational DBA's usually have boring repetitive tasks, but there is a lot more to DBA work than that.
    How to find such companies? That's a toughie. But keep at it, dealing with massive rejection is a marketing skill, which also helps in DBA work (in which by its nature, most success is invisible), and with a crashed improving economy full of companies that have lost good people, eventually you get something. If you are a mid-30's female, you have an advantage, believe it or don't (can't tell from Valerie, of course). I personally dislike linkedin, but it sure seems to be on a roll.would you be kind enough to publish the name of such guys who worked as marketing before and worked as a DBA just having only OCA ? !--! My dear friends word without an evidence has no value. !--! These days I found only OCA guys are not recruited to reputed companies !--! I found DBAs are not eligible   for BPO also !-_-! as they are not certified for BPO. I assure OP that vendors will shipped some job links after completion of your OCA along with your success kits -- few days back i get call for such !-_-! As a 500 --internal server error or network connection failure error or some database may be down or having some performance issue for storage also so DBA must know everything pl/sql is related to sql tuning which is a major part of PT and disk array concept is required also. so after knowing everything you can be a DBA. !-_-! . So my opinion is very simple first grab a job then learn by day by day,certification is useless unless it is supported by practical experience. And think 100 times to switch your domain always.Even after grabbing experiences you may found that certification has become more useless.As a DBA your friend will be alertlog and google and oracle docs will be your teacher.
    kind regards

  • The concept of Object Arrays

    for example, I have this code:
    String[] notItems = { "", "NOT" };
    //First 'Not' ComboBox
              notCombo = new JComboBox(notItems);
              notCombo.setPreferredSize(new Dimension(95, 40));
              notCombo.setBackground(new Color(241, 239, 240));
              notCombo.setForeground(new Color(93, 58, 64));
              notCombo.setFont(boxFont);
              notCombo.setEnabled(true);
    //Second 'Not' ComboBox
              notComboTwo = new JComboBox(notItems);
              notComboTwo.setPreferredSize(new Dimension(95, 40));
              notComboTwo.setBackground(new Color(241, 239, 240));
              notComboTwo.setForeground(new Color(93, 58, 64));
              notComboTwo.setFont(boxFont);
              notComboTwo.setEnabled(true);
    //Third 'Not' ComboBox
              notComboThree = new JComboBox(notItems);
              notComboThree.setPreferredSize(new Dimension(95, 40));
              notComboThree.setBackground(new Color(241, 239, 240));
              notComboThree.setForeground(new Color(93, 58, 64));
              notComboThree.setFont(boxFont);
              notComboThree.setEnabled(true);
    //Fourth 'Not' ComboBox
              notComboFour = new JComboBox(notItems);
              notComboFour.setPreferredSize(new Dimension(95, 40));
              notComboFour.setBackground(new Color(241, 239, 240));
              notComboFour.setForeground(new Color(93, 58, 64));
              notComboFour.setFont(boxFont);
              notComboFour.setEnabled(true);
    //Fifth 'Not' ComboBox
              notComboFive = new JComboBox(notItems);
              notComboFive.setPreferredSize(new Dimension(95, 40));
              notComboFive.setBackground(new Color(241, 239, 240));
              notComboFive.setForeground(new Color(93, 58, 64));
              notComboFive.setFont(boxFont);
              notComboFive.setEnabled(true);
    ...I understand that I can replace the five different 'notCombo' JComboBoxes with a single array of new ComboBoxes, and I could do notCombo[i] = new JComboBox(); in a for loop.
    I tried the following to test it out and it compiled ok (which I wasn't expecting because of the JComboBox[], but I got a null pointer exception on the line notCombo[0] = new JComboBox(notItems);
    private JComboBox[] notCombo;
    //First 'Not' ComboBox
              String[] notItems = { "", "NOT" };
              notCombo[0] = new JComboBox(notItems);
              notCombo[0].setPreferredSize(new Dimension(95, 40));
              notCombo[0].setBackground(new Color(241, 239, 240));
              notCombo[0].setForeground(new Color(93, 58, 64));
              notCombo[0].setFont(boxFont);
              notCombo[0].setEnabled(true);Plus further code to do with layouts and adding it to the Frame and getting values and resetting values etc. All works fine and I replaced every occurrence of the single notCombo with notCombo[0].
    Can anyone explain how this concept works and how I go about coding it in examples like this?
    Cheers.

    An array has to be created before you use it.
    This creates a reference (notCombo) variable. It is not initialised.
    private JComboBox[] notCombo;This creates an array of references to JComboBox objects, and assigns it to notCombo. Note that the references in the array are not initialized.
    notCombo = new JComboBox[10];This initialises the first reference in the array to point at a JComboBox object:
    notCombo[0] = new JComboBox(notItems);You omitted the middle step.

  • Very Basic..  Array list Concept.. using two arraylist..

    Hello all,
    Please clear my Arraylist concept.. the problem is that I am using two arraylist one.. in Spriteframe, and other in SpriteFramecollection.. and adding objects to them..
    the problem comes when am adding new frame to framecollection.. instead of adding new.. it changes all previous frames too.. I want to reflect change only in latest one..
    Lets explain me in detail..
    I have used like
    class Project..
         ---> Calculate Button
         ---> MultipleMove Button
         ---> Save Button
    In Calculate class..
         Sprite st = new Sprite();
         SpriteFrame sframe = new SpriteFrame();
         ..// I do some calculation
         st.newSprite(croppedimage, file, 0, 0, number, 0, 0);         //here am creating sprite
         sframe.addSprite(st);                            //here am adding sprite to Spriteframe
    In MultipleMove class..
         SpriteFrame sframe = new SpriteFrame();
         // do some adding and deleting of sprites in frame
    In save class..     //Problem comes here.. Am going crazy!!
         SpriteFrameCollection sframecoll = new SpriteFrameCollection();
         SpriteFrame frame = new SpriteFrame();
    --->     sframecoll.addSpriteFrame(frame);     <------- // am just adding frame to framecollection
         }Now when I am printing elements of Sprite.. frame1, and frame2 gets changed simultaneously.. I mean why frame1 also gets changed..
    am just adding new SpriteFrame.. to spriteframecollection..
    please someone tell me what is wrong in my concept of understanding arraylist..
    as making class objects again and again wrong..
    what should I do to add only newly Frame to framecollection??.. why all previous frame gets changed too.. ??
    gervini
    I have class Sprite, SpriteFrame, SpriteFrameCollection as shown below..
    import java.io.*;
    import java.awt.Image;
    public class Sprite               // Each single sprite
         Image img;
         File file;                 // is filepath where this sprite is located
         int xcord,ycord;           // xcoord,ycoord are real position in frame
         int numberinfile;           // this is the position of the sprite in the raw file
         int mirrorh, mirrorv;      // for normal=00,horizontal=10,vertical=01,both=11
         void newSprite(Image img, File file, int xcord, int ycord, int numberinfile, int mirrorh, int mirrorv)
              this.img = img;
              this.file = file;
              this.xcord = xcord;
              this.ycord = ycord;
              this.numberinfile = numberinfile;
              this.mirrorh = mirrorh;
              this.mirrorv = mirrorv;
    import java.io.*;
    import java.util.*;
    public class SpriteFrame                          // Full One Frame consisting of many sprites..
         static ArrayList spritelist = new ArrayList();               // arraylist containing many sprites
         void addSprite(Sprite sprite)
             spritelist.add(sprite);                              
        void removeSprite(Sprite s)
             spritelist.remove(s);
    import java.io.*;
    import java.util.*;
    public class SpriteFrameCollection                    // Consisting of many frames..
         static ArrayList spriteframelist = new ArrayList();          // Arraylist of many frames
         void addSpriteFrame(SpriteFrame spriteframe)
              spriteframelist.add(spriteframe);
        void removeFrame(SpriteFrame sf)
             spriteframelist.remove(sf);
    }

    It is hard to see what it coursing your problems becouse you only posted axtracts from your code. However I think that it is becouse every time you want to access the methods in SpriteFrame you ar creating a new object. Every time you create a new Strite fram a new, empty ArrayList is being created. What you want to do is create this only once, and pass this instance to the parts of your code that need it.
    Let me try to explain this using a matphor. 2 people are trying to make some tea. One person has access to water and another has access to teabags. Both of them know that there is such a thing as a kettle. What you are doing is; person 1 is creating a kettle and filling it with water. Then person 2 is creating a new kettle and trying to pour the water from it. obviously this doesn't work. You want person 1 to creat a kettle, fill it with water and then pass that kettle to person 2. person 2 takes this kettle and then pours the water from it.

  • Index array is not getting new values from DAQ

    I am measuring force values with my DAQ card and these values are always changing.  However, in my programming something is not working right with the way I have things set up.  After my DAQ I have a "Convert to Dynamic Data" and after that I have an "Index Array".  When the program is executing and I turn on the highlight option I do not get changing force values after the "Convert to Dynamic Data" and therefore no changing force values enter my "Index Array".  Whaterever the first value is that gets passed to the "Convert to Dynamic Data" is the only value that I get for the remainder of the program.  I tried plugging in an indicator between the DAQ and the "Convert to Dynamic Data" and it did show varying values.  Please help with my program.  I have tried messing with the properties of the "Convert to Dynamic Data" and nothing has worked.  I am stuck and cannot see how to fix this problem.  I have attached my program as it is currently put together.
    Thank You In Advance,
    Gabe.
    Attachments:
    Actuator_Gabe_Oct27_Flat_Sequence_XY_+Measurement_File.vi ‏131 KB

    Please know that the best option is to review the concepts discussed to further understand programming in LabVIEW.  Perhaps you could take a look through ni.com/gettingstarted and ni.com/lv101 to have a look at some of the online help materials.  I have included a VI snippet of the while loop containing the changes.  Further, the code you attached contains a lot of customer controls and VIs, which are not common to all LabVIEW users.  It is a best practice to only attach the code of value to the question/post, and to have the most simplified version of the problem.
    Best,
    Adam
    Academic Product Manager
    National Intruments

Maybe you are looking for

  • How to convert color image(24 bit) YUV 4:2:2 to gray scale 8 bit image

    I am using sony DFW-X700 color camera for one of vision applications.Does NI Compact Vision System(CVS) support YUV 4:2:2 format(8 bit each).I want to do gray scale processing, so i need to convert the YUV color into gray scale (8-bit) in the softwar

  • Request/Reply

    I'm having some trouble with my request/reply setup. Here's the requesting code: String request =      "<mileage-xml-request><origin><city>UNIONTOWN</city>" +      "<state>OH</state><zip>44685</zip><country>USA</country></origin><dest><city>DALAS</ci

  • Help?! Can I edit MTS files with Mac OX 10.04

    I have tried several times do edit MTS files in Final cut pro 6, but it does not recognise the files. After that I tried do converte the files to AVI or MPEG-4 and still the finla cut stop, just watching the clip... Is it possible that the OX 10.4 do

  • Is it possible to query different databases at once?

    I have databases representing some states. I want to get a count of records for each instead of having to query each individual database. So I want the output to look like: WY 12345 PA 1678 CT 187654

  • Upgrade MacBook Pro 2.1 to OS X 10.9

    I have a MacBook Pro 2.1 and I would like to upgrade to OS X 10.9.  Is there a way to achieve this?  I want to use Xamarin which can only be installed on OS X 10.9 for application development.