03-16-2010 02:04 PM - edited 03-16-2010 02:10 PM
I have started studying Property Loader and readily admit I ain't the sharpest knife in the drawer. I saw the example in the TestStand example directory and see how they loaded limits for a step. What I would like to do is read pairs from a file, an integer index and a double that can be used with a "For Each" step type. Auto indexing cannot be used as the indexes are not sequential. I would also need to load hi and lo limits so actually I would need an int and 3 floats. Would this be a practical usage of Property Loader?
thanks,
jvh
03-17-2010 02:43 PM
Hi jvh,
Loading high and low limits would definitely be a good option for the Property Loader. I am not sure about its use with a For Each loop. The For Each loop will iterate through each element in an array, and does not explicitly use indexing. This option would be more useful for a For loop, but it would depend on how you want to implement it and how you store the indexes in the Property Loader file. Two ways that I can think of where it may work are if you have a single number stored in the file (the index) and you repeatedly update and save the file with each iteration of the loop (therefore you could load in a new value to change the index every iteration), or if you loaded in an array of values that you can increment through that will hold the index of the loop. If you would like to post back more information about your use case, we can try to advise you further.