NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I dynamically import a large database?

I am trying to import all my configuration settings and part specs from a database. The problem I'm running into is the amount of parts, serial #'s, ect. can change and I'm not sure if there is an easy way to get all of this information into Teststand.

I'm trying to use the Property Loader to import all of the data. But since I don't know how much data I'm importing before the program is run, I don't know how many variables to create. So basically I'm just wondering if it is possible to set this all up in Teststand, or do I need to do most of my coding somewhere else and dynamically create variables during Runtime?

The only idea I have at this point is to use large empty arrays to store the data in Teststand. Any help would be greatly appreciated.
0 Kudos
Message 1 of 3
(2,933 Views)
Hi,

To use property loader you have to know the type and the quantity of the variables you want to fill. These all have to be declared before hand which means that you can not dynamically declare variables for the property loader. If the properties required to load are too diverse, depending on user inputs say, then the tests might have to be separated into different test runs all together.
0 Kudos
Message 2 of 3
(2,904 Views)
wildcat -
If your data content varies as you mention, your best option is to just write a custom code module to do the specific work that you want done. This way you are not limited to the narrow scope of the property loader.
Scott Richardson
https://testeract.com
0 Kudos
Message 3 of 3
(2,894 Views)