06-13-2016 10:46 AM
As the subject line says, How can I "Pass Variable To TestStand From .INI File?" I want to use a numeric value as a Precondition. The normal value will always be 0x0A, but on occassion for troubleshooting purposes I would like to use a 0x01. Our sequence files are released and so I can't change the variable in TestStand. Your thoughts. Thanks.
Tony Jocius
Solved! Go to Solution.
06-13-2016 11:06 AM - last edited on 10-25-2024 12:00 PM by Content Cleaner
Hi Tony,
You have a couple options as I see it. You can use the a Property Loader Step in TestStand to import a value for the specified variable prior to the step with a precodition, or you can use a code module to read the value from the INI file and pass that to your TestStand variable.
Unfortunately the Property Loader in TestStand does not support the *.ini file type, so if that is a necessity, you will need to use a code module to read the value from the file. Either way, this will require adding a step to the sequence to actually import the value.
06-13-2016 12:14 PM
Would it be possible to use another file type like .dat or .txt instead of .ini file?
06-14-2016 01:19 AM - edited 06-14-2016 01:19 AM
@TonyJ wrote:Would it be possible to use another file type like .dat or .txt instead of .ini file?
Hope, .txt,.csv,.xls can be used, to explore more use property loader in Teststand Sequence and find the available information