NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Pass Variable To TestStand From .INI File

Solved!
Go to solution

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

0 Kudos
Message 1 of 4
(2,810 Views)
Solution
Accepted by topic author TonyJ

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.

Steven Gloor
Staff Customer Engineer - CTA, CLD
0 Kudos
Message 2 of 4
(2,807 Views)

Would it be possible to use another file type like .dat or .txt instead of .ini file?

0 Kudos
Message 3 of 4
(2,803 Views)

@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

Pazhanivel Thiruvenkadam,
CertifiedLabVIEWArchitect|| CertifiedTestStandDeveloper,
Currently able to Access LV2015&LV2017
0 Kudos
Message 4 of 4
(2,783 Views)