How do I get UUT_RESULT ID?

Hi,
I'm currently implementing another database that keeps track of all tests and re-tests of a UUT. I want to use the default database (MySQL) that ships with TestStand for the test results, though. My plan is to use the GUID in UUT_RESULT [ID] as a key, and to fill my own database upon Post_UUT with this value along with test start- and end time.
Question is, how do I get hold of this GUID?
In the database options for MySql insert, we see that the ID-column in the UUT_RESULT table is a primary key with a type 'Store GUID Value'
Is this GUID possible to get hold of some way? I would like to avoid querying the database for the last test result, which also might be unsafe in a environment with many parallel test stations.
One option would be to make a copy of this schema and create my own GUID upon Pre_UUT and store it into a variable, then assign the UUT_RESULT[ID] to this value. 
What is best practice in this case? Am I approaching this the wrong way, or are there simpler ways to achieve the same result? 
Any insights are appreciated
Best Regards,
Daniel Rhodin
Synopsys Inc.

Yes, all UUTs has a serial number. But a UUT can be re-tested which means that I need a unique test record ID (which is what is created when checking in a test result).
The "other database" I was referring to, holds a lot of other data such as products, work orders, assembly structures, repair and trouble shooting information and so on. For each test record, it might also hold supplementary files that is generated during a test. So I need a primary key that can sew these two databases together, and the serial number is not enough.
My "solution" is currently that the two databases are completely independent. Viewing test results for a particular UUT requires the user to enter the serial number and then manually find the correct date/time for the test record.
I've thought about using a combination of S/N, test station ID and date information to find the correct entry in the test results database, but it's not a very neat solution.

