Loss of data when resizing table 2D

I data collection and insert in a table I did great I know will be used.  I then resize the table using SetArrayBounds, because I now know the number of iterations that have been executed.  I find myself with an array of correct size, but the data consist of the first line with only the first column is missing.  All other elements are 0 (matrix of numbers).  Any idea what's going on?

I wanted to start with an empty array, resize to any line and the number of columns before you start the iterations, then add a line at the beginning of each iteration.  I was shot on this, but it seems that it works better.

Kelly Bersch

Hi Kelly,

Could you show us the code you used to implement? Specifically, the resizing of the table? http://forums.NI.com/T5/NI-TestStand/what-is-the-syntax-for-SetArrayBounds-for-a-multi-dimensional/t... This thread shows the correct syntax for the command and its implementation.

If I understand correctly that you slowly fill this table which has been initialized to 100 x 100. The first thing we should do is to initialize the array to 100xthe number of columns if at least we can stop worrying about the columns since you already know how many settings you are testing. Then at the end of the sequence, you can resize the lines using the above command.

Tags: NI Software

Similar Questions

  • Loss of data when you save it to a file?

    Hello

    I have problems with my data recording. I acquire at 2.5 MHz for 5 seconds and when I view it I don't see 1.2 s data, if you use a single channel, or unless, as 0.4 s data, when getting the 8 channels.

    My vi is attached and also a picture of him. To analyze it, I use "TDMS File Viewer" (PDM - File Viewer.vi):

    Attached, it is also a picture of the file viewer. Check the number of samples (225000) and the time when it was taken (19/11/2008 16:14:30.423) and (2008-11-19 16:14:31.362). With a 2.5 MHz, there should be much more samples than what is there...  The last sample (which was not shown in the photo) is time (19/11/2008 16:14:30.513), only 0.1 s after having begun to acquire data.

    Is the problem with the queue? If this is not the case, why are data not saved?

    Thanks for the help,

    Rafael

    Your consumption (bottom)) thread will be scuttled as soon the producer (top) out of wire. Leave the upper loop kills the queue; Dequeue item returns an error, and writing to a file won't do anything if there is an error on the entry. If all the remaining items in the queue when he was killed are lost. The best way to solve this problem is to add another loop of thread; After your existing while the loop closes, loop with a short (10 msec) delay until the queue is empty (by Get Queue Status). Kill the queue only after all your results have been written to disk.

  • Is there loss of data when I have other operations at an event?

    Hello. I am a new user to NOR-DAQ.

    Now I develop a sampling program HAVE continuous for the NI USB-6229 case.

    The environment settings are 8 channels under 2 kHz sampling frequency. In the program

    I need to save the data in a csv file each time than in quite awhile, let's 500ms, through the 'event '.

    mechanism. I tested that it takes about 32 ~ 48ms to write the data of 500 ms.

    This 'event' appears as a software interrupt for me so I was wondering if the DAQ hardware

    continues to record new data while I perform the write operation in the case?

    Or put in another way, when I set up the task of sampling with the function

    "DAQmxCfgSampClkTiming", the "sampsPerChanToAcquire" parameter is described in

    be used as a factor to determine the size of buffer. Is this the intended "AI FIFO" buffer buffer

    by the "M series user manual? This means that if I put it to an appropriate value data

    will always go in this buffer first and then read by the computer, so if the transfer is fast

    enough, there is no data loss?

    Thank you in advance.

    Data are recorded by the data acquisition apparatus and stored in the FIFO buffer.  The reading VI DAQmx then takes the amount of data specified on the FIFO and brings the data in your program level.  So as long as your buffer is large enough, you won't lose any data.

    Here are some other suggestions.

    Focus on the architecture of producer/consumer .  It is a way to put writing files in another thread to process and record data at the same time.

    Lean on the function TDMS flow in the DAQmx palette.  It is a way to bypass the program level and get a log file of the data.  The data format will be PDM and not a CSV file.  But there is a plugin to read the TDMS files in Excel.

  • Format of the date when the table was created

    Hi all

    Is it possible to create the table with the specific date format: as I want to create table with the format date must be in the format "mmddyyy" or no matter what specific.

    I am using oracle 11g

    Thank you

    Hello Abbas85,

    not only the dates Oracle occupy only 7 bytes, but using DATES give some benefits, like:

    -verification of the data: the system will not accept things like '44-JAN-2014' or 15 months,...

    -date arithmetic: it's so easy and convenient to be able to do things like "date2 - date1", or "date 1 + x days!"

    -l' effectiveness of the index: when stored as dates, Oracle knows that there's only one second between 27-APR-2014 23:59:59 and 28 April 2014 00:00:00, but if it is stored as strings or numbers, for example there is a bigger difference between 20140331235959 and 20140401000000 and between 20140331010203 and 20140331195959. This may mislead the optimizer...

    But in any case if for any reason any bad you persist in the idea of storing dates as numbers or strings, be sure to keep the items in the order YYYY MM DD HH24 MI SS; at least the order is respected. With the help of MMDDYYYY would be really sad!

    And on the addition of certain "quality check" If you use for example a 8 string ((aucune heure min sec)): this can be achieved with a constraint, as for example

    SQL > CREATE TABLE aajessica1986 (a_date TANK (8) CHECK (TO_DATE (a_date, 'MMDDYYYY') > DATE ' 1900-01-01'));

    Table created.

    SQL > INSERT INTO aajessica1986 VALUES ('15212014');

    INSERT INTO aajessica1986 VALUES ('15212014')

    *

    ERROR on line 1:

    ORA-01843: not one month valid

    SQL > INSERT INTO aajessica1986 VALUES ('10082014') / * (but maybe the user has waited 10 - AUG and not 08 - OCT) * /;

    1 line of creation.

    Best regards

    Bruno Vroman.

  • The loss of data when disable call forward

    I was not happy with the quality of the VoLTE calling ahead, so I decided to turn it off. After neutralizing him and then make a call, I lost the data connection. The 4GLTE disappears, replaced by 1 X. The call quality is better without VoLTE. Any suggestions?

    jaifuss,

    Your phone works as expected with Advanced calling off. If you have advanced calling off and place a phone call, the data connection will be reduced to 1 X and data will not function during a call. If you are in a 4G area and you advanced calling on the call will be routed on the 4G (VoLTE) network. This is why your data will continue to work. Call HD and video calls work only if you are calling from another device advanced calling (VoLTE). To make a long post short, so what you see with the login data is normal while during a call with Advanced calling off.

    That being said, I'll lock this thread before he gets rained on immediately. jaifuss, do not hesitate to send me a message if you want to discuss this further or have any other questions.

    Kind regards

    Tom

    Motorola support

  • Bug report - activate the quick start causes filesystem corruption and loss of data for Windows 8 NTFS when it is used by Windows 8 and Windows 2008R2SP1

    My hard disk configuration is as follows:

    Disc 1: 0.5 terabytes
    Disc 1 - Partition 1 Windows 2008R2SP1
    Disc 1 - Data Partition 2
    Disc 2: 1 terabytes
    Disc 2 - Partition 1 Windows 8
    Disc 2 - Data Partition 2
    After you install Windows 8 RTM and used for about half a day, I started in Windows 2008R2SP1. From the start in Windows 2008R2SP1, I had "one of your disks needs to be checked for consistency", and it proceeded to chkdsk both the 2008R2SP1 and Windows drives data. No problems were detected
    I don't think a lot of it... and goes to copy several files from disc 1 - 2 Partition on drive 2 data - data Partition 2
    Then, I started Windows 8 RTM one 2 weeks later and told me that 'one of your drives should be checked for consistency", and it proceeded to the chkdsk disk 2 - data partition 2 and found a small number of questions. But after that, all files, I had copied in 2 Disk - Partition 2 data were GONE!
    So I decided to reboot and start Windows 2008R2SP1... and I got the "one of your disks needs to be checked for consistency" again this time what we found thousands of questions! He supposedly fixed, but my files (more than 200Gbytes) still LEFT!
    I believe that it is this same problem: the bug - report serious corruption of system files and loss of data caused other NTFS de Windows 8 CP readers but I think it was not fixed on CP, and it is now on GTR!
     
    One more thing why this site (http://answers.microsoft.com) don't have any option to ask questions about Windows 8 RTM? I had to choose' other/unknown '
     
    Update:
     
     
     
    Apparently if you use the option "Turn on the quick start (recommended)" in your Power Options, when you turn off your machine, it's not really turn and that's why he won't let NTFS in a consistent state, and so, if the disc is read by another Windows, it will try to 'fix' cause corruption...
     
    This could mean, even a double start between 2 windows 8 facilities system would auto destroy...

    Hello

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums. You can follow the link for your question.

    Windows Server 2008 IT Pro Networking Forum:

    http://social.technet.Microsoft.com/forums/en-us/windowsserver2008r2general/threads

    Kind regards.

  • . Files NEF (Nikon D600) in Camera Raw (bridge CC) appear extremely saturated to the point of loss of data. When exporting, the images are very good.

    . Files NEF (Nikon D600) in Camera Raw (Adobe CC) appear extremely saturated to the point of loss of data. When exporting, the images are very good. There is no update available.

    As it appears in Camera Raw

    In camera raw.PNG

    Exported

    Exported.PNG

    In Bridge, open camera raw preferences and uncheck the option of graphics processor at the bottom of the dialog box.

  • Error when inserting XML Date in the Table

    Hi all

    I am working on Oracle 11 g and trying to insert a date XML in the table but get error - below

    Query - insert into TableName (ID, CREATION, CREATEDBY) VALUES (50, *'2010 - 12-15 T 12: 57:19'*, 'Name')

    Error - java.sql.SQLDataException: ORA-01861: literal does not match the format string

    CREATED column datatype is Date

    When I try to use sysdate instead of hard-coding XML date of obtaining inserted successfully into the table. Please let me know how to pass this XML format date.

    Thanks in advance.

    Concerning
    Nikhil

    I don't see any XML in what you posted. In any case:

    "2010 12-15 T 12: 57:19'.

    is a string, not a date. Use:

    to_date('2010-12-15T12:57:19','YYYY-mm-dd"T"HH24:mi:SS')

    For example:

    SQL> create table tbl(created date);
    
    Table created.
    
    SQL> insert into tbl values('2010-12-15T12:57:19');
    insert into tbl values('2010-12-15T12:57:19')
                           *
    ERROR at line 1:
    ORA-01861: literal does not match format string
    
    SQL> insert into tbl values(to_date('2010-12-15T12:57:19','YYYY-MM-DD"T"HH24:MI:SS'))
      2  /
    
    1 row created.
    
    SQL> 
    

    SY.

  • How publish data from the table with some data loss all post in the forum

    I wonder how people are displayed the data in the table or the result of a query with losing them its format from Sqlplus display when they post in the forums of Oracle. I searched on the basis of knowledge of DB but I see no article about it. can you please help me or direct me to this link, I tried different options using code and other tags but nothing has worked, thank you for your help. Thank you.

    Edited by: Ariean October 3, 2011 12:34

    You can click on the link to the FAQ at the top right: http://wikis.sun.com/display/Forums/Forums+FAQ.

  • Table does not display data when the page is loaded.

    Hi all

    I am using jd 11.1.1.4

    I have an adf Table in my web page created from a VO and a query pane to find the table,
    When I initially loda page table shows all the lines, but when I press the search button in the query Pereira, the table displays lines.
    I want the data in the table shows that when the page loads, pls tell me how to do this.

    Thanx

    Hello

    Try to set the option to refresh on the iterator in the PageDef to "always."

    Or add the pageDef ExecuteQuery method and add an invokeAction to your executable files.

    Kind regards
    Stijn.

  • 2.1 RC1 - strange behavior when you change the data in the table

    I recently found a new strange behavior of the SQL Developer. On a small table or a table with a filter where all the data is loaded, but not all lines can be displayed on the screen, trying to change the data in the table. When I confirm the editing with the key enter, Developer SQL jumps always until the end of the data. Quite confusing and boring. The cursor seems to remain in the field that I have edited, then moving upward or downward line force SQL developer to this line.

    Appears not to be the case when all the data are loaded instead of punch, but if you force Developer SQL to load all the data, I can reproduce this strange behavior.

    Sven

    Bug 9205959 is fixed.

    -Rambeau

  • How insert/DML data in the table when the data in the related table changes

    Hello guys!

    I came across a problem that I need to get fixed. Because I don't know how to start and get it resolved I wanted to ask you for your expertise.

    The scenario is as follows:

    I have a table 'a' in my 10g database and a view "ab" which combined table 'a' with 'b' table in a view. However, the 'b' table is a table in another schema Manager database. and accessible (read only right) via a database link.

    Now here it is: whenever the data changes in table "b", for example 2 new sets of data is inserted, I need to insert automatically the 2 values of these 2 sets of data in my table "a". Same procedure for update and delete in table "b".

    The action that inserts data into the table 'a' must be initialized in my database, I have limited access to the other. Can I somehow use a trigger my reviews of "ab" to insert data into the table "a"? Or is it possible to use the "change notification procedure database" using the view as the reference?

    Desperately need help and example of all suspicion/code greatly appreciated. I am very new to Oracle and not very fond of PL/SQL routines. So please be so kind as to give me more details.

    Thanks in advance - I hope you have any ideas how I can get this problem resolved.

    Sebastian

    >

    ... it does not, since the DDL operations are not permitted on the remote databases (ORA-02021). I can't create the trigger on a view either. :-(
    So what ways are left to insert data into the table 'a' when the related table changes?

    Please, help if you have an idea!

    Yes,
    You can't perform the DDL (create the trigger...) on remote databases as you can see...
    Try to create this trigger in the local database that will make DML (insert into...) on the remote database.

        CREATE OR REPLACE TRIGGER local_forward_pt_after_insert
         AFTER INSERT
             ON N2K_INV_PT
             FOR EACH ROW
    
         BEGIN
             -- Insert records into table "a"
             INSERT INTO TBL_PUNKTDATEN@remote_database_sid
              ( INT_NUMMER,
                STR_GEBIET
                 )
             VALUES
              ( :new.INT_INV_PT_NR,
                :new.GEBIET );
         END;
    

    Thank you

    Good luck

  • Read xls file and display the data in the table.

    Hello

    Try to read the data from an xls or csv file and fill the same data in the table. If I need to use the table to store the data from the file and display, hoping that someone could help.

    Thank you

    Hari

    Hi hari,.

    One thing that is very important when you use the Excel activeX interface (in case you need it) is good termination of worksheet/workbook/lettering handles.

    You need these handles to specify what cell in which file you are trying to access.

    If you are unable to throw each handle you have, then you will be left with ghost Excel process in your task manager, devours your system's memory.

    Thus, when debugging of your application, open the Task Manager and the watch as Excel treats created/destroyed and make sure that you end up with zero Excel process running when your application is closed.

    Also consider the case of fault for your program. Check that your exit routes did not omit any termination of handle.

  • back up my data on a table

    Hello

    This morning, I lost all my week end test data. You know a procedure secure my data in the event of an accident of electricity?

    Attached my VI. I export my datas from the table when necessary...

    Thanks a lot for your support

    Rémi

    remi69330 wrote:

    This morning, I lost all my week end test data. You know a procedure secure my data in the event of an accident of electricity?

    Save a file on your hard drive.  You should do this anyway.  I recommend that you take a look at the producer/consumer and use the second loop to write the data to a file.

  • Leak memory in a simple loop to save data in the table?

    Hello world

    I'm trying to set up a simple code to read a certain amount of data in a table at a fixed sampling rate and put these data in a local variable.  I'll put this on one OR cRIO-9073 using the scanning engine and the data comes from one NOR 9208 with a speed of approximately 250 Hz scanning, even if it is not really important at the moment.

    I made this little test VI which I suspect contains a memory leak, but I'm not able to identify it.  The reason for my suspicion is that when I run the vi on a VMWare virtual machine (LabVIEW 2010 on Windows XP) it claims soon that it is short-term memory.  Of course, the problem is perhaps elsewhere, but I hope that someone more experienced with LabVIEW programming will be able to find all the bugs very easily because it is really a piece very simpel to code. :-)

    I have included a copy of the VI with a screenshot to illustrate.

    Regards, Martin

    PS my code looks a bit awkward, so if anyone has a better solution, I'd be very happy to learn about it!

    Hello Martin,

    I would try a different approach to your problem. Currently you reshape your table each iteration of the loop. This means that the allocator memory of LV must find a new piece of contiguous memory each iteration of the loop. You're probably fragment your memory and so short of contiguous blocks of memory, leading to the release of messages from memory.

    For these types of tasks, I recommend having an array of fixed size that you initialize outside the loop and then use the Replace table subset in the loop for updating the values. This avoids the problem of allocating memory you use in.

    Alternatively, since I assume that you use the local variable to pass data to another loop, you can use a FIFO RT to manage data. A RT FIFO resembles a queue of LV, but it is designed so that you can keep determinism in your application. Set up an acquisition loop that exports data from the 9208 every 4ms in a RT FIFO. Then set up your processing loop to run at a slower pace - say every 200ms. The processing loop reads all the elements of the FIFO until it is empty every 200ms or a number of samples. The RT FIFO is fixed size, if you need to make it large enough to contain at least 200/4 = 50 samples. For more security, you should do several times bigger, maybe 200 samples. You can try different sizes of the FIFO and also to the different periods of your processing loop to your application's specifications.

    Using this method you do not have to create a counter to track items, since the reading of FIFO function can tell you how many items is in the FIFO and also when it is empty.

    I recommend you the example of Communication of FIFO of RT which comes with LabVIEW to get an idea of how to use these functions.

    Gerardo

Maybe you are looking for

  • Completely unstable on Satellite P100 Vista

    Hello I bought Vista Ultimate SB yesterday to 174 euros, went home and was happy to install it, buttried to run Vista on my P100, I can't work even for a few minutes without Hungs ;/installation crashes, completlty do not know why, or it freezes righ

  • installation of iXpand problems.

    Hello I bought an iXpand, but none of my devices to recognize. Unit is fully charged 9.3.2 update devices latest version of the app installed on devices I opened the app, and it asks me to connect flash player iXpand... think I do... nothing! Nothing

  • My desktop icons have all disappeared

    original title: my desktop icons have all disappeared, but I haven't lost the files, they are still on my computer/Office? As above. I seem to have pressed something that made me completely lose my office, I can't show all files or copy files on my d

  • cannot unpack a file,

    I am trying to download an updated driver for a specific part of the software but I don't have the option "extract" on the right by clicking on the file or I can't double-click on the file to run it, he constantly brings me to Winzip but I can't use

  • PSC 750 - erase memory?

    I have a PSC 750, I want to get rid of, but I keep reading articles on the copier/scanner that store information which can later be downloaded and stolen.  Anyone know if I should be delete anything before him giving away?  I can't find anything on t