NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

setting requirements on a TestStand step through the API using CVI

I'm generating TestStand sequences using CVI.
I have no problem to create new sequences, new steps, add parameters, set comments...
But I haven't found how to add requirements on a step.
Could someone give me the function(s) to call on the TestStand API to do this ?
 
thank you
Vincent
0 Kudos
Message 1 of 4
(3,759 Views)

Hey VCourousse,

You need to get the Step.Requirements as a property object, Get the Links object from that and then SetValStringByOffset.  Links is an array of elements in the Requirements property.

Here's what it'd look like:

PropObjectReq = Step.Requirments
PropObjectLinks = PropObjectReq.GetProperyObject("Links", 0)
PropObjectLinks.SetValStringByOffset (elementinRequirements, 0, NewValue)

Hope that gets you on the right path.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 4
(3,736 Views)
Hi Sam,
 
Thank you for your answer, that's exactly what I need.
 
Regards,
Vincent
0 Kudos
Message 3 of 4
(3,722 Views)

Hi Jigg,

 

Thanks for the example!

I was reading the manual on Requirements.  "The Links subproperty of the Requirements prop...."

Well now i know "Links" ist the name it self! I not a link to an object or something like this

 

 Greetings

 

Juergen

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 4 of 4
(3,385 Views)