Insert data to a wide range of data

Hello world

This is my first Post here. I am buiding software for an autoprober and I have a large set of data (not really makes approximately 640 KB). There are many features on the plate so I want to minimize the time it takes to read/write data. I tried many different ways, but need me still several hundred ms to perform read/write of data, and this slower and slower when the data set grows. I'm using LabVIEW 8.5.1 and attached is my diagram to test a same die. I tried to use global variables, local variables, global functional variables, but I'm not able to improve performance. It is greatly appreciated if someone can help me on this problem. Thank you!

Best,

Betty

Betty wrote:

Hello world

This is my first Post here. I am buiding software for an autoprober and I have a large set of data (not really makes approximately 640 KB). There are many features on the plate so I want to minimize the time it takes to read/write data. I tried many different ways, but need me still several hundred ms to perform read/write of data, and this slower and slower when the data set grows. I'm using LabVIEW 8.5.1 and attached is my diagram to test a same die. I tried to use global variables, local variables, global functional variables, but I'm not able to improve performance. It is greatly appreciated if someone can help me on this problem. Thank you!

Best,

Betty

No, this is your second post! and LabVIEW 8.5.1 did not have an In-Place-element structure

Now, go watch the producer-consumer model (events).  READ the examples, and undrestand the method 'reporter FP' updated

Sorry if that sounded harsh

Tags: NI Software

