NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

can't read my container

hi everybody,
i am working with the teststand API und C#, and i have following problem:
i wrote a programm that automatically create a sequence , and insert a container as Parameter in this sequence. The problem is that i can't access the elements of my container when i try to work with that sequence manually.
 Sure i can see the, container and the elements but when i try an assignment Teststand throws an Error. I don't understand why it is like that. here are the properties i am using to create the container and insert it in the sequence:
 
//get the "parameters" property object

PropObjParametersCallBackMainSequence =PropObjCallBackMainSequence.GetPropertyObject(

"Parameters", 0);

//create Parameter Limits and get his Property object

PropObjParameterLimits = EngineObj.NewPropertyObject(

PropertyValueTypes.PropValType_Container, false, "Limits", 0);

// add the parameter Limits in the "Parameters" of the callback sequence file

PropObjParametersCallBackMainSequence.SetPropertyObject(

"Par_", 1 , PropObjParameterLimits);

//save the callback sequence

CallbackSeqFile.Save(SaveLocation +

"\\" + TestName + ".seq");

 

Limits is the name of the container type i've defined. Limits contains 3 elements : upperLimit, LowerLimit, and Unit.

I hope somebody can help me.

regards,

Noubissi

Teststand 3.5
Visual Studio 2005
0 Kudos
Message 1 of 2
(2,912 Views)
Noubissi,

you tell us that TestStand throws an error. What kind of error is that? what does it satet?
Another thing is, if the code sniped displayed above is all the code regarding generating and inserting the parameter into your sequence, you will have problems to access subproperties for sure since there are none in the container. you will have to generate subproperties for the container before trying to access them....

Norbert B.
NI Germany
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 2
(2,874 Views)