02-13-2009 01:20 PM
I am trying to initialize 4 empty arrays and two variables with a property loader step. I am getting the following error:
"Sequence: MainSequence
The file format is incorrect near the section 'StationGlobals'. Make sure that you are using start and end markers correctly.
-17100; Incorrect file format.
Step 'Property Loader' of sequence 'MainSequence' in 'Sequence File 3 Prop Loader.seq' "
I have attached the file so maybe someone can tell me if my syntax is wrong. One question I have is can the property loader initialize the empty array with the number of elements in the text file or does the number of elements need to be initialized in teststand before the elements can be imported. I have left the HBound undefined so that each time it is called it can resize itself.
Any thoughts
Help
Solved! Go to Solution.
02-13-2009 02:05 PM
UPDATE! with Michael Chaney's help,
I put the start and end tags in the property loader step and put Hbound to [0] it still didn’t work. But then I put an element in the empty array in the test stand global variables it worked. I then added two more elements in the text file assuming that the variable would resize and tested it, but it did not resize the array and I got an error. To make it work, I had to increase the size of the array in the test stand globals, and increase “Hbound” in the text file to match the number of elements in the file and it would work.
Is there a way to have the array size itself to the number of elements in the text file?
Thanks again
02-13-2009 02:53 PM
UPDATE!
OK I got it.
In the text file, as long as I have the correct number in the hbound that matches the number of elements in the text file, I can leave the file global memory array set to empty. that way the array in the file blobal resizes itself to the size set in the txt file.
WEEEW!
Thanks for listening, I hope this helps someone else.