::hwat::utils::ReadTargetLocationCSVFile - Returns the data in a 201 Head Target Location CSV file.
::hwat::utils:: ReadTargetLocationCSVFile filenamewithpath
filenamewithpath |
The name of the CSV file. |
A Tcl list of the form Target location, X coordinate, Y coordinate, Z coordinate, Minimum horizontal angle, horizontal angle, Maximum horizontal angle, Minimum vertical angle, vertical angle, Maximum vertical angle if successful, {} if unsuccessful.
::hwat::utils:: ReadTargetLocationCSVFile "D:/hwatfiles/target.csv"
Format Requirements are:
1. | Each value should be separated by comma ",". |
2. | There should be at least 10 values in each line. If fewer values are present, that line is invalid. If more than 10 values are present in a line, the first 10 values are considered and remaining are discarded. |
3. | If any line data is invalid, this function skips that line and proceeds with the parsing of the next line. |
4. | There should be at least 1 valid data line. Otherwise, function returns {}. |
5. | Skips all lines, started with #. These lines are comment lines. |