NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Insert units next to the numeric

I am using a custom made Numeric Limit Test step. It has two numeric outputs excluding the numeric limit output. On the report how do I put the units next to the numeric output?
0 Kudos
Message 1 of 9
(4,069 Views)
Hi Mr SSL,

To reposition the Units, you will need todo one of two things.
1. modify the function GetFlaggedValuesForReport_Html() in modelsupport2.dll
2. or modify the returned string from GetFlaggedValuesForReport_Html() in the step 'Add Flagged Values' returned in Step.Result.ReportText and added in the post step expression.

Hope this is of help
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 9
(4,069 Views)
Hello Ray

Thanks for your answer.

I am new for the test stand. I am not quit understand what you said. Please explain to me little bit more about it.

I am not sure how to put units in to the other numeric outputs.
0 Kudos
Message 3 of 9
(4,069 Views)
Hi Mr SSL,

Is it possible to attach a simple example sequencefile and you Edit and Code module for your step type.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 4 of 9
(4,069 Views)
Hello Ray

I have attached a simple sequence file and a VI file. I want to insert unit next to Coil_Voltage and Coil_Current.
Download All
0 Kudos
Message 5 of 9
(4,069 Views)
Hi MR SSL,

The seq file attachment is the same as the VI attachment!!

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 6 of 9
(4,069 Views)
I attached it again.
Download All
0 Kudos
Message 7 of 9
(4,069 Views)
Hi,

I have created a new step type based on a Multi-Numeric Limit type.
This will have a set of limits for each measurement and I have set the Measurement array up for two readings and label on Coil_Voltage and the other Coil_Current.

There's still quite a bit that needs doing too the step type but if its not what you are looking for then its not worth spending the time on it. plus its getting late. See what you think.
Regards
Ray
Regards
Ray Farmer
0 Kudos
Message 8 of 9
(4,069 Views)
Hi Ray
I tried your sequence file. Your custom step type put the UNIT in to next line. I prefer the UNIT come after the numeric measurements in the same box. If this is not possible, please explain me how to make the custom type with units.
0 Kudos
Message 9 of 9
(4,069 Views)