01-30-2019 10:48 AM
I have an application which I flash a circuit board. There are offsets which must be stored into 12 locals variables (locals.var1, locals.var2...) (1) I want to pass those offsets into a text file so that at some point we can (2) reload them into the board after repair. Each board has a unique serial number which I want to use as a filename. I thought about using the PropertyLoader to read the text file but each file would have a unique name. Can someone show me how I can create a solution to my problem?
01-30-2019 04:41 PM
If the issue is a unique file name, you can use an expression to specify the file name. In my own case, I might use different property loader files in the same sequence, but there are different values for different countries or different "flavors" of product. Below is a picture. (Note that this example uses the "Legacy" property loader.) Here, "MyFilePath" is determined by the model number and/or serial number that the user enters in PreUUT.
01-31-2019 04:48 PM
This would take care of the unique file names. Unfortunately, I get an error box complaining about the limits file. TestStand is looking for a limits file with the new filename. I tried initially placing the PropertyLoader in MainSequence, then in Cleanup and then in its own sub-sequence. All with the same result, looking for new limits file names.
01-31-2019 05:35 PM
Perhaps I don't understand the issue. By the time the property loader step is called, does the file not exist yet? This method won't work if the file doesn't exist.
01-31-2019 05:54 PM
Attached is a simple file I created to run the PropertyLoader after the data is collected. Hopefully you will see the same error.
01-31-2019 06:02 PM
So you would need to create this file before calling the property loader step, so I wouldn't expect the property loader step to work.