09-06-2023 07:40 AM - edited 09-06-2023 07:47 AM
Hello everyone,
As part of a teststand sequence generation tool linked to DQMH modules, I am trying in vain to create a sequence parameter with the attribute "Pass by Reference" and not "Pass by value" via the TestStand API in LabVIEW.
Result:
Wish without manual intervention:
Thank you in advance for your help.
Solved! Go to Solution.
09-06-2023 10:05 AM
Your code is setting the actual value of the parameter.
Choosing between byRef / byVal option for the parameter has to be done upon creation of the parameter. I don't think SetValString is the appropriate way to do so (though I can't tell you which one to use, I have to admit)
09-07-2023 12:30 AM
Need to correct myself after checking the documentation! I would've expected to have a "proper/ dedicated" Method for creating parameters, but there isn't
From what I have learned, the switch from byVal to byRef is achieved using a property flag for the parameter
Can you try to do the following:
ParameterRef.AsPropertyObject.SetFlags("Pass by Reference", 0, 0x4)
09-07-2023 12:58 AM - edited 09-07-2023 12:59 AM
Hello Oli_Wachno,
Thank you for your return and your research, indeed it exactly meets the need and works!
I hadn't thought of being able to find this property in the flags 🙂