04-17-2019 09:10 AM
Looking for the expression to overwrite the canned TestStand Multiple Numeric Measurement Names with actual test names. Common sense way, it appears to me is to set the Step.Result.Measurement[0..2].Names == Test Names [0..2] (from Labview) just before the output file is created.
There is a type mismatch... Step.Result.Measurment is Array of NI_LimitMeasurement, the Labview Indicator is an Array of Strings. If I make is an array of strings using {,,} the names although set do not show in the report. I need to overwrite NI_LimitMeasurement type without looping through each string index of the type so that test names are reported in the output file.
I've created a sample sequence file and labview VI with 2 indicators, Test measurements and measurement names. TestStand input the Labview indicators does the multiple comparison then I want to write the names of each test
Solved! Go to Solution.
04-18-2019 10:44 AM
consider this approach? Not sure what version of TS you have but this was saved in 2014. Let me know if you have any questions.
The problem with going from an array of strings ot an array of NI_NumericMeasurements is that at some point you still need to loop to do the conversion.
Regards,
05-09-2019 03:17 PM - edited 05-09-2019 03:18 PM
Using TS 2016, your solution works. So If I'm thinking about this correctly using RunState.Caller.Step Object Ref can Call the current step and rename Result.Measurement[]. I now see this in the Variables/Property Expression Browser.
I'll try this in my real code soon, and will leave feedback.
Thanks
10-07-2019 08:16 AM
I want to do the renaming in the Step itself instead of the renaming after and then the caller Sequence reports the results.
This would require I use a typecast the "NI_MeasurementType" data type. Multiple Numeric Step contains this type.
06-20-2022 05:33 PM - edited 06-20-2022 05:56 PM
where is the untitled.vi called by the sequence given in the marked solution?
NEVERMIND. I see it's just a way to get an array of measurement data into the sequence.
01-04-2023 07:19 PM
This solution was very impressive! I learned a lot from it. Thanks for sharing!
10-18-2023 08:16 AM
Thanks very nice solution, exactly what I need!