09-26-2005 09:30 AM
09-26-2005 02:23 PM
Clausi,
What version of TestStand are you using?
In TestStand 3.1 we introduced a feature to accomplish exactly what you want.
In the properties tab of the "Edit Property Loader Dialog" you only have to check the "Import All Properties from Data Location"
check box.
Import All Properties from Data Location—Specifies to ignore the selected property list and import all properties from the file or clipboard instead. This option does not apply when importing from databases.
Hope it helps.
If you have any problems let me know.
Antonio Lie.
09-27-2005 03:04 AM
09-27-2005 05:13 PM
Clausi,
You need to add a valid property to your source file otherwise it would not be imported.
If you try to import an inexistent property you would get a run-time error indicating that the property does not exist.
Could you explain me what are you trying to do?
If you do not know the property name (location) how are you going to use it at run-time?
Are you going to create this property dynamically?
Best Regards.
09-28-2005 02:22 PM
Hi Antonio,
Basically what I want to do is to import a parameter and it's assigned value (like "ethernetSpeed '2' ") declared in my input file.. I want to send this parameter and value to some hardware.
But depending on the type of test I want to run, this parameter could be something else.. but it should still be send to the same piece of hardware.
So, it could be cool if the parameter declared in the input file was automatically created in the .seq file.
The solution I have come up with is: I create an array "TestParam" and also create this in my .seq file. In this string array I put "ethernetSpeed 2". In my script I can then read the value.. even if it's changed.
I guess I can make it work this way
Thanks
Claus
09-29-2005 01:30 PM
Claus,
The solution you have is a valid one.
Basically you have a variable (global or local) and you import the expected parameter to this variable before you pass it to the hardware.
You use that variable as the input parameter you pass to your hardware of course.
You have to modify your source file depending on the test type you want to execute every time you want to change the test type though.
Another solution would be to use Data Markers in your file to separate the variable values corresponding to each test type.
Check the example I am attaching.
At the beginning I prompt the user for the Test Type (Type I or Type II).
Based on the type, I import the corresponding variables from the source file using Data Markers.
If you have questions let me know.
10-03-2005 04:30 AM