Jump to content

how do i update 2D array with fixed size?


Recommended Posts

Dear friends,


i want to store an element to the fixed array say two dimensional array has 10 rows and 3 columns and i want to store each and every element generated by knob to be stored into that 2D array one by one. when all rows and columns get filled then array has to update the element again by overwriting from starting....


here i tried using crossrule for this issue..but arrays goes on increasing ..i want fixed array size to be updated for every 10 iterations....and another basic method i tried but all the rows and columns get filled with same data generated by knob...


anyhelp would be appreciated....

store 10 different elements 1.vi

Link to comment

Thanks for the reply todd...event structure is good to generate digital 1's and 0's but for analog control it eats CPU memory and deteriorates the performance of my program.. this is part of my code thats y maximum i avoid event structure for analog control..


Believe me i used slide control to control the valve..it seems to be fine for half an hour operation after that it starts eating cpu and hangs PC for few seconds and came back to control again and found that eats cpu memory ...i reported this issue to NI...


Anyway is it possible to do without event structure...


Thanks todd once again for your quick reply...

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By Yean95
      Hello ! I've been trying to solve this problem for two days and I really need help on this.
      So I have a weekly progress table as below :
      As long as there's already a non-empty column for the PES #, the rest of the empty column after that non-empty column needs to show 0%. How should I do this?

      I need to make it into this table as below:

      Thank you so much in advance !
    • By Andersen Chen
      hello everybody,
      i want to index column 0~39,how to achieve and simplify
      thank you for help
    • By bingbot
      1: How to get last index, not last element, but last index number of an 2d array?
      2: say 2d array has contents
      elephant  crow    dog      goat
      giraffe      eagle   cat       fly
      ant          pig        horse   bee
      How to get that the bee is the 12th or 11th index in the array? (11 if you count elephant as zero index, 12 if you count elephant as first index), meaning I want the index number 11 or 12, not "bee"
    • By pkeny
      I am having trouble on learning what to do after you input a file into labVIEW. I cannot seem to find help on this topics. I have seen many videos and tutorials on how to read and write excel/text (.csv) files. But, I am not able to do anything after importing an text/excel file into labVIEW.
      So, I was wondering if someone had a simple VI that they could share. In the end, I want to do some automation so it will read a number and a status from excel. And then that number and status will either turn on or off a switch which controls something else. 
      Anyways, I would greatly appreciate if someone could share a VI as an example of how to manipulate the data to control something after you import a text/excel file into labVIEW.
    • By chris754
      (If this is not the right forum, please move as appropriate)
      Yesterday, I was trying to capture the "key down?" event on a string array control. I noticed that the event would never get fired while typing into one of the strings in the array. The event does fire if you type in the index control of the array. My question: Is this expected behavior or a bug? After trying a few things, I can get the behavior I want by getting a reference to the "ArrElem" and registering it for the "key down?" event and passing the into the dynamic event terminal. This is fine for my purposes and will implement my code in this fashion. However, I certainly was not expecting this event to behave in this way. I guess I could see why this may be the case (you are typing into a string control, not an array) but curious what other people think...
      This was all done in LV2013.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.