10-02-2006 11:57 AM
10-02-2006 01:54 PM
checkers,
There is not such a thing like a property saver in TestStand.
If you are using a Database as your datasource you could use the Database step types to change the database data.
Another possible solution would be to write your own property saver step type based on the source code shipped under \\TestStand\Components\NI\StepTypes\Database.
Could you describe the problem you are trying to solve?
Antonio Lie.
Best Regards.
10-02-2006 08:39 PM
I have a test sequence that calculates some calibration values which are then stored in FileGlobals. Property loader is used to pre-load the values.
The calibration sequence is run once a week to validate the measurement system. If a problem is found, new calibration values are calculated and stored in FileGlobals.
So the problem is that I need to save these values (when they are caluclated) into the file that property loader will use the next time we run products.
My preference would be to use a DB, but I have limited time available to learn how to do that. I have manually saved the values to an Access DB, but I do not understand how to update those values in a test sequence.
Have you any good examples of how to write values back to a DB that was populated by Import/Export Properties ...?
10-03-2006 12:37 AM
Hi,
In the TestStand Reference Manual there are some steps to setting up the database. see chapter 6 - 14.
Regards
Ray Farmer
10-03-2006 07:08 AM
Ray,
Doesn't NI have any publications that are less complicated than this? I am not interested in logging test data. I am only interested in storing and retrieving a few values.
10-03-2006 07:25 AM
Hi,
The procedure is the same whether you wish to log test data or save and retrive some values. The difference will be the schema.
I am sure there's an example some where, are you using version 3.5?
Regards
Ray Farmer
10-03-2006 07:34 AM
I am using TS 3.5
I don't have a lot of time to weed through the documentation now, so an example may help.
I am aware that there is a lot of setup work to do. I managed to use property loader to save a selection of the FileGlobals to an Access DB, but I never understood how to re-write them manaully. So, I'm certain that I could set up the database with the columns that I want.
What I need is some info on embedding some SQL statements in the test sequence to save new DB records.
(I didn't have a schema defined for the property loader, as far as I know. )
10-03-2006 09:50 AM - edited 10-03-2006 09:50 AM
Message Edited by Antonio Lie (NI) on 10-03-2006 09:51 AM
10-05-2006 05:04 AM
That was what I needed to get it to work. Thanks.
Now, is it possible to make the DB calls from LabView or CVI through the TestStand API?
10-05-2006 07:49 AM
checkers,
I am glad the example was useful.
The TestStand API does not provide any type of database access.
You can use the CVI SQL Toolkit or the LabVIEW Database connectivity Toolkit to make the database calls directly form CVI or LabVIEW.
In that case you would have to pass your calibration values to your module in CVI or LabVIEW and use the corresponding toolkit to update the database.
Hope it helps.
Antonio Lie.