LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Get RunState Value

Solved!
Go to solution

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

 

0 Kudos
Message 1 of 3
(2,919 Views)

I'll investigate further for more info.

However, have you tried: http://digital.ni.com/public.nsf/allkb/AC5008A6FC55616F86256BBC005B61D8

0 Kudos
Message 2 of 3
(2,876 Views)
Solution
Accepted by topic author BlueAnaconda

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. 

 

0 Kudos
Message 3 of 3
(2,865 Views)