Similar Messages

  • How can I get an autogenerated value in Postgres within a new SQL statement?

    There are two possible ways that I could go about doing this. 
    The firstn the creation of a new record, my schema in Postgres automatically inserts a unique value into a given field.  However, whenever I run queries to get that value using Teststand, I get an error that states the value is null.  However, querying from psql, I am able to see the UUID.
    Note that the field itself is not problematic.  If ask for the UUID value in the previous record, it fetches the value from two records ago--which is a bit odd, but is better than recieving a null value.
    The second way to do this is to query the sequence which we use to generate the UUID.  In Postgres a sequence is simply an autoincrementing value.  Each time it is used, it increments by a given amount.  Further, the current value of the sequence can be queried as follows:
    SELECT last_value FROM *sequence_name_goes_here*
    However, running this query and then trying to get that value and store it also returns a null error.  To be fair though, the sequence is not viewable within the Teststand Database Viewer. 
    For reference, I'm using Teststand 2.0.  For the driver I'm using the Microsoft OLE DB Provider for ODBC Drivers.  I'm using Postgres 8.0.12.
    I'd appreciate any thoughts or suggestions on how to make this work.  Does anyone here have Postgres experience?
    Note that the same Teststand code that we're running now worked fine in Access, but causes the aforementioned errors in Postgres.
    Thanks,
    Tim

    Brandon,
    Thanks for getting back to me.
    I'm not quite sure what you mean.  I'm using Teststand's sequence editor.  Within this there are options for running SQL queries.
    For connecting to Postgres, I'm using a .udl file that relies on a Postgres ANSI driver, which I believe came with my install of Postgres.
    In any event, I think I've narrowed down my question a bit (now that I understand more how Teststand works).
    When one runs an SQL query within Teststand you have the options of "Fetch previous," "Current," etc.  This was connected to the default Access schema (UUT_RESULT) and a RUN_ID was generated on every "CREATE NEW RECORD." 
    I think the problem is that, when you run a "SELECT" query with the parameter set to "Create new record" Access will generate the RUN_ID before returning the results.  With Postgres, it won't generate the RUN_ID until one inserts the "default values."  Here is the SQL log of what Teststand is sending Postgres:
    Mar 26 14:01:37 [postgres] [12-1] <46081865.1bcd>LOG:  statement: SELECT uut_result.run_id, uut_result.station_id, uut_result.start_date_time  FROM uut_re
    sult
    Mar 26 14:01:37 [postgres] [13-1] <46081865.1bcd>LOG:  statement: INSERT INTO uut_result DEFAULT VALUES
    To do this, I just have to run "set" and then "put" without setting or putting any specific values.
    So here is my updated question:
    If I run a new select query(over a new statement) and choose "Fetch next", each time I call that it will iterate through the select query, starting with the very first record.  My question is, how can I tell it to stop when it gets to the last record, since there is no telling what the last record is?  Or, in general, how can I get the values in the final record?  We've changed the RUN_ID to simply be an incrementing integer, so if a MAX aggregate function can be run, that might work.
    Any ideas?
    Thanks,
    Tim

  • I am having macbook air recently my iphotos did not open and was showing report apple and reopen but i came to know that by pressing alt and iphotos i open an new photo library and stored the pics but now how can i get the pics which i had in the earlier

    i am having macbook air recently my iphotos did not open and was showing report apple and reopen but i came to know that by pressing alt and iphotos i open an new photo library and stored the pics but now how can i get the pics which i had in the earlier photo please help me to recover my photos

    Well I'll guess you're using iPhoto 11:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • TS3989 My 5th gen ipod touch was stolen.  I removed the device from my iTunes account, but their pictures still show up on the photostream on the one I purchased to replace it.  How do I get this to stop, the cops have no interest in their faces, nor do I

    My 5th gen iPod touh was stolen a month ago.  I immediately removed that device from my account and yet today I looked at my photostream and there are tons of pics of these people on my photostream.  How do I get this to stop?!?

    Change your iCloud ID password: http://support.apple.com/kb/HT5624.  After doing so, go to Settings>iCloud, tap Delete Account, then sign back in with the new password.

  • How do I get more text options in photoshop??

    How do I get more text options in Photoshop?  I have the basic package, but I would like more script options.
    Thank you,
       Maureen

    I don't suppose you have a full CC subscription?  It comes with a feature called Typekit which I love. Along with an ever increasing range of top quality fonts, it has the best font manager I have used, and excellent search facility.
    The web is full of additional font sites like dafont
    http://www.dafont.com/
    Otherweise, Google is your friend
    If you want Text Effects then Google will help you out there as well

  • How can i get the all values from the Property file to Hashtable?

    how can i get the all values from the Property file to Hashtable?
    ok,consider my property file name is pro.PROPERTIES
    and it contain
    8326=sun developer
    4306=sun java developer
    3943=java developer
    how can i get the all keys & values from the pro.PROPERTIES to hashtable
    plz help guys..............

    The Properties class is already a subclass of Hashtable. So if you have a Properties object, you already have a Hashtable. So all you need to do is the first part of that:Properties props = new Properties();
    InputStream is = new FileInputStream("tivoli.properties");
    props.load(is);

  • How can i get all values from jtable with out selecting?

    i have one input table and two output tables (name it as output1, output2). Selected rows from input table are displayed in output1 table. The data in output1 table is temporary(means the dat wont store in database just for display purpose).
    Actually what i want is how can i get all values from output1 table to output2 table with out selecting the data in output1 table?
    thanks in advance.
    raja

    You could set the table's data model to be the same:
    output2.setModel( output1.getModel() );

  • When I login on my When I sign in to a site on my ipad using my email address as ID a short cut of my email address comes up. How can I get rid of it?

    When I sign in to a site on my iPad using my email address as ID a short cut of my email address comes up. How can I get rid of it?

    You can edit keyboard shortcuts in Settings>General>Keyboard>Shortcuts>Edit.

  • I am trying to change or add the email address which is attached to my itunes account. I keep getting a notice saying email address is already verified for another Apple ID. Im sure its one of my devices. How can I get my current email address added?

    My itunes account is attached to an email account that I no longer have and cannot retrieve. I have been having trouble with purchases made to my itunes account and want to view my purchases. The support center said that they would email me the purchase history. However, I don't have that email address. When I go to change my email address to my current one, I get a message in red saying that "the email address is already verified for another Apple I.D." I'm sure it is one of my devices as we have 4 ipods and 2 iphones. How can I get my account to use my current email address? If one of my devices was registered using my current email address as it apparently was, do I need to figure out which device that is and remove the email address from that account? I'm so confused. I just want ALL my devices to use my current email address. I need to replace the old email address with my current one. How do I do that?
    thanks for any assistance.

    Your best bet would be to try resetting the password to the account that you would like to use via iForgot
    Once you log in to that account change the email address to anything, it can even be fake its just a placeholder
    After you do that you will be free to change your old email address on your appleID to the new one that is now free to be used as it is no longer attached to the other account.

  • I have a macbook pro version 10.7.5 and my mailbox will not open at all and comes up with a quit message even though it is not open. how can i get into my account. it works on my iPhone an i have internet and all other functions working on my computer

    I have a macbook pro version 10.7.5 and my mailbox will not open at all and comes up with a quit message even though it is not open. how can i get into my account. it works on my iPhone and i have internet and all other functions working on my computer

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Enter the name of the crashed application or process in the Filter text field. Select the messages from the time of the last crash, if any. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    In the Console window, look under User Diagnostic Reports (not "Diagnostic and Usage Messages") for crash reports related to the crashed process. The report name starts with the name of the process, and ends with ".crash". Select the most recent report and post the entire contents—the text, not a screenshot. I know the report is long. Please post all of it anyway.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    Please don’t post other kinds of diagnostic report—they're very long and rarely helpful.

  • I downloaded an album on itunes using my new itouch; but it's only allowing me to put three songs at any one time into the music app...how can i get it to just move them all in there?

    i downloaded an album on itunes using my new itouch; but it's only allowing me to put three songs at any one time into the music app...how can i get it to just move them all in there?

    hi philly, thanks for getting back to me, especially on such a busy day.
    I don't think that's quite the issue though. I bought an album and it appears in 'my purchases' within the itunes app. Yet, in order to listen to the music, i must use the 'music' app and in this application, there are only three tracks displayed at any one time from my downloaded album.
    I can 'download all' from the 'my purchases' section but that still doesn't help, it just keeps the last three tracks downloaded in the music app.
    I have the 'icloud' enabled and wondered if it had anything to do with that.
    i have successfully downloaded another full album totally into the music app, but this first album is causing me problems.

  • How can I get ALL of my Google Calendars to show on the iCal on my iPhone? I see all of my Google Calendars on the iCal on my Mac, but I do not see them in the iCal on my iPhone. I only see one Google Cal, but not the others.

    How can I get ALL of my Google Calendars to show on the iCal on my iPhone?
    I see all of my Google Calendars on the iCal on my Mac, but I do not see them in the iCal on my iPhone. I only see one Google Cal, but not the others.

    https://www.google.com/calendar/iphoneselect

  • HT201248 My email address associated with my Apple ID on my iPad has been turned off from the ISp (U.S. army).   I have a new gmail account with a new Apple ID. How do I get my iPad to use my gmail account?

    Help. My old @us.army.mil email address was terminated by the army. I used that address to register my first apple id account on my iPad. I can't remember my original Apple ID number and if I ask to reset my password, Apple sends the reset link to my old non-working email address. I have a new gmail address and a new Apple ID number associated with that address. How do I get my iPad to use my new gmail address and new apple ID number?  Remember, I can't log out of my old account because I can't remember the password. Amd Apple will only reset the password by sending a link to my old, non functioning army email account. ( I hate army webmail for canceling all retired military email accounts). John Marc
    <Personal Information Edited By Host>

    Hi John,
    You can change the email address associated with an Apple ID using the steps in this article -
    Change your Apple ID - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • HT1420 HOW do i get Apple to understand that i have a big family and my kids do not have credit cards or their own apple id so i have more than 5 computers?

    I just spent over 2
    $2000 on the new iPhone 5 for myself and my wife, we sitll use the other iphone4's  that we have with other numbers and as we have a big family we have 7 computers that all need to work with itunes. We also have 5 ipads and i was thinking of getting another one but because of this problem the two new iphones and my macbook pro are usles devices when it comes to music and syncing is impossable... My kids do not have there own apple id as it needs a credit card, which they do NOT have. They are kids. so how can i get iTunes to allow me to get more computers online. I just bought an new/ refurbushed 17" mackbookpro as my old one was dropped and still works but do not want to take a chance for my work... anyway iTunes will not let me use this computer with iTunes either... AAAHHHHH I do not want to authorize and de-authorize computers as i use them and it looks like that is not possible anyway based on their statment that htis can only be done twice a year... HELP PLEASE. Thanks Richrd

    The only people who can possibly assist you with this is Apple Customer Relations, call your local Apple contact number and ask for Customer Relations then explain your situation clearly and politely (be firm but don't rant).
    You might want to investiage what the local laws are regarding defective goods and 'fit for use' definitions on warranties etc. Consumer Protection can be a useful tool to use or bargain with if needed ...

  • HT202667 Hi - My daughter was using her Apple TV until recently when she got a Smart TV.  Now the Apple TV is not needed so she passed it on to me.  How do I get it transferred over from her Home Sharing account to mine so that I can use it with my PC?

    Hi - My daughter was using her Apple TV until recently when she got a Smart TV.  Now the Apple TV is not needed so she passed it on to me.  How do I get her Home Sharing account transferred over to mine so that I can use it with my PC? Thanks!

    As  Winston Churchill wrote, however you might want to do a factory reset on the Apple TV.
    This way all information pertaining to your daughter will be removed from the device. Specifically if see was sign into any of the streaming service, Netflix, Hulu, etc. her credentials will still be associated with this Apple TV, doing  a factory reset will remove all that and make it as if you purchased the device and just plugged it in.
    regards

Maybe you are looking for