TestStand database

Is anyway to clear the database without stopping TestStand?

I have a project that generates a lot of data, and with a limit of 2G file to the database, it is complete in a few days. TestStand handles continues so I was wondering if there is a way to copy and rename the existing file and then copy a database file vacuum back in without stopping Teststand?

Thanks for any help.

You obviously wouldn't have a file mdb with Oracle or SQL Server but, Yes, the limit of file size would be much higher. Management would be more robust and the closing would be not so troublesome.

Tags: NI Software

Similar Questions

  • How to connect the parallel test using the logarithmic function Teststand database result

    Hello

    How can I connect a test result of 4 EHR tested in parallel using the logarithmic function Teststand database

    I use Labview 2013, 2013 Teststand and sequential model.

    The test is performed using a single digital card (SMU-6556). The FSD 4 is connected to the port of the digital map and is tested in parallel.

    Currently at the end of the test, I would have a report with all the measures, but I need 4 reports (1 report / dut)

    TKS


  • TestStand database error - error converting data from nchar int type.

    Hello

    I used SQL standards database stored procedure options to store records of my test and I added the generated tables and stored procedures in a database and it seems to work OK in this form. However when I change the UUT_Results table to include a new column that contains the value of the primary key of another table in the database that I meet problems.

    I run a query that returns the primary key value (integer) for a given series number and stores the result as a global station (number format). The correct value is stored in the variable, but when I try to use this value in the stored procedure I get an error like below:

    An error occurred calling "LogResults" in "ITSDBLog" of "ZNIUGOL TestStand database logging"
    An error has occurred by executing a statement.
    Schema: SQL Server Stored Proc (NOR)
    Statement: UUT_RESULT.
    Description: Error converting data from nchar int type.
    Number:-2147217913
    NativeError: 8114
    SQLState: 22018
    Reported by: provider Microsoft OLE DB for SQL Server

    Source: TSDBLog

    My SQL statement for creating the table and the procedure for UUT_results are below:

    ~
    CREATE TABLE UUT_RESULT)
    Uniqueidentifier PRIMARY KEY ID,
    BoardDetailID int,
    STATION_ID varchar (255),
    BATCH_SERIAL_NUMBER varchar (255),
    TEST_SOCKET_INDEX int,
    UUT_SERIAL_NUMBER varchar (255),
    USER_LOGIN_NAME varchar (255),
    START_DATE_TIME is datetime,
    EXECUTION_TIME float,
    UUT_STATUS varchar (32),
    UUT_ERROR_CODE int,
    UUT_ERROR_MESSAGE varchar (255)
    CONSTRAINT UUT_RESULT_FK FOREIGN KEY (BoardDetailID) made REFERENCE BoardDetails)

    ~
    CREATE PROCEDURE InsertUUTRESULT
    @pID uniqueidentifier,
    @pBoardDetailID int,
    @pSTATION_ID varchar (255),
    @pBATCH_SERIAL_NUMBER varchar (255),
    @pTEST_SOCKET_INDEX int,
    @pUUT_SERIAL_NUMBER varchar (255),
    @pUSER_LOGIN_NAME varchar (255),
    DateTime @pSTART_DATE_TIME.
    float of @pEXECUTION_TIME.
    @pUUT_STATUS varchar (32),
    @pUUT_ERROR_CODE int,
    @pUUT_ERROR_MESSAGE varchar (255)
    AS
    INSERT INTO UUT_RESULT (ID, BoardDetailID, STATION_ID, BATCH_SERIAL_NUMBER, TEST_SOCKET_INDEX, UUT_SERIAL_NUMBER, USER_LOGIN_NAME, START_DATE_TIME, EXECUTION_TIME, UUT_STATUS, UUT_ERROR_CODE, UUT_ERROR_MESSAGE)
    VALUES)
    @pID,
    @pBoardDetailID,
    @pSTATION_ID,.
    @pBATCH_SERIAL_NUMBER,.
    @pTEST_SOCKET_INDEX,.
    @pUUT_SERIAL_NUMBER,.
    @pUSER_LOGIN_NAME,.
    @pSTART_DATE_TIME,.
    @pEXECUTION_TIME,.
    @pUUT_STATUS,.
    @pUUT_ERROR_CODE,.
    @pUUT_ERROR_MESSAGE)

    Any help would be appreciated,

    Thank you

    Stuart

    Stuart-

    What is the expression you are evaluating and the data type of the parameter that you defined in the Options database dialog box for the schema that you connect to data with?

  • TestStand 4.2: error call "LogResults" in "ITSDBLog" of "ZNIUGOL TestStand database"

    I just installed 4.2 TestStand and SQL Server Express on a Windows XP computer brand new.  In TestStand, I implemented the "Database" property, so he tested connection successfully.  But when I open the Demo/C/computer.seq file to test, it gives me error in the result of logging.  On-the-Fly logging is not enabled.

    Here is the error message I get.

    ------------------------------------------------

    An error occurred calling "LogResults" in "ITSDBLog" of "ZNIUGOL TestStand database logging"
    An error has occurred by executing a statement.
    Figure: Insert generic (NOR)
    Statement: UUT_RESULT.
    Description: Invalid object name 'UUT_RESULT '.
    Number :-2147217900
    NativeError: 208
    SQLState: 42S 02
    Reported by: Microsoft SQL Server Native Client 10.0Description: instructions could not be prepared.
    Number :-2147217900
    NativeError: 8180
    SQLState: 42000
    Reported by: Microsoft SQL Server Native Client 10.0

    Source: TSDBLog

    Error :-2147217900; User-defined error code.

    Location: Step 'The journal of database results' sequence "Log to database" in "Database.seq".

    ------------------------------------------------

    Is there something I missed in configuration?

    Thank you.

    Peggy

    PeggyC,

    You can get detailed information on how to connect to the database in the TestStand reference manuall, they talk about script files SQL on page 113 which is consistent at 6-6.  Hope that helps.

  • teststand to the remote database connection

    I have a test station in teststand running factory.  I want to log/query a database located on a network server in my installation by ethernet.  Can TestStand using its types of step address/access database this database for viewing and querying records?

    TestStand features of database, including the types of step of database using Microsoft ADO/OLE DB layer and providers installed on a system. Microsoft has an ODBC provider, TestStand can talk to any remote database system that supports the technology of this software. Take a look at the help topic "TestStand Database Fundamentals" in the online help for more information on this. Suggestion of love to look at the example is right on.

    Step TestStand database types are a way to access a database at a high level, but if you want to process the data in a more complex way, you can consider your connectivity database and processing in a code module using the programming language of your choice and call this code of TestStand module.

  • How to determine the number of rows in the database and save the result to a local variable?

    Hello

    I'm a newbie in the use of TestStand, databases and SQL, and now I've met difficulties. I use TestStand 2014 (32 bit).

    I have a need to know the number of rows in a database and save that number in a local variable. I tried to practice using the database of the Types of step provided with TS. I tried to use the following in a SQL statement:

    Locals.NumberOfRows = ("SELECT COUNT (*) FROM TEST_TABLE")

    It returns an error: specified value is not the expected type. My goal is possible in this way, or I'm doing this completely wrong?

    -RautSa

    Thank you for your response, Norbert. I have a database of who wins new values at random, and sometimes I need the exact number of rows in this table.

    I managed to achieve my goal by using the SQL statement: "SELECT COUNT (*) as Rowcount OF TEST_TABLE", followed by a data GET operation, which records that number of lines in a local variable.

    -RautSa

  • Passage of Variables in TestStand through LabView

    I have an error, I am developing a crush on the recall of database Options. I say TestStand what database to write. I am in him passing a variable and I get an error. Here is a description of the error.

    Here is the statement I use:

    DatabaseOptions recall that I use a statement that change the data of databases is stored.

    I have a VI that passes a string that represents the location of my data file, I want to use. I stored it as a variable in database called StationGlobals (it's currently a string but I tried the executable file and the way too with the same error).

    Parameters.DatabaseOptions.ConnectionString = StationGlobals.Database

    StationGlobals.Database has the value

    "\"Provider=Microsoft.Jet.OLEDB.4.0; Persist Security Info = False; Data Source = C:\\Users\\Public\\Documents\\\National Instruments\\\TestStand 4.2.1\\Components\\Models\\\TestStand Results.mdb;. » »

    There must be a problem with variables, because when I copy and paste what StationGlobals.Database in and use the following statement it works perfectly fine.

    Parameters.DatabaseOptions.ConnectionString = '\"Provider=Microsoft.Jet.OLEDB.4.0; Persist Security Info = False; Data Source = C:\\Users\\Public\\Documents\\\National Instruments\\\TestStand 4.2.1\\Components\\Models\\\TestStand Results.mdb;. » »

    Here is the error I get:

    Details:

    An error occurred calling "LogResults" in "ITSDBLog" of "ZNIUGOL TestStand database logging"

    An error occurred initializing a connection to a data binding.

    Connection string: "Provider = Microsoft.Jet.OLEDB.4.0; Persist Security Info = False; Data Source = C:\Users\Public\Documents\\National Instruments\\TestStand 4.2.1\Components\Models\\TestStand Results.mdb. »

    Description: [Microsoft] [ODBC Driver Manager] data too long name source

    Number:-2147467259

    NativeError: 0

    SQLState: IM010

    Reported by: Microsoft OLE DB provider for ODBC drivers

    Source: TSDBLog

    Error code:

    -2147467259; User-defined error code.

    Possible system error: unspecified error

    Geographical area:

    Step 'Results of the log to the database' sequence "Log to database" in "Database.seq".

    Please help I can not find a solution to this issue.

    Thanks a lot for any help

    Once more, the channels of Expression, stumbled to another programmer!

    Parameters.DatabaseOptions.ConnectionString is not a string but an Expression string and your assignment of an StationGlobals.Database (just a string) causes this error.

    Here's what I did to solve your problem:

    1.) StationGlobals (start and remove the leading "------"------"' chain of database") must contain NO beginning or end quote

    StationGlobals.Database = Provider is Microsoft.Jet.OLEDB.4.0;. Persist Security Info = False; Data Source = C:\\Users\\Public\\Documents\\National Instruments\\TestStand 4.2.1\\Components\\Models\\TestStand Results.mdb.

    2.) rappel Database Options use the following expression to define the Data Source

    Parameters.DatabaseOptions.ConnectionString = "StationGlobals.Database".

    There are other alternatives as stated in this link.

    http://zone.NI.com/DevZone/CDA/tut/p/ID/4793

    Good luck

    PH

  • TS4.1 database error

    Hello

    I was using my database.ini of my TS3.5 (on another PC) in my other PC with TS4.1.  I did it to be able to use the same schema.

    It comes to getting the error message:

    An error occurred calling "LogResults" in "ITSDBLog" of "ZNIUGOL TestStand database logging"
    An error has occurred by executing a statement.
    Schema: ATE_database_multiplePC
    Statement: UUT_RESULT.
    Description: The field ' UUT_RESULT. UUT_ERROR_MESSAGE'

    Research in the fields of the schema, I found that the expression of UUT_RESULT. UUT_ERROR_MESSAGE is 'Logging.UUTResult.Error.Msg'.

    I put a break before the stage of 'result of journal of database ' is executed and has looked at the settings.

    I do not see the parameter "'Logging.UUTResult.Error.Msg ' and that's why it failed."  There is, however, a similar setting called 'Logging.MainSequenceResult.Error.Msg'.

    My sequential model is also my TS3.5 system.  I use it instead of my sequential model TS4.1 since I have a little customized it.

    No explanation for this?  Can I use the parameter "Logging.MainSequenceResult.Error.Msg" in my scheme to replace the old "Logging.UUTResult.Error.Msg"? "'". "

    Thank you

    Rafi


  • Changing result data Access to SQL Server database

    For many years, we have worked with the Access databases.
    Now, we started with SQL-Server.
    We only have a UutResultTable and a StepResultTable
    (because we have already started with TestStand 1.02).

    We have worked with integers as Primarykey (UutResultId, StepResultId)
    I get the following error when I work with this "integer as primary keys.

    An error occurred calling "LogResults" in "ITSDBLog" of "ZNIUGOL TestStand database logging"
    An error has occurred by executing a statement.
    Schema: E4DatabaseSchema
    Return: RESULT of the UUT.
    Description: The query with parameters ' (@P1 int,@P2 nchar (50), @P3 int,@P4 nchar (50), @P5 nchar (50), @P6 only)
    expects the parameter '@P1', which was not provided.
    Number :-2147217900
    NativeError: 8178
    SQLState: 42000
    Reported by: provider Microsoft OLE DB for SQL Server

    Source: TSDBLog

    My Questions:

    Is it necessary to work with the GUID is to use the generic schema insert (NOR)?
    Don't work with GUID does not reduce the performance of database?

    We use

    TestStand 4.2
    SQL Server 2008 R2
    CVI 2010
    Windows XP Service Pack 3

    Thank you very much for your help

    Paul

    Hello

    I think these 2 KBs should answer your question.

    http://digital.NI.com/public.nsf/allkb/904986636B5FC7D78625773E004E065F?OpenDocument

    http://digital.NI.com/public.nsf/allkb/5554E9522328ECCB8625772F004DA5C1?OpenDocument

    Reagards

  • Loading of the binary of MySQL to Teststand

    Hello

    I have binary files stored in a MySQL database I want to load in Teststand so that I can send the data in a call to the DLL (with a JTAG programming). The question I have, is if there's a way to do this with the database built in connection of teststand steps? Does anyone have an experience to try this? As far I can tell the steps of database manages only numbers, strings and Boolean values, and non of the tables (at least that's what my tests led me to believe). Is this correct or is it possible to do this?

    Kind regards

    Nimgaard

    Nimgaard-

    The types of step TestStand database have not all the advanced features to work with binary data of databases types and to allow you to determine how to interpret the data and then store in a data type of TestStand. You will need to use a code module that reads the data from the database and either assign a data type data corresponding TestStand, or quite simply to have the code module use the data if it does not need to be stored for later use in TestStand.

    Scott

  • Errors in the schema SQL TestStand 4.1.1

    I am trying to create a new MSDE 2005 SQL Server database using the new schema of TestStand 4.1.1. I've used the SQL Server stored procedure to generate a .sql file, and then run this SQL file. I get several errors similar to the following:

    > CREATE TABLE STEP_RESULT (ID uniqueidentifier PRIMARY KEY, UUT_RESULT uniqueidentifier, STEP_PARENT uniqueidentifier, int ORDER_NUMBER, STEP_NAME varchar (255), STEP_TYPE varchar (255), STEP_GROUP varchar (32), STEP_INDEX int, STEP_ID varchar (32), STATUS varchar (255), REPORT_TEXT varchar (255), int, varchar ERROR_MESSAGE ERROR_CODE (255), CAUSED_SEQFAIL bit, MODULE_TIME float, float TOTAL_TIME) Int NUM_PASSED int NUM_LOOPS, int NUM_FAILED, int ENDING_LOOP_INDEX, int LOOP_INDEX, int INTERACTIVE_EXENUM, CONSTRAINT STEP_RESULT_FK FOREIGN KEY (UUT_RESULT) REFERENCES (ID))
    Command failed with the following error...:
    Line 1: Syntax incorrect close '('.) (- 2147217900)

    I tried to run this statement in both MSDE and through the viewer of TestStand database with similar results. Everyone knows this problem or have any ideas?

    Function to generate the SQL files from a schema does not always perfect SQL statements, but closer you get to where you need to be to try to create it from scratch. Have you thought to look at the default SQL files included with the product, specifically the file "SQL Server Create Stored Proc result Tables.sql" located in the directory "\Components\Models\TestStandModels\Database?" It is a file that should work out of the box for the default schemas for SQL server and MSDE. Other SQL files for other schemas by default, and there are older SQL files for previous versions in the subdirectory 'previous patterns (2.x - 4.0).

  • Import Access DB to SQL Server

    I'm trying to set up a SQL Server database.

    Currently I use Access and my own plan which is very close to the "generic" Recordset

    I tried several things.

    * Band my .mdb so that it contains only the tables but no data.

    * Import to SQL Server.

    * Database .mdb complete, including the import data.

    My tablenames in SQL Server always gets the prefix 'dbo '. This means that they use a schema "dbo" - right?

    Can I export my plan (.ini) TestStand, , but how do I get that in SQL-SERVER?

    Currently, I get the error below: (what is the result of not having the correct implement schema?)

    An error occurred calling "LogMultipleResults" in "ITSDBLog" of "ZNIUGOL TestStand database logging"

    An error has occurred by executing a statement.

    Statement: UUT_RESULT.

    Description: Cannot insert the value NULL in the column 'ID', table 'PTA_DR2_COMMON.dbo.UUT_RESULT '; column does not allow NULL values. INSERTION fails.

    Number:-2147217873

    NativeError: 515

    SQLState: 23000

    Reported by: Microsoft SQL Server Native Client 11.0Description: the statement has been terminated.

    Number:-2147217873

    NativeError: 3621

    SQLState: 01000

    Reported by: Microsoft SQL Server Native Client 11.0Description: operation errors generated several OLE DB steps. Check each OLE DB status value, if available. No work has been done.

    Number:-2147217887

    NativeError: 0

    SQLState: 01000

    Reported by: Microsoft SQL Server Native Client 11.0

    Under the 'data link property"in TestStand I've set up to use a"specific name and user password"which is implemented in SQL Server.

    I choose to save the "Password."

    Test the connection is OK.

    If I close the window, but right after the reopening, the password properties are gone... which means it is not saved!   Why?

    If I use NT integrated security, access to the database works.

    I found a 'Solution' by exporting each table access rather than import it on SQL Server.

    Now, it seems to be OK

  • How to get the overall result sequence into LabView?

    Hello

    Could someone can help with this little problem?

    We have a batch (.bat) that launches a list given TestStand sequences, which works as expected.

    However, we monitor the results of each sequence and display it to the operator.

    Our idea is to get the result of the sequence in a VI, executed at the end of the sequence and add it to a queue, which will be extracted and displayed on a monitor of VI, executed separately.

    The only problem we have left must be able to recover the overall result of the sequence. Any idea or suggestion?

    Thank you

    Raphael

    Thanks for all your replies. We finally finished queues sequencefailed node sequence context property value.

    I also discovered the TestStand database logging and began to use it in parallel.

    Thanks again

  • Be a mistake to create an additional result in the Table UUT_Results:

    Research site of NOR and found information on how to create additional value of loggin in the UUT_Result table.  I copied and saved the database.seq, and the standard process model.  parameter has been added to database.seq.  parameter added to the recall, then added a local variable to the model.  I did all the steps in order, then check the schema was OK and the journaling property has been added.  I always get the following error message and don't know if a step is missed.

    An error occurred calling "LogUUTResult" in "ITSDBLog" of "ZNIUGOL TestStand database logging"
    An error occurred when setting a column value.
    Statement: UUT_RESULT.
    Column: WO_NUMBER
    Property: measure. [Measure 1]
    Name of variable or unknown property 'Logging.WO_Number '.

    Source: TSDBLog

    Error code:-17306; Name of variable or an unknown property.

    Geographical area: step 'Journal USE result' sequence 'SequenceFilePostResultListEntry' in 'SequentialModel2.seq '.

    I think I had two different problems.  I was able to connect additional content under the UUT_Results, but I had to change my settings for database logging.  I disabled additional results, and everything started working.  I have always had a problem with the activation of the additional results box and never gave a reason why.  This occurs with standard features.

    If the last error noted the activation of additional results, so I disabled and was able to get my full database table.

    Thanks for the reply.

  • Need to create useful reports from the results of TestStand (.mdb) database

    Any help is greatly appreciated!

    We need create reports from the results of TestStand (.mdb) database.  I was not able to find much online.

    Details:

    In 2014 TestStand, we have configured to use Access database management system.  Otherwise, the database settings are default.

    These reports will be targeted to managers and engineers.  They need to show objects as:

    Which EHR past/almost?

    For each DEGREE, what past/a failed test?

    Thanks for all the suggestions!

    Because I couldn't find anything pre-made, I created reports from scratch using queries in Microsoft Access 2010.

Maybe you are looking for

  • How can I remove software Snapdo of my mozilla firefox browser bar?

    I accidentally installed a software called 'snapdo' on my computer earlier who did a few annoying things. It changed my hope page on their Web site. Changed my Firefox search bar for the search engine. For managed to solve these problems, but the pro

  • Catostrophic

    Anyone know what means this error and how to fix it? It happens when I try to back up my files. failure of catostrophic (OX8000FFFF) thanks for any help because it does not look good.

  • obama and romney found checkdisc

    PC wanted to run chkdisc so I let it run, some of the files said obama and another romney, what is?

  • Staff moving from places, change of display names of phone

    Hi I will start by saying total beginner to Cisco Unity Connection. With the little training we got where to change user names on the phone screens and reset passwords VM. In short – about 30 changes to the phones. It comes to new users and current u

  • GREP search: match between character styles

    I fight with it, even if it sounds very simple.In a huge document, I need to find each space with these two features:(1) the space has no model of applied character(2) the space located between text1 and text2 which have the style applied X character