Similar Questions

  • Help with 14400 ORA error while inserting data

    Hi all

    I am facing an error ora-14400 in the following scenario, please help.

    I created a table using the syntax:

    CREATE TABLE insert_table
    (
    NUMBER OF GRPKEY (20, 0) NOT NULL,
    N NUMBER (10, 0),
    JOVAN VARCHAR2 (250 BYTE),
    APC VARCHAR2 (2 BYTE),
    SID VARCHAR2 (65 BYTE),
    RDATETIME VARCHAR2 (BYTE 19),
    NUMBER OF CKEY (20, 0),
    AVER VARCHAR2 (25 BYTE),
    VARCHAR2 (250 BYTE) CVER,
    TNOM VARCHAR2 (50 BYTE),
    SCODE VARCHAR2 (30 BYTE),
    PTAPEZ VARCHAR2 (50 BYTE),
    NUMBER OF FILENUMB (10, 0),
    NUMBER OF LINENUMB (10, 0),
    DATE OF ENTRY_CREATEDDATE
    CONSTRAINT temp_table_PK PRIMARY KEY (GRPKEY))
    PARTITION OF RANGE (ENTRY_CREATEDDATE)
    (PARTITION P0 VALUES LESS THAN (TO_DATE (' 2009-01-01 00:00:00 ',' SYYYY-MM-DD HH24:MI:SS ',' NLS_CALENDAR = GREGORIAN ')))
    );


    When I try to insert data using the:


    insert into insert_table values
    (1, null, null, null, null, null, null, null, null, null, null, null, null, null, November 1, 2010 "");

    I get the following error output:
    Error report:
    SQL error: ORA-14400: inserted partition key is not mapped with any partition
    14400 00000 - "inserted partition key is not mapped to any partition.
    * Cause: An attempt was made to insert a record into a beach or a Composite
    Range object, with a concatenated partition key that overflows
    the concatenated partition bound list of the last partition - or-
    An attempt was made to insert a record into a list object with
    a partition key that does not match the specified literal values
    for all partitions.
    * Action: Do not insert the key. Add a partition capable of accepting
    the key, or add values corresponding to the key a partition specification

    Hi Chaitanya,

    Change your table script to

    CREATE TABLE temp_table
    (
    GRPKEY NUMBER(20, 0) NOT NULL,
    UKEY NUMBER(10, 0),
    ANUM VARCHAR2(250 BYTE),
    APC VARCHAR2(2 BYTE),
    SID VARCHAR2(65 BYTE),
    RDATETIME VARCHAR2(19 BYTE),
    CKEY NUMBER(20, 0),
    AVER VARCHAR2(25 BYTE),
    CVER VARCHAR2(250 BYTE),
    TNAME VARCHAR2(50 BYTE),
    SCODE VARCHAR2(30 BYTE),
    PTYPE VARCHAR2(50 BYTE),
    FILENUMB NUMBER(10, 0),
    LINENUMB NUMBER(10, 0),
    ENTRY_CREATEDDATE DATE
    , CONSTRAINT temp_table_PK PRIMARY KEY (GRPKEY))
    PARTITION BY RANGE(ENTRY_CREATEDDATE)
    (PARTITION P0 VALUES LESS THAN(TO_DATE(' 2009-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P1 VALUES LESS THAN(MAXVALUE)
    );
    
    insert into temp_table values
    (1,null,null,null,null,null,null,null,null,null,null,null,null,null,'01-NOV-2010');
    1 row inserted
    

    or refer the question about the "Date of partitioning of a table"
    * 009 *.

    Published by: 009 November 3, 2010 23:29

  • -2147217833 error in NI_Database_API.lvlli: Execute.vi Cmd - > NI_Database_API.lvllib:DB tools Insert Data.vi-> TESTDATABASE.vi

    This error appears when I run the respective VI (attached file). The entire message:

    Possible reasons:

    "ADO error: 0x80040E57 the Exception occurred in the Microsoft JET Database Engine: the field is too small to accept the amount of data you attempted to add." Try insert or paste less data in

    ' Create a NI_Database_API.lvllib:Rec - Command.vi - > NI_Database_API.lvlib:Cmd Execute.vi - > NI_Database_API.lvlibB Tools Insert Data.vi-> TESTDATABASE.vi.

    I don't know if the cause might be to make the .udl file. But I doubt that.

    I can list a series of factors that can have an impact on this error, since I do not know the possible cause.

    -The database .mdb extension, it's a 2013 Access database but I taped in .mdb

    -When you create the .udl file, the selected provider is Microsoft JET 4.0 OLE DB Provider.

    -In the block diagram after the function bundle, I used a Variant function, as I read its viable to use. I already tried without the variant of thought.

    Your column names do not match - in the database, you underscore characters in the names of your column in your VI, you do not have.

    You might also have a problem with your "Test number" field - depending on the size of the field, you have set up, he could not accept double digital floats:

    Which corresponds to the error you see. If you use an integer, you should connect an integer type of the appropriate size (e.g., I16, I32/I64) to the insert command.

  • Insert data into an existing timechannel

    Hello

    I'm trying to insert data into an existing timechannel. To illustrate my use case, I prepared a few data :

    Absolute timechannel D1 D2 D3
    14.02.2013 03:22:51.3930 - 4-92-703
    14.02.2013 03:22:52.3930 - 4-92-697
    14.02.2013 04:06:19.7280 - 1-75-674
    14.02.2013 04:06:20.7280 - 1-75-696

    As you can see there is a chronological gap between the second and the third group of data. Now, I want to insert a line with NoValues in this interval.
    The data has been saved with a sampling rate of 1 Hz. After processing the data, they should look like this:

    Absolute timechannel D1 D2 D3
    14.02.2013 03:22:51.3930 - 4-92-703
    14.02.2013 03:22:52.3930 - 4-92-697
    14.02.2013 03:22:53.3930 NV NV NV
    14.02.2013 04:06:19.7280 - 1-75-674
    14.02.2013 04:06:20.7280 - 1-75-696

    Insertion of the NoValues in the data channel works very well with 'DataBlInsertVal '. But I'm having a hard time to achieve the same in the timechannel. Especially with a dependency on the sampling rate.
    Someone has tried to do the same thing or has some tips how to do this? The main objective is to avoid reporting to connect the data points on this chronological gap.

    Best regards, Marc

    Hi Marc,

    I tried what you wanted to do and he worked with DIAdem 2012 without any problem.

    I used the attached file and copy the following code:

    Call DataBlInsertVal(Data.Root.ChannelGroups(1).Channels("Time"), 13, 1, NV)
    

    Can you try this line with my file?

    Cheers, RMathews

  • database insert data missing

    Hello

    I am inserting data constantly loop using toolkit.missing database that data table.and also insert form data insertion in the table it will correct.

    You can do this with the "DB tools free Object.vi.

  • Several tools of DB insert data error Code :-2147217900

    Hi all :-),.

    I'm new to LabView. Right now I use version 8.2.

    I browse the topic, but I don't seem to find what I need.

    I have two question and I hope you guyz can help.

    1. I make a program and I need to insert my data in SQL.

    Previously, I was using simple DB tools Insert Data.vi due to the one table involved. It was OK.

    In this case, I need to push about 8 groups of data inside the database every 5 seconds.

    I'm not sure on how I should wire VI if I use both 8.

    I tried connecting parallel connection open tools and a data tools insert series to another.

    What is the right way to do it? Please notify. I have attached the insertion of data in my program part.

    2. previously when I try to connect all the 8 in the series, the tracks of vi, however, it does not the data in the database. But when I stopped the VI and tried to run again, the code of error-2147217900 entrant. Can anyone advise on the reasons why it took place?

    Please advise and thanks million in advance.

    Kind regards

    Dave Roziela

    study links here and post if still problem persists

    Mathan

  • Cannot insert data into the database

    Hello world

    I stuck with a problem in DB juice. When I try to insert data into the database using DB tool, I get a repeated error message (error 1). Please find the my vifile below and solve say.

    Problem is use Labiew 8.2. So try to answer accordingly

    Try it with a cluster instead of a string or an array.

  • "DB tools Insert Data.vi" problem in LV 8.6

    Hi all

    Someone had a problem with the new "DB tools Insert Data.vi" in LV 8.6?

    He broke my method to record variations in the data base (engine Jet4, win XP, Office 2007) without caveats.

    All ideas are welcome.

    Pawel

    I tested the DB_test_simple.vi with MySQL database. Data can be inserted into the table. The error occurs when you convert Variant data after the database querying. See the screenshot. Database Toolbox knows that Variant refers to an integer I32 actually. If you look at this table after insertion, there is column b is of type integer. If the questioning of this table will give you these '10' as Variant data to I32, but not from variant to variant. Change the type of entry that the variant of Data.vi as the sceenshot, your VI will work well.

  • Insert date Wordpad in Windows 7

    When on Windows 7 Wordpad, I insert the date and save the file, I get "?" in front of numbers. How can I get rid of this?

    Hello

    Thanks for posting your query in Microsoft Community.

    I understand your concern, and we as a community will try to help you in the best possible way we can.

    I suggest you check out the link below and check Insert dates and pictures to documents.

    http://Windows.Microsoft.com/en-us/Windows/using-WordPad#1TC=Windows-7

    Hope the information helps, if you have any additional questions, feel free to post. We are here to help you.
    Kind regards

    Guru Kiran

  • Insert data on the Image

    Hello

    I want to put the image data dynamically?, can someone help me to insert data on the image?

    Its urgent I'm waiting

    Thank you

    I assume you mean the text data. You could just add a textfield over an image by adjusting the XY coordinates. You just check that your index Z is correct.

  • Insert data to a specific location in the listview in blackberry 10 cascades qml?

    I have a listview with groupdatamodel, I need to insert the data into the listview at a specific location

    GroupDataModel is used for an ordered list - AFAIK you can't insert data at arbitrary positions.

    Instead, you must use one of the datamodels unordered (ArrayDataModel / QListDataModel)

  • Insert data to DB avoiding code SQL injection

    Hello

    I used the following method to insert data to DB

    (1) I had a 'DB-Helper class' and that I have the following function

    void dbHelper::createOrUpdateRecord(const QString Insertquery) {
        QSqlDatabase database = QSqlDatabase::database();
        QSqlQuery query(database);
        query.prepare(Insertquery);
    
        if (query.exec()) {
           alert(tr("Record created"));
        } else {
            const QSqlError error = query.lastError();
            alert(tr("Create record error: %1").arg(error.text()));
        }
        database.close();
    }
    

    (2) where I want to insert data to DB I created the query to insert the string and pass the string as a parameter to the function above

    createOrUpdateQuery =("INSERT INTO tutorial (title,titleArabic,shortDesc,shortDescArabic,description,descriptionArabic,externalLink,tutorialId,isActive) VALUES(\""
    + map.value("title").toString() + "\", \""
    + map.value("titleArabic").toString() + "\",\""
    + map.value("shortDesc").toString() + "\",\""
    + map.value("shortDescArabic").toString() + "\",\""
    + map.value("description").toString() + "\",\""
    + map.value("descriptionArabic").toString() + "\",\""
    + map.value("externalLink").toString() + "\",\""
    + map.value("tutorialId").toString() + "\",\""
    + map.value("isActive").toString() + "\" )");
            }
    
    dbHelp.createOrUpdateRecord(createOrUpdateQuery);
    

    I read that this method also causes Sql Injection.And using this method we can insert only string as data values.

    My question is:

    I read that the best method to insert data using "bind." So, if Iam trying to use the 'bind' method then I won't be able to make integration to db as a generic function. Is this possible. Please help me to do the insertion of data in db as a generic fn

    I didn't test this, but it might give you an idea:

    sql = "INSERT INTO tutorial (title,titleArabic,shortDesc,shortDescArabic,description,descriptionArabic,externalLink,tutorialId,isActive) "
    + "VALUES(:title, :titleArabic, :shortDesc, :shortDescArabic, :description, :descriptionArabic, :externalLink, :tutorialId, :isActive)"
    
    createOrUpdateRecord(sql, map);
    
    void dbHelper::createOrUpdateRecord(const QString Insertquery, QMap paramMap {
        QSqlDatabase database = QSqlDatabase::database();
        QSqlQuery query(database);
        query.prepare(Insertquery);
    
        QMap		   
  • What is the DateTime format, when you insert data in the DateTime column in the DB?

    Hi all

    I can't find an example to insert data into db that contains a DateTime column. I tried different date format, but none of them works. Someone has an idea how to do that? Is there a sample project?

    Thank you

    Dong

    Thanks for your reply, I'll check and give it a try.

    Dong

  • Trigger to insert data on the null columns

    Hi all

    How can I create triggers to insert data into a column null, this column is a Varchar2.

    Thanks in advance.

    Something like this:

    create or replace the TRG_BI_MYTABLE before insert on MYTABLE for each line

    Start

    : new. MYCOLUMN: = nvl(:new.) MYCOLUMN, 'A value');

    end;

  • Cannot use the native sequence of database to insert data through the DbAdapter

    Hello

    I use Oracle Fusion Middleware 12.1.3 (selection of pre-designed developer programs for Oracle VM VirtualBox VMs |) Oracle Technology Network). I'm trying to insert data into the Oracle database coming with the device via a DbAdapter. I want to use the native Oracle sequences for primary keys and have configured appropriatelly the DbAdapter. But in execution, I get the following exception:

    Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-01400: cannot insert NULL into ('SCOTT'. "ORDERS '." (' ' ID ')

    If I configure the such DbAdapter that do not use sequences, I get the same exception. I'm missing here?

    Kind regards

    Nicolas

    Reading more carefully the exception, in the log file of the server, not just the display of messages in the console of the em, I could note that the ConnectionFactory configured on the outgoing Dbadapter connection used to access the database was incorrect. He was using JavaDb instead of Oracle that I made a mistake of copying and pasting. Correction of this error has resolved the problem.

  • Insert data into another database with a script

    Hello.

    What is the best way to insert data into one database with a script

    INSERT INTO BF_PRUEBASMTP.bf_mtp_agr_inscription (ain_agreementid, ain_customerid, ain_paymethodsid, ain_servicemoduleid, referencia)

    SELECT AAG. AAG_AGREEMENTID, ACU. ACU_CUSTOMERID, 2, 2, ins. NUMERO_REFERENCIA

    OF BF_PRUEBASMTP.bf_mtp_agr_biller ABI

    JOIN IN-HOUSE

    BF_PRUEBASMTP. BF_MTP_AGR_AGREEMENT AAG ON ABI. ABI_BILLERID = AAG. AAG_BILLERID

    INNER JOIN 'CLIENTEUNICO. ALMUERZO" ins

    ON THE AAG. AAG_AGREEMENTID = ins. CONVENIOID

    INNER JOIN BF_PRUEBASMTP.bf_mtp_agr_customer ACU

    ON ACU.acu_typedocumentid = ins. TIPO_DOCUMENTO

    AND ACU.acu_numberid = ins. NUMERO_DOCUMENTO;

    CLIENTEUNICO. INSCRIPCIONES = SELECT * DE INSCRIPCIONES - to a DIFFERENT DATABASE


    Thank you very much.

    2931095 wrote:

    If I don't have permissions to create a database link. Is there another way to do this?

    Thank you.

    link to database IS the method by which an Oracle database accesses to a different database.

    If you are the ADMINISTRATOR, you should have permission.

    If you are not the ADMINISTRATOR, you should not have permission and need to talk to the ADMINISTRATOR that is allowed.

Maybe you are looking for