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

Similar Messages

  • Different decimal point character for numeric limit test vs multiple numeric test with database logging

    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

  • 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 schwede

    Hello,
    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 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

  • Call a Borland Delphi DLL with Structs from LabView

    Hello,
    I have a problem to build an equivalent Struct in Labview to the following Struct which I want to retrieve from a DLL.
    type
    TM2DScanline=record
    YWert:double;
    XWert:array[0..raster] of double;
    ZWert:array[0..raster] of double;
    IWert:array[0..raster] of byte;
    end;
    M2DScanArea =array[0..maxScans] of TM2DScanline;
    PointerToScanArea=^M2DScanArea;
    PointerToScanArea is the parameter I want to retrieve.
    If anybody knows a way for doing this, help would be very appreciated
    Thanks
    Peter

    Are raster and maxScans both constant? If I recall correctly, many dialects of Pascal just lay the elements of a fixed-size array out in memory with no size parameter; if this is the case with Delphi, then you may be able to do the following (in my example, I'll assume "raster" is a constant set to 40, and maxScans is a constant set to 5):
    Create a cluster called XWert with 40 Numeric elements (representation: DBL).
    Copy XWert and name the copy ZWert.
    Create a cluster called IWert with 40 Numeric elements (representation: U8).
    Create a cluster called TM2DScanline.
    Create a Numeric inside TM2DScanline called YWert (representation: DBL).
    Drag XWert, then ZWert, then IWert into TMD2Scanline.
    Create a cluster called ScanArea and drag 5 copies of TMD2Scanline into it.
    Create a Call Library node on your block diagram, give it your DLL and function name, and set the return value to whatever your Delphi function returns. You probably want the WINAPI calling convention.
    Add a parameter and make it "Adapt to Type: Pointers to Handles". Close the node and wire the ScanArea cluster to the input.
    Right-click on the Call Library Node and select "Create .c file...." Read through the C file to make sure its structure is similar to your Delphi record: you should see five copies of the TM2DScanline structure, each of which contains a double followed by two fixed 40-element structures of double and a fixed 40-element structure of unsigned char. You should see no reference to the word "Hdl" anywhere in the code.
    This strategy will only work if the arrays in your records are fixed at a constant size, and if Delphi lays out the arrays in memory as described above. Instead of doing all this work, you may want to write a small C or Pascal wrapper around your Delphi function. This wrapper could take simpler parameter types (which are easier to use from LabVIEW) and bundle them into the cluster before calling your Delphi function.

  • Pass error cluster from labview dll to teststand

    Hello,
    I just want to pass an error cluster from a dll compiled in LV7.1 to TestStand 3.1. I never receive the contents of the LV error cluster in TS. I compiled my function with standard calling convention option, this should work. In my VI I generate only an error and pass to error output.
    LV Settings:
     TS settings:
    regards
    MB

    MB,
    please follow the info in this KB:
    http://digital.ni.com/public.nsf/allkb/22BF02003B4588808625717F003ECD67?OpenDocument
    Please note that using "By Value" will never return any values to TestStand!
    You cannot use the default error-container in TestStand to receive data from the LV error cluster if you compile the VI into a LV DLL.
    So either you choose to follow the KB or you split up the error cluster in your LV VIs to return error.occurred (boolean), error.code (numeric i32) and error.msg (LV String) .
    hope this helps,
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • 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  same

    The 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~

  • Choosing from multiple itunes libraries with ATV from same computer.

    Hello to Apple universe. this question pertains to seeing and choosing from multiple librairies that i created through itunes on my one imac music server.
    i created a second library on an attached external drive as my internal is almost full. I was wondering if there is a way to configure either itunes or ATV or both so that when I use ATV i am able to choose from which library to play from. i would appreciate steps to take or if this is an old topic, perhaps a referral link to the correct answer. Running Itunes v.10.6.3 on Imac running v.10.5.8 and ATV running v.6.2   Thanks for your time. John.

    If you set up homesharing in iTunes on the Windows computer, using the same ID and password as used with your first library, then both libraries will show up under the computers heading on the Apple TV. When you navigate to the computers section you will be able to choose either library and hence any content from it.

  • Spread Data Over Multiple Months & Years with Data from Multiple Years

    Hello Everyone,
    I have a complex calculation for spreading values over several months spanning mulitle years. Because we have a 36 month rolling Forecast, a more sophisticated calc is required as opposed to hard coding months or years.
    Heres the description:
    Users enter the following data,
    FY11     BegBalance     Number of BOD Members     10
              BOD Options Vesting Months     20
              BOD Options Accounting Value     10
              BOD Options- Number of Shares     100
              BOD Grant Month     Aug
    FY12     BegBalance     Number of BOD Members     5
              BOD Options Vesting Months     10
              BOD Options Accounting Value     5
              BOD Options- Number of Shares     200
              BOD Grant Month     Oct
    FY13     BegBalance     Number of BOD Members     20
              BOD Options Vesting Months     8
              BOD Options Accounting Value     20
              BOD Options- Number of Shares     100
              BOD Grant Month     Feb
    Based on the above;
    "BOD Stock" is calculated as following/month=Number of BOD Members*BOD Options Accounting Value*BOD Options- Number of Shares/ BOD Options Vesting Months
    Start month for the above is based on "BOD Grant Month". So, for instance considering data for FY11:
    The total "BOD Stock" value is $10000 (originating from FY11) with start month of AUG in FY11 and the number of months to spread over is 20 months. So, essentially the "BOD Stock" per month (originating from FY11) is $500 starting from AUG FY11 to Mar FY13.
    Similarly, the total "BOD Stock" value is $5000 (originating from FY12) with start month of OCT in FY12 and the number of months to spread over is 10 months. So, essentially the "BOD Stock" per month (originating from FY12) is $500 starting from OCT FY12 to JUL FY13.
    The challange I am facing is because of the number of months to spread. Because I have data to spread from multiple years and each year's data spills into the following years, each year should accumulate data from prior years. For instance;
    FY11 should include only FY11
    FY12 should include FY11 and FY12
    FY13 should include FY11, FY12 and FY13.
    Could anyone suggest a smarter way to do this without writting code for each year, maybe using @MDALLOCATE function? The following shows how data should be spread and accumulated.
                             BegBalance     Jan     Feb     Mar     Apr     May     Jun     Jul     Aug     Sep     Oct     Nov     Dec     Period
    FY11     Number of BOD Members          10     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Vesting Months          20     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Accounting Value     10     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options- Number of Shares     100     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Grant Month               Aug     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
              BOD Stock               10000     #mi     #mi     #mi     #mi     #mi     #mi     #mi     500     500     500     500     500     #mi
    FY12     Number of BOD Members          5     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Vesting Months          10     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Accounting Value     5     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options- Number of Shares     200     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Grant Month               Oct     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
              BOD Stock               5000     500     500     500     500     500     500     500     500     500     1000     1000     1000     #mi
    FY13     Number of BOD Members          20     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Vesting Months          8     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Accounting Value     20     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options- Number of Shares     100     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Grant Month               Feb     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
              BOD Stock               40000     1000     6000     6000     5500     5500     5500     5500     5000     5000     #mi     #mi     #mi     #mi
    Appreciate your inputs!
    Edited by: user10678366 on Oct 12, 2010 3:21 PM

    Why not use substitution variables for Years? you could have something like &Year1, &Year2, &Year3
    Cheers

  • How to open a text-file with notepad from labview-vi?

    Hello,
    how can i execute a program from a vi?
    I want to open a textfile with Windows7-Notepad after selelecting it from a file-path-control and pressing an open-button.
    Thx for help
    Solved!
    Go to Solution.

    Use the command line.  Something like cmd /c notepad c:\temp\blah.txt should work.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Report with multiple COUNT columns with counts from same table

    I am new to discoverer so I am a bit lost.
    I am working to create a report to show usage data from the eBusiness Knowledge Base. I have the query written in SQL using subqueries that is in the format:
    Solution Number | Soultion Title | Solution Views | Positive Feedback | Negative Feedback
    12345 ___________ Title ________ 345 ____________ 98 _______________ 34
    The 'Views', 'Positive' and 'Negative' entries are stored in the same table so i am doing a count where setid=setid and usedtype=VS, then counting where usedtype=PF and usedtype=NF
    In discoverer I can get the solution number, title and ONE of the totals but I can't seem to figure out how to get a COUNT for three different things from the same table in columns on the same row.
    When I go to edit sheet -> select items once I select the COUNT option for the UsedType column in the table CS_KB_SET_USED_HISTS I can't select it again. I also have found now way to add a column based on an entered query.
    If anyone could help it would be much appreciated.
    Thanks
    Edited by: Toolman21 on Dec 2, 2010 2:17 PM
    added ______ to correct spacing.

    Hi,
    You can separate the column by using a case or decode.
    for example create 2 calculations:
    case
    when usedtype='PF'
    then <you original column> --- the one contain them both
    else 0
    end
    case
    when usedtype='NF'
    then <you original column> --- the one contain them both
    else 0
    end
    after that you can create the count aggregation over those.
    Tamir

  • Import/export properties of multiple numeric limit steps

    Hello
    I have a question to the property loader and the import/export tool in TestStand 3.5.
    When I want to export the limits of a sequence with multiple numeric steps with the import/export tool, I press the Limits button to include the limits into the 'selected' field of the properties tab. But for the multiple numeric step the limits are included not for all indices but only once with an question mark instead of an index (Result.Measurement[?].Limits.Low, Result.Measurement[?].Limits.High, Result.Measurement[?].Limits.Comp).
    The property loader step acts the same way. 
    What can I do ?
    Thanks
    Olli

    Hi Olli,
    For the multiple numeric limit test, you will need to individually specify which numeric limits you want to export. Lets suppose you have 3 sets of limits for your multiple numeric limit test. If you wanted to export the first set, you would use the syntax
    Step.Result.Measurement[0].Limits.Low
    Step.Result.Measurement[0].Limits.High
    You will need to do this for each set of limits you have in your array. Simply replace the "?" with the index of the element in the array.
    Hope this helps!
    Best Regards,
    Jonathan N.
    National Instruments

  • 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 2010

    Hi, 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

  • Pass 2D array from LabVIEW to C# problem

    Hi , I have made a dll using .net assembly to use my labview code in c# . I can easily pass string , numerical and 1D arrays from labview to c# and vice versa, but when I want to read back 2D U16 array from Labview in c# I get the following exception although they have exactly the same type (ushort)
    Cannot widen from source type to target type either because the source type is a not a primitive type or the conversion cannot be accomplished.
    Could you please let me know how should I pass 2d array from labview to c#
    Thanks

    If all else fails, you could pass n 1D arrays across and then put the original 2D array back together. That's probably how the computer would do it behind the scenes, anyway.
    Cameron
    To err is human, but to really foul it up requires a computer.
    The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
    Profanity is the one language all programmers know best.
    An expert is someone who has made all the possible mistakes.
    To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
    LabVIEW Unit 1 - Getting Started
    Learn to Use LabVIEW with MyDAQ

  • Can I control Unholtz-Dickie VWIN ver. 4.61 software from Labview?

    Unholtz-Dickie VWIN is a Window-based application that controls a vibration system. I want to coordinate the vibration control with the acquisition of data from the unit under test.

    Hello,
    I just did a quick websearch and wasn't able to find any information on getting LabVIEW to work with this VWIN software of which you speak. If this software has ActiveX capabilities, you should be able to communicate with it from LabVIEW without any problems...LabVIEW has the ability to control other programs with its ActiveX tools. If your VWIN software does not support ActiveX, however, your options are rather limited...you could use the "System Exec" VI in LabVIEW to launch the VWIN software from LabVIEW, but you would have no control over it from LabVIEW.
    There are other ways of communicating between programs (DLL calls, simple ASCII text file writing, etc.), but these would not be as easy as ActiveX. You may want to contact the manufacturer of this softwar
    e and ask them if they known of any of their customers attempting to control the software externally, and if so, what methods they used.
    I wish you luck with your application. Also, in the future please post LabVIEW-related question in the appropriate LabVIEW forum.
    Have a pleasant day.
    Sincerely,
    Darren N.
    NI Applications Engineer
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

Maybe you are looking for

  • How To Create On Submit Button For Master_detail Page ?

    I have adf page that is master And detail view. i want to have one submit button for master and detail block

  • Using a mini with two laptops

    i'm having problems using my mini ipod with a second computer. i used the copypad software to make a copy of my itunes library on the second laptop, and i can play music from the second laptop ok. at this point i want to make this second laptop the m

  • Can I buy Leopard retail second hand?

    I lost my Mac OS X Retail Leopard install disc that I bought years ago. My friend is willing to sell me his Retail Leopard install disc however I thought I'd check with you to see if this is okay. He no longer uses Leopard as he sold his old iMac and

  • IPDA 2 Safari - can't access windows to close.

    8 windows open but cant get to them. The touch button to access the windows seems to feel the touch, but won't open to the 8 windows. Only the address/path bar is active for typing. The web page below is greyed out. Help!!!

  • Binary image to color jpeg

    I am manipulating (B/W) ICCD images with Vision.  Unfortunately, I have to cut the images down to I8, but that is not the issue.  My question is this-  Labview allows me to visualize the I8 data with a "rainbow" color map.  I would like to get it to