05-24-2024 09:33 AM
Hello,
I think I understood the API so far. It was a fight from my perspective but ok.
Now I found a new issue.
If I insert using the API a sequence call for a sub sequence it works so far.
The issue is similar to python adapter calls the variables which need to be passed down the way to the call will not be generated.
For python I found a dirty workaround for sequence call, it seems to not that easy.
I need to generate a container and not an array element.
And as far as I understood a SequenceArgument.
But I didn't found a SetValContainer....
Solved! Go to Solution.
05-24-2024 12:39 PM
Container is a bit different story. Try Locals.NewSubProperty("NewContainer", PropValType_Container, False, "", PropOption_NoOptions)
or Locals.SetPropertyObject("NewContainer", PropOption_InsertIfMissing, RunState.Engine.NewPropertyObject(PropValType_Container, False, "", PropOption_NoOptions))
Also read this: https://www.ni.com/docs/en-US/bundle/teststand/page/properties.html. Perhaps it will make things more clear with Containers/Properties.
And here is PropertyObject API: https://www.ni.com/docs/en-US/bundle/teststand-api-reference/page/teststand-api-ref/propertyobject.h...
05-28-2024 12:54 PM
Your approach was really good but wasn't the complete solution for me at least as it is a special type of container.
newStep.AsPropertyObject().NewSubProperty("NewContainer",0x4,False,"SequenceArgument",0x1,)
Afterwards it ran like a charm.