I want to Create a VI called by a TS sequence file, which can return the name of the TS sequence file with no input. If anyone can give me some suggestions?
[..] with no input. [..]
What do you mean by that? That the VI does not have any input parameters?
If that is correct, you might want to check Windows SDK if there are functions to determine the call stack and do "reverse dependency walking". However, i don't know if that is possible and i doubt that there are many who can support you...
If you'd pass the SequenceContext, you could use the TestStand API and read the file name directly.
The name of a sequence file is part of the sequence path.
You can use an expression like RunState.SequenceFile.Path to read the file path during execution. The use string manipulation to retrieve the file name (with or without file extension, seq by default).