04-10-2019 07:55 AM
What is (are) expressions to set measurement array names, preferably the entire Measurement array set to a Labview Array instead of looping through each Measurement Index.
I reading a Labview text Array into TestStand then use that array to rename test measurement names, i.e. Measurement 1, Measurement 2 etc. Instead of the canned names Measurement X, I want to label the measurements with the descriptive names from the Labview Array.
Solved! Go to Solution.
04-10-2019 01:27 PM
Not sure if this would be helpful.
04-11-2019 07:44 AM
not exactly, in my case I'm looking to only rename the Measurement x canned name in TestStand to a meaningful custom name.
04-11-2019 10:09 AM
So there isn't a single expression that will rename them all. You will need to loop through the array.
The proper function to rename the measurement would be Step.Result.Measurement[index].Name = "New Name"
Hope this helps,
04-11-2019 04:05 PM
OK, thanks for the tip, I'll try that. Makes sense you have to step through each one, since array items usually lumped into identical items.
04-12-2019 05:47 PM
Was wondering how to make the output file names of measurements "Measurement 1", "Measurement 2"... become names from the Labview string array.
From TestStand, if I run the Labview VI, TestStand reads its string array Indicator, completes the step, creates the output file data but the canned names TestStand generates, Measurement 1, Measurement 2, persist. I'm wondering where do I put this loop to so the output file contains specific test names from the Labview array.
04-15-2019 07:50 AM
I'm still looking for a way to programmatically change the Multiple Measurement test array so that the output file reports new Measurement names instead of the canned ones, Measurement 0, Measurement 1... .
Jigg,
Whenever I use your suggestion, the Measurement 0, Measurement 1 ... names are changed but only after the output file is completed. I need the output file to report the text from the Labview array. I can change Measurement 0, Measurement 1 ... names manually, copy and paste each one, but this is tedious when I have hundreds or thousands of names to enter.
04-15-2019 12:18 PM
Hi richjoh,
Are you able to post this portion of your code? That might make it easier for forum users to jump in and help out!
04-15-2019 01:15 PM
Not able to post. This is pretty straight forward.
An NI_MultipleNumericLimit Test. The sequence reads a numeric array from Labview. TS uses pass/fail criteria to create an output file. But TS uses canned names, "Measurement 0", "Measurement 1"... I want to overwrite these canned named with actual test names from a Labview text array. Ideally I want to take the Step.Measurement[].Names and rename all the indexes per the Labview text array so that test names show in the output file.
04-18-2019 02:47 PM
Not sure if this would be helpful!
If you are still working on this question, it may help not to have a solution marked to increase visibility.