NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

units in custom numeric limit test

Solved!
Go to solution
Hello,

i had made a custum numeric limit test step (TS 3.0, LV 8.2). Normally with NI numeric limit test step, the step generates a unit variable in Locals.ResultList[x].Units if a unit is recorded. How can i do this with LV or where must i store the unit information (lookups strings like Step.Units or Step.Result.Units doesn`t work).

Hope you can help me.

schwede
0 Kudos
Message 1 of 8
(5,069 Views)
Schwede,

i asume you tried out SetPropVal with the stated lookup string. Have you passed a TRUE at "insert if missing"?
The correct lookup string is Step.Resul.Units if you are changing the unit within the step itself. Otherwise, you have to get to the step (or resultlistcontainer) before setting the units....

hope this helps,
Norbert
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 8
(5,056 Views)
Hello,

thankyou for your answer. I have allready tried  it. The result you can see at the attachment.
The unit variable is at Step.Result.Units, but not at Locals.ResultList[x].Units. The numeric and Limits variables with values are correctly as you can see.

Any ideas?

greetings schwede



0 Kudos
Message 3 of 8
(5,048 Views)
Schwede,

please take a look into attached example.


hope this helps,
Norbert
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 8
(5,041 Views)
Yes, if I use the NI Numeric Limit Step it works, but if I  use  my custom step  it didn`t.
I have a custom edit step and no status expression.

greetings

schwede  Smiley Sad
0 Kudos
Message 5 of 8
(5,036 Views)
Hey Schwede,

I am having trouble reproducing your issue.  Would you mind creating and uploading a small example sequence file where you are using both the NI numeric limit test and your custom step type?  When you upload it, will you also specify exactly what we should look for in this sequence file.  I hope to hear from you soon.
Best Regards,
Software Engineer
Jett R
0 Kudos
Message 6 of 8
(4,971 Views)
Solution
Accepted by topic author Schwede
Hey Schwede,

I also wanted to point out some information about property flags concerning your custom step type.  If the information in Step.Result.Units is not appearing in your report, make sure that the PropFlags_DoNotCopyToResults is deselected.  See the screen shot below for an example of how to deselect this property for a single step.  Once this property is de-selected for the custom step type, you should see the Units in your report.  I hope this helps!




Message Edited by JettR on 12-21-2007 10:06 AM
Best Regards,
Software Engineer
Jett R
0 Kudos
Message 7 of 8
(4,949 Views)
That seem to be the solution! I trie it.

thankyou

kschwede


0 Kudos
Message 8 of 8
(4,863 Views)