NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Why does GetSequenceDefaultValues not work unless I load limits via property loader?

I'm using GetSequenceDefaultValues to get the run time version of a sequence (which I got through the SequenceFile method), so that I can the run time limits for a particular step.   This works, however, I noticed that GetSequenceDefaultValues returns NULL unless I had previously run a property loader step to load properties and I had the "Apply Imported Values To Related Executions" checkbox deselected.  I was curious as to why this is the case.  Shouldn't I still be able to access runtime copies of a sequence regardless of whether I modified any of their properties with a property loader step?  
0 Kudos
Message 1 of 2
(2,774 Views)

tjjuggle
Take a look at the documentation again. GetSequenceDefaultValues states that it returns the sequence that was set by SetSequenceDefaultValues, and SetSequenceDefaultValues states that you must pass in a sequence created by calling
NewSequenceDefaultValues. I suspect that the property loader feature is calling NewSequenceDefaultValues and SetSequenceDefaultValues for you so when you call GetSequenceDefaultValues you get a non-NULL value. Hope this helps...

Message Edited by Scott Richardson on 10-25-2006 04:00 PM

Scott Richardson
https://testeract.com
0 Kudos
Message 2 of 2
(2,771 Views)