cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Pass Variable To TestStand From .INI File

Solved!
Go to solution
Highlighted

Pass Variable To TestStand From .INI File

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
(1,095 Views)
Solution
Accepted by topic author TonyJ
03-20-2017 08:01 PM

Re: Pass Variable To TestStand From .INI File

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
(1,092 Views)

Re: Pass Variable To TestStand From .INI File

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

0 Kudos
Message 3 of 4
(1,088 Views)

Re: Pass Variable To TestStand From .INI File


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

Palanivel Thiruvenkadam,
Certified LabVIEW Associate Developer || Certified TestStand Developer
0 Kudos
Message 4 of 4
(1,068 Views)