Multiple numeric test measurment name vb6
I am trying to obtain the names of Multiple Numeric Test measurements from Visual Basic (vb6).
I have read the knowledgebase article 2NE7K56E which gives excerpts from an example for LabWindows/CVI
and am getting closer, but no solution yet.
Here is what I have and the error I get:
Dim stepAsPropObj As PropertyObject
Dim measAsPropObj As PropertyObject
Dim sName as String
stepAsPropObj = currentStep.AsPropertyObject()
i=0
Do While (existsMultiResults)
'the following works to obtain upper limit
limitsArrayHigh(i) = FormatNumber(stepAsPropObj.GetValNumber("result.measurement[" & Format(i) & "].limits.high", 0), 3)
'the following statement gives the error "Specified value does not have the expected type":
measAsPropObj = stepAsPropObj.GetPropertyObjectByOffset(i, 0)
sName = measAsPropObj.Name 'dont know if this works or not. not getting this far.
Loop
It seems that "result.measurement" has to be specified somewhere,
but everything I try gives a different error.
Can anyone show me how to do this.
Thanks very much.
Jon
Jon,
I'm not sure at this point why you are getting the error when trying to access the name of the Measurement. This is one of those cases where it might be easier for me to send you a small example that reads the measurement's name in VB. This might be easier than me trying to find out what is the difference between your code and mine.
Make sure to re-link the .Net assembly to point to the new location where you decompress the files.
Let me know if this works on your computer and what differences you see between this and your code.
Regards,
Santiago D
Attachments:
Measurement_DotNet.zip 37 KB
Similar Messages
-
Creating custom edit step (LV) for multiple numeric test
Hello,
i want to write a custom edit step (LabView) for a custom multiple numeric test (TestStand 3.0). It should be the replacement for the editmultinumericmeasurementstep. Have anybody done this before and example code or a solution?
greetings schwedeHello,
thankyou for your answer. But it doesn`t help. I know how to create a custom step type. But I want to create a custom multiple numeric limit test step type with a custom vi as the editmultinumericmeasurementstep. It is quiet difficulty, because i want to create my own measurements (see the attachment). The name of the test should not be measurement 0 or 1 but LED test color oder LED test intensity.
greetings schwede
Message Edited by Schwede on 12-06-2007 02:42 AM
Attachments:
Test.rtf 1414 KB -
Multiple numeric test with cluster from labview?
Is it possible to make a multiple numeric limit test with the values from a cluster from a labview vi?
Solved!
Go to Solution.This can be done with a little work.
The first step is to get the cluster's data back in to TestStand's memory space as you would do normally.
Then you either use post expressions (since you're at a point in time between the test code module completing and the status evaluation) to move the pertinent parts in to the data source for the step (usually step.numericarray) or...
http://zone.ni.com/reference/en-XX/help/370052K-01/tsref/infotopics/test_step_types_mnl_test/
And
http://zone.ni.com/reference/en-XX/help/370052K-01/tsref/infotopics/pane_mnl_datasource/
Use the 'specify data source for each measurement''.
I'm not in front of a computer with TestStand right now to knock up an example but it should be pretty straight forward.
Either method should allow you to work with a mixed cluster of data types and just evaluate on the numeric ones.
Thanks
Sacha
// it takes almost no time to rate an answer -
Hi all,
I have a problem with decimal point character and database logging.
I've deselected "Use Localized Decimal Point" in Station Options->Localization. Teststand should now use "." as decimal point character (ignore the "'s).
When logging to database this is only true for Multiple numeric limit test results, not for Numeric limit test results.
Numeric limit test results use "," as decimal point character where it should be "."
I can't trust the localization settings on the PC as different endusers might have different settings.
Example:
(STEP_NAME and PROP_RESULT.DATA)
Numeric limit test 1,50127667932332
Multiple numeric limit test result_1 1
Multiple numeric limit test result_2 1
Multiple numeric limit test result_3 10.0304317
I've changed the Limits->Numeric format for each test but this change is only applied to the report, not the database result.
Read the manuals but didn't find anything...
Have I missed something obvious, or is this some kind of bug?
Teststand version is 2010.
Windows versions are XP SP3 and Win7. Same behavior on both OS.When something is logged to the database as a number, the database is probably storing it in a way that is independent of any sort of decimal point localization. When you view the items in the database however it is probably going to show you the number based on the current locale settings. This is likely purely cosmetic, for display purposes.
-Doug -
Multiple numeric test selective Measurements
Hi
I am using a Multiple. Numeric Measurement.
with
Measurement A
Measurement B
Measurement C
I want to be selective in which measurements I want to do. based on a Variable(bool or numeric)
i.e based on my Select switch sometimes I wont be doing Measurement B and sometimes I would
how can I achieve the sameThe easiest solution is to create 2 steps calling the same module. One with A and C and the other with all 3.
Then just precondition them so that one runs in one instance and the other runs in the other case.
Outside of that you can dynamically change the measurements through the API either in a preceding step or in the code module.
You could also create a custom step where you can turn off and on one of the measurements. I don't recommend this. It seems a bit overkill.
Hope this helps,
jigg
CTA, CLA
teststandhelp.com
~Will work for kudos and/or BBQ~ -
Property Loader and Multiple Numeric Limit Test
Hi!
I'm trying to export the limits of all numeric limit tests im my sequence.
I've no idea what i'm doing wrong, but i fail with exporting the limits of the multiple numeric limit tests. There are only the limits of the "normal" numeric limit tests in my export.
Could someone please explain me how to export also the limits of the multiple numeric limit test?
(TS 2013)when defining what to export, it is usually easiest/cleanest if you can explicitly define all multiple numeric step measurements as explicit indixes? For example if your MNL step has 2 measurements defined, you'd want to export 4 additional matches...
Step.Result.Measurement[0].Limits.Low
Step.Result.Measurement[0].Limits.High
Step.Result.Measurement[1].Limits.Low
Step.Result.Measurement[1].Limits.High
...and so on for more indexes....
note how the pattern is different from the regular
Step.Limits.*
by default when you try to export using the '>' buttons for MNL steps, TestStand will usually try to help by generating an incomplete/invalid expression of:
Step.Result.Measurement[?].Limits
which it expects you as the user to fix before proceeding, however the '?' is often overlooked, because it's so small!
some people prefer to simply export the entire Step.Result.Measurement.* to the file because they'd prefer not to define array indexes, but this will log the explicit XML for the container values, which may not be as easy for end users to work with... your mileage may vary. Good luck!
-Elaine -
Exporting/Loading properties for Multiple Numeric steps
So, my test uses quite a few 'Multiple Numeric' test steps.
I am just looking at using the property loader to import all of these limit values.
Now as i understand each test step in the property file (excel im y case) must have multiple columns (for each index in the data array)
I also understand that the easiest way to generate the excel properties file is to export it before adding the values.
Now, I am using the 'tools - import/export properties' window, and i try to add Step.Result.Measurement[x].Limits.Low but it is not available.
There is an entry for Step.Result.Measurement[?].HighExpr, so i can add that, then change it to [0], [1] etc
Is there not a way to add all of the array items at once?
I need '.comp' '.Limits.Low' '.Limits.High' for each array element.
Have i missed something obvious?
Labview 2010, TestStand 2010Hi, I;m using 2010.
I'll give a more specific case:
In one of my multiple numeric tests i have the limit expression : Step.Result.Measurement["ck1+"].Limits.High
(I even tryed removing the alias and using : Step.Result.Measurement[0].Limits.High)
This can be found in the expression browser tree.
But this does not appear in the tree of expressions when using the properties import/export window.
The only items that do are: Result.Measurement[?].Limits.LowExpr & Result.Measurement[?].Limits.HighExpr
i have tried manual editing entries there, but they are ignored when exporting.
Help
Labview 2010, TestStand 2010 -
Dynamically configure multiple numeric limit test measurements
I seek to dynamically (programatically) configure a multiple numeric limit test such that I may set / increase / change the number of measurements in the step during execution. For example, I'd like to setup the step for 5 measurements:
M1, M2, M3, M4, M5 with limits 4<=x<=13.
I'll set the result data to {1,2,3,4,5}.
I can successfully set:
MyMultipleNumLimTestStep.ExpectedNumMeas = 5
MyMultipleNumLimTestStep.NumericArray (Number of elements to 5)
MyMultipleNumLimTestStep.DataSourceArray (Number of elements to 5)
MyMultipleNumLimTestStep.Result.Measurement (Numer of elements to 5)
Following that, I can access the individual measurement property objects (by offset) and set the Name, Limits.Low, Limits.High, etc...
During execution, I can view the step variables to see the values getting set correctly.
BUT, in the report, I only see measurement name, status and the measurement value. NOT the units, limits, comparison type.
Step
Status
Measurement
Units
Limits
Low Limit
High Limit
Comparison Type
AmpMatchTest
Failed
Measurement:
M1
Failed
1.000
M2
Failed
2.000
M3
Failed
3.000
M4
Passed
4.000
M5
Passed
5.000
Take note, prior to execution, I have no entries defined in the Limits tab of the step settings for this step. If I were to define, say, two steps and run again:
Step
Status
Measurement
Units
Limits
Low Limit
High Limit
Comparison Type
AmpMatchTest
Failed
Measurement:
M1
Failed
1.000
dB
4
13
GELE(>= <=)
M2
Failed
2.000
dB
4
13
GELE(>= <=)
M3
Failed
3.000
M4
Passed
4.000
M5
Passed
5.000
If I define >5 entries, my code will limit the result to 5. Any ideas?
Thanks,
DerekHi jigg.
I also need to configure a multiple numeric limit test programatically. Unfortunately your solution seems not to work (in Teststand 2013). Also with your code I get limits and comparsion entries in the report only for the first measurement. This is the one already existing in the step configuration.
Step
Status
Measurement
Units
Limits
Low Limit
High Limit
Comparison Type
Dynamic Call
Passed
Measurement:
AllParts
Passed
1
1 = Pass
1
EQ(==)
Another Part
Passed
1
Part 20
Passed
1
Part 2
Passed
1
Part 1
Passed
1
If I add a second measurement in the step, this one is shifted (like expected) and shows the limits and comparsion in the report.
Step
Status
Measurement
Units
Limits
Low Limit
High Limit
Comparison Type
Dynamic Call
Failed
Measurement:
AllParts
Passed
1
1 = Pass
1
EQ(==)
Another Part
Passed
1
Part 20
Passed
1
Part 2
Passed
1
Part 1
Passed
1
Measurement 1
Failed
0
1 = Pass
1
EQ(==)
What is special with the preconfigured measurements, compared to the programatically created test? Any help is very appreciated.
Thanks
--rainer -
Multiple Numeric Limit Test Names
How do I get the names of the Measurements of Multiple Numeric Limit from inside the VI that is doing the test.
I wish to edit them to reflect the measurement that I am making.
I can find and change the name of the step, but can't see where the name of the measurements are.
Thanks
OmarHello Omar.
Your VI can do this by
(1) Get the number of array elements contained in "Step.Result.Measurement".
(2) Get each array elements property "Name".
The attached VI was saved with LabVIEW 7.1.
Regards, Guenter
Attachments:
HowTo get MeasurementNames (in LabVIEW) of a MultipleNumericLimitStep.zip 20 KB -
Can I exclude measurement (of multiple numeric limit test) from results ?
I'm working on test where instrument returns multiple results at one call.
I use NI MultipleNumericLimitTest -step type (TS 2.0.1).
In some cases I'd like to exclude certain measurement from the results.
I could do this for example by setting Comparison type of selected measurement to "No Comparison", so that this measurement is assumed to PASS always.
Is there any property flag or any other way to exclude measurement from the results completely ?
(So I don't want this measurement to affect on multiple limit test status or to appear in the report)
cheers,
MasiHi!
Yes, there is a property that you can set/reset that specifies whether the property appears in the report or not.
1. Right click on your multiple numeric step and select View Contents
2. From the tree view, browse to YourStep->Results->Measurement.
3. Right click Measurement and select properties.
4. Click the Advanced button and look for the PropFlags_IncludeInReport flag and uncheck it.
That's it, now your measurements will not appear in the report. If you want some of the measurements (but not all) to be included in the report, then browse to the specific measurement YourStep->Results->Measurement[i], and check the PropFlags_IncludeInReport flag for that property.
I hope this helps. Let me know if you need more information.
Marcela. -
Display all measurements in Multiple Numeric Limit Test using UI SeuqenceView Control
Hi, I found only the total result in Multiple Numeric Limit test can be show in UI SequenceView Control. How can I display more detail information in it?
For example, If I want to display like this:
Mulitple Numeric Limit test FAIL
Measurement1 PASS
Measuremtnt2 FAIL
Is it possible in UI sequenceview control?
Thanks in advanceYou might be interested in this community example: Recursive Expression in TestStand.
It is possible (though not traightforward) to loop in an expression using recursion. The example above shows how to use recursion in an expression to list all of the limits of a multiple numeric limit step. This is similar to what you want to do with measurements.
I honestly think you're better off with Doug's suggestion to hard-code a maximum number of measurements to display as using recursion in expressions is not easy.
Josh W.
Certified TestStand Architect
Formerly blue -
Measurement for multiple numeric limit test
Hello,
I am developing a test software using LabWindows and TestStand. In my application, I have added a no: of multinumeric tests. In Operator Interface, I want to display each measurement in run time, instead of waiting for completion of all the measurements with Multiple numeric limit test. Is there any way to receive in TSOP each runtime measurent taken for multiple numeric limit test without waiting for multinumeric limit test over?
Thanks in advance......
Best Regards,
VijayHi Vijay,
Unfortunately, a Multiple Numeric Limit Test will not allow you to return each measurement inside the step as it executes. If you need this to occur, there are other methods that you could take. You could create a custom step type or use many Numeric Limit Test steps and pass them the indexes in your array.
Another method you might use would be to use an Action step and save the array locally. Then, you could use Statement steps to evaluate each item in the array.
Jessica
National Instruments
Product Support Engineer -
Multiple Numeric Limit Test - Evaluate Post and Status Expression
We have a Multiple Numeric Limit Test where the limits for one of the measurements is a function of one of the other measurements.
In the Post-Expression there are two expressions that set the low and high limit based on one of the readings.
But the comparison does not seem to be using the calculated limits.
The report file shows the correct calculated Low and High Limits, and shows the measured reading as being in between the Low and High limit, but fails that measurement. I feel the Status Expression is using the default limits that are out of range.
The post expression looks like this
Step.Result.Measurement[2].Limits.Low=Step.NumericArray[1]*1.9,
Step.Result.Measurement[2].Limits.High=Step.NumericArray[1]*2.1
In Table 3-4 "Order of Action that a Step Performs", Evaluate Post-Expression (Action #15) is before Evaluate Status Expression (Action #16), but it seems that is not the case.
Or am I changing the wrong Low and High Limits. Am I just changing the Limits used in the report file and not the limits used for comparison?
Again the correct low and high limits are in the report but not used for comparison.
ThanksDigging into the NI step type for Multiple Numeric Limit Test, I find that the comparison is done at Post-Step substep which is before my Post Expression is evaluated to set the correct limits.
So I have added code to my VI module to set the limits after taking the measurements but before returning to TestStand. -
Execution order of Multiple Numeric Limit Test?
What is the execution order of "Multiple Numeric Limit Test" in TestStand 2010?
I am using a custom steptype of Multiple Numeric Limit Test. I want to manipulate the input parameter. How can I do that. I am not interested in making a new steptype. I am writing in Post-Expressions and the data is manipulated as they should but it is not evaluated. I is evaluated before the Post-Expressions executes.
For example I am writing: Step.NumericArray[0]= Step.NumericArray[0]*1000/(2.5-Step.NumericArray[0])
The execution order when looking at the TS manual at page 3-13 is Evaluate Post-Expression before Evaluate Status expression. But it is not what I see. I have also tryed using the more simple Numeric Limit Test and it works as I expect it to according the manual.
Anyone knows about any workaround for that?Hi Ray
Thanks for your reply
I have tried writing what you are suggesting: Step.Result.Measurement[0].Data= Step.Result.Measurement[0].Data*1000/(2.5-Step.Result.Measurement[0].Data)
Still it evaluates the step before the post-Expression. When I am looking at the variables at runtime the Step.Result.Measurement[0].Data is having the correct value but it seems to evaluate the step before the Post-Expressions.
Any other suggestions? -
Multiple Numeric Limit Hide "Unused" Outputs In Test Report
Hello,
I have a question relating to Multiple Numeric Limit Test and output report in ascii txt format:
Sample Measurement, this is what I see in the txt file:
Measurement[74] :
Limits:
Low: 4.75
High: 5.25
LowExpr: ''
HighExpr: ''
Units: V
Comparison Type: GELE (>= <=)
CompExpr: ''
UseCompExpr: False
Data: 5
Status: Passed
Is there anyway I can hide or "not include" the unused portion of the output? In this case I don't need LowExpr, HighExpr, CompExpr and UseCompExpr. It will make the report cleaner and easier to navigate...essentially this:
Measurement[74] :
Limits:
Low: 4.75
High: 5.25
Units: V
Comparison Type: GELE (>= <=)
Data: 5
Status: Passed
Regards,
Mike
Solved!
Go to Solution.I see the following when I create a new multinumeric limit test:
Multiple Numeric Limit Test: Failed
Measurement:
Measurement[0] (Measurement 0):
Limits:
Low: 9
High: 11
Comparison Type: GELE (>= <=)
Data: 0
Status: Failed
Measurement[1] (Measurement 1):
Limits:
Low: 9
High: 11
Comparison Type: GELE (>= <=)
Data: 0
Status: Failed
I think it's supposed to work exactly like you are wanting it to. Perhaps there is some issue with how the step involved was created or modified or converted. Can you reproduce this problem with a newly created and specified step? Also, please specify what version of TestStand you are using.
-Doug
Maybe you are looking for
-
I changed from manually managing music to create more space on my IPod and lost a lot of the my music since it synched with another library. ( I think off another long gone computer!) I HAVE to get this music back! There are songs I can no longer f
-
How do I know if I would benefit from an SSD?
I use my MacBook Pro (Mid 2010) for development. It hits the CPU hard, but there are also a lot of reads and writes of small files, and sometimes the computer is very sluggish even when Activity Monitor shows the CPU is not maxed out. What's the maxi
-
Import users from BIAR file -- users not listed in import screen of Wizard
Hi, we try to import users from a BO XI R2 SP4 running on Windows to our BO XI R2 SP4 running on Linux (both use Oracle database). When I try to import users with the Import Wizard, I can't see the list of users so at the end of the import and show
-
Dear all I have install a quality server now is working perfectly but when use the db 13 then when i excute the 1-check database. 2-check and update optimizer staitics not excuted please guide , will we configre any location ? thanks with best r
-
How to remove dirt stains on aluminium lid of Macbook pro?
Good day! I recently found some marks and stains of dirt in my macbook pro's aluminum body. I tried wiping it off with Alcohol and Water but it won't disappear it looks like its stained on the metal already. Is there any thing I can apply on the surf