12-02-2016 03:04 AM
Hello,
I have a serious problem 😕
I need to read a value from TS : "RunState.ThisContext.SequenceFile.Path" but the API function seems to be no able to find it..
My code :
TS_PropertyExists(SeqContext, &errorInfo, "RunState.ThisContext.SequenceFile.Path", 0, &propertyExists); if (propertyExists) { TS_SequenceGetName (SeqContext, &errorInfo, &sequenceName); TS_PropertyGetValString(SeqContext, &errorInfo, "RunState.ThisContext.SequenceFile.Path", 0, &stringVal); }
The Value of "propertyExists" is always zero. And when I try to execute the "TS_PropertyGetValString" directly, I get an error saying that the variable I'm looking for didn't exist.
Even if under TestStand, I can see it !! And it contains a string value (Path).
Any idea please ?
Thanks in advance,
Blue
Solved! Go to Solution.
12-05-2016 12:42 PM
I'll investigate further for more info.
However, have you tried: http://digital.ni.com/public.nsf/allkb/AC5008A6FC55616F86256BBC005B61D8
12-06-2016 02:41 AM
Hello,
Thank you SebasAce7 for your reply.
I tried to put "
"RunState.SequenceFile.Path"
in order to get the path and it works ! After that, I extracted the sequence name from the path.
This is wierd but :
"RunState.Sequence"
is empty. So I couldn't use it.