LabVIEW Variant Attributes get lost in TestStand?

Hello,
Example code attached.
I'm using a LabVIEW variant as a lookup table by using the attributes (see here: https://decibel.ni.com/content/docs/DOC-25371 (and others)).  It works well.  When I attempt to pass this variant from one TestStand step to another, I lose the attributes of the variant.  I've made a small example to demonstrate this.  Am I doing something wrong?  Why does the variant retain the value, but not the attributes?  Should I store this as another type in TestStand?  In the documentation for LabVIEW types in TestStand, it is claimed that a Variant in LabVIEW maps to "Anything" in TestStand.  When I tried to use a Boolean, however, I got an error and was instructed to use a Container.  Does that container need to have some specific suptype to retain the attributes?  Or does it have nothing to do with that?
Thanks in advance
 

Hey GarryG,
Here is an excerpt from the NI Product Support Engineer's response on this issue:
"Unfortunately, this is a known limitation with LabVIEW variants in TestStand.  When LabVIEW variant data is returned to TestStand from a LabVIEW code module, the data overwrites the property. TestStand does not have a mechanism to "fit" the returned variant data to the TestStand type, so unfortunately you will need to either remap the data to the type, or use a cluster rather than a variant."
Essentially, it appears that variant data can not be guaranteed to work properly in TestStand. In order to ensure you have your data passed from your Code Modules correctly, I would recommended following the Product Support Engineer's advice of remapping or clustering the data. If this is not possible, the Flatten Variant to String.vi could be an alternative to try. I was able to confirm that this has not been fixed with TestStand 2014 either.
Typecasting LabVIEW Variants in TestStand Forum Post:
http://forums.ni.com/t5/NI-TestStand/typecasting-Labview-variant-in-Teststand/td-p/2160452/page/2
I hope this helps!

Similar Messages

  • Pb with "Get Variant Attribute" LabVIEW 6

    hello
    I want to find the value corresponding to the variable name in a Variant structure. For this purpose I use the "Get Variant Attribute" function, but I do not get any good result : no result in the get value, and also when no string name input is given to get all the attribute of the variant.
    where is the bug ?
    thank you

    Hi,
    No bug, Get Variant Attribute returns values you've put in it using Set
    Variant Attribute.
    Unfortunately there is no way (I could think of) to get the text of a
    variant out of the variant in string format.
    Regards,
    Wiebe.
    "hub" wrote in message
    news:[email protected]..
    > hello
    > I want to find the value corresponding to the variable name in a
    > Variant structure. For this purpose I use the "Get Variant Attribute"
    > function, but I do not get any good result : no result in the get
    > value, and also when no string name input is given to get all the
    > attribute of the variant.
    > where is the bug ?
    > thank you

  • Get variant attribute

    I m using LV 6.0.2, the function "get variant attribute" does not work. I
    get nothing out of it: no error, no values.
    Any idea?!
    Actually I could need exactly the string that is shown in a variant
    indicator/control.
    e.g.:
    'Cluster': cluster of 2 elements
    'Array': 1-D array of
    'Numeric': double
    'Boolean': boolean
    'Array' -> (2.000E+0, 2.000E+0)
    'Boolean' -> FALSE
    Has anybody an idea how I can get this as a string?
    Thank You.
    Max
    -> [email protected] / [email protected] <-
    -> Max Weiß * Eulenweg 2 * 76356 Weingarten * Germany <-
    -> Fax/Voicebox: 0180 505254775181 * Tel: +49 162 9114507 <-
    -> ICQ: 123429315 * DB 8 MWE <-

    The reason you can't get an attrivute of the vairant is because your variant doesn't have any. Use "Set Variant Attribute" to add an attribute to your variant, and then you should be able to read it back later using the "Get Variant Attribute".
    cheers,
    Christopher
    Copyright © 2004-2015 Christopher G. Relf. Some Rights Reserved. This posting is licensed under a Creative Commons Attribution 2.5 License.

  • Get Variant Attribute Should Search for and return multiple values based on RegEx

    I am using Variants as lookup tables (see this article):
    Using Variant Attributes to Build a Dictionary or Look-up Table
    I would like to be able to use some sort of wildcard to return multiple results from the Get Variant Attribute VI (all results are of the same type, and I don't know the exact names of all the results - those two points make this idea distinct from this idea: Set/Get Variant Attribute for Multiple Attributes).
    Ideally the wildcard would be RegEx.  If it were, the means by which you specify what to return is standardized.
    In the above example, there would be some ambiguity in terms of whether or not you would want to return a result or an array of results given an input, and I doubt you could detect and assume RegEx is what the programmer desires to use.  So I think this means a new input would be required to specify whether or not the "name" input of the Get Variant Attribute VI should be interpreted as a RegEx query.
     

    Why RegEx? Why not SQL query? Why not filename wildcard matching?
    I don't see anything that makes RegEx special. For this kind of functionality, the code that you've written seems like exactly the right way to do it rather than bolting a RegEx parser or any other system into the primitives or clouding the palette with a bunch of primitives to support various search functions. I could see a primitive that takes a VI refnum that has a conpane of string in/boolean out that you would pass in to supply the filter functionality that you want for any given application, but even that I'd lean toward just letting that be a library that someone writes on top of the primitives. Yes, there is some memory reduction that can be done if it is internal to the primitives, no question about that. But there are so many variations in how to do that filtration/sorting/etc that I'm not confident that any prim would cover a sufficient use case to be worth it. I could be wrong here ... let's see what other comments come in.

  • ActiveX variant to LabVIEW variant

    Hi Ppl,
    I'm reading ActiveX data from an application(TestStand) in LabVIEW. The data I get is of the type ActiveX Variant. When I use variant to data node I'm able to convert the data to the corresponding data type. Howevere in my application the data type varies dynamically and I cannot use the variant to data node.
    I will have to flatten it to string. But the flatten to string node does not work with ActiveX variants. It only works with LabVIEW variant types. So is there any way that i could convert ActiveX variant types to LabVIEW variant. I tried the to variant node too. I too does not convert it as expected.
    Thanks,
    Sathish
    Here is how both the variant types differ
    Activex variant (boolean):
    '': OLE Variant 
    Variant Type -> VT_BOOLValue -> FALSE
    LabVIEW variant(boolean):
    'Boolean': boolean (TRUE or FALSE) 
    FALSE

    Hi lordsathish,
    Unfortunately, there is no way in LabVIEW to access type data for OLE/ActiveX variant data.  However, you can obtain information about the datatype of a TestStand PropertyObject using the ValueType method:
    myObject.Type.ValueType
    This will return the data type (see the ValueType help entry for more details).  you can then use the specific type methods (getValBoolean, etc) to extract data.  In the case that you have an array, you can use the ArrayDimensions and ElementType to extract the data from the array.  In the case of a container, the contained items will be considered propertyObjects, so you can use the getNumSubProperties and getPropertyObject methods to access the contained items.
    Refer to the PropertyObjectType reference help for details on these methods
    I hope this clarifies!
    Al B.
    Staff Software Engineer - TestStand
    CTA/CLD

  • TreeTable with inputText column data gets lost in adf 10g

    Hello All. I have a TreeTable in my page with two columns for user inputs. After a node is expanded, the data gets lost... The TreeTable was created using ViewObjects, here is one example of the sql query of one of the ViewObjects:
    select distinct det.cliente id_cliente
    , cust.customer_name descripcion
    , city.id_simcot
    , to_number(null) horas_normales
    , to_number(null) horas_recargo
    , 'CLIENTE' tipo
    from grc_dist_factura dist
    , grc_det_simcot_v city
    , grc_det_dist_factura det
    , ra_customers cust
    where det.id_dist_fact = dist.id_dist_fact
    and cust.party_id = det.cliente
    and dist.id_det_simcot = city.id_det_simcot
    and city.tipo = 'CIUDAD'
    The inputText are mapped to the attributes HorasNormales and HorasRecargo. Those columns does not existe in DataBase, that's why I create them in the View Object in that way.
    This is my TreeTable:
    <af:treeTable value="#{bindings.GrcConfTarifaRaizView.treeModel}"
    var="node"
    binding="#{ConfiguracionTarifas.treeTable1}"
    id="treeTable1" width="100%"
    emptyText="No hay un Arbol Disponible.">
    <f:facet name="nodeStamp">
    <af:column binding="#{ConfiguracionTarifas.column1}"
    id="column1" noWrap="true" headerNoWrap="true"
    headerText="Descripcion">
    <af:outputText value="#{node.Descripcion}"
    binding="#{ConfiguracionTarifas.outputText2}"
    id="outputText2"/>
    </af:column>
    </f:facet>
    <f:facet name="pathStamp">
    <af:outputText value="#{node.Descripcion}"
    binding="#{ConfiguracionTarifas.outputText3}"
    id="outputText3"/>
    </f:facet>
    <af:column sortable="false" headerText="Tarifa Hora Normal"
    formatType="number"
    binding="#{ConfiguracionTarifas.column2}" id="column2">
    <af:inputText binding="#{ConfiguracionTarifas.txtHoraNormal}"
    id="txtHoraNormal" rendered="#{node.Tipo ne 'RAIZ'}"
    value="#{node.HorasNormales}">
    </af:inputText>
    </af:column>
    <af:column sortable="false" headerText="Tarifa Hora Recargo"
    formatType="number"
    binding="#{ConfiguracionTarifas.column3}" id="column3">
    <af:inputText binding="#{ConfiguracionTarifas.txtHoraRecargo}"
    id="txtHoraRecargo" rendered="#{node.Tipo ne 'RAIZ'}"
    value="#{node.HorasRecargo}"/>
    </af:column>
    </af:treeTable>
    And this is the page Def:
    <tree id="GrcConfTarifaRaizView"
    IterBinding="GrcConfTarifaRaizViewIterator">
    <AttrNames>
    <Item Value="IdSimcot"/>
    <Item Value="Descripcion"/>
    <Item Value="Tipo"/>
    <Item Value="HorasNormales"/>
    <Item Value="HorasRecargo"/>
    </AttrNames>
    <nodeDefinition DefName="gsgappl.grc.datamodel.view.confTarifa.GrcConfTarifaRaizView"
    id="GrcConfTarifaRaizViewNode">
    <AttrNames>
    <Item Value="IdSimcot"/>
    <Item Value="Descripcion"/>
    <Item Value="Tipo"/>
    <Item Value="HorasNormales"/>
    <Item Value="HorasRecargo"/>
    </AttrNames>
    <Accessors>
    <Item Value="ClientesView"/>
    </Accessors>
    </nodeDefinition>
    <nodeDefinition DefName="gsgappl.grc.datamodel.view.confTarifa.GrcConfTarifaClientesView"
    id="GrcConfTarifaClientesViewNode">
    <AttrNames>
    <Item Value="IdCliente"/>
    <Item Value="Descripcion"/>
    <Item Value="IdSimcot"/>
    <Item Value="Tipo"/>
    <Item Value="HorasNormales"/>
    <Item Value="HorasRecargo"/>
    </AttrNames>
    <Accessors>
    <Item Value="RegionalesView"/>
    </Accessors>
    </nodeDefinition>
    <nodeDefinition DefName="gsgappl.grc.datamodel.view.confTarifa.GrcConfTarifaRegionalesView"
    id="GrcConfTarifaRegionalesViewNode">
    <AttrNames>
    <Item Value="CodRegional"/>
    <Item Value="Descripcion"/>
    <Item Value="IdSimcot"/>
    <Item Value="IdCliente"/>
    <Item Value="Tipo"/>
    <Item Value="HorasNormales"/>
    <Item Value="HorasRecargo"/>
    </AttrNames>
    <Accessors>
    <Item Value="CiudadesView"/>
    </Accessors>
    </nodeDefinition>
    <nodeDefinition DefName="gsgappl.grc.datamodel.view.confTarifa.GrcConfTarifaCiudadesView"
    id="GrcConfTarifaCiudadesViewNode">
    <AttrNames>
    <Item Value="CodCiudad"/>
    <Item Value="Descripcion"/>
    <Item Value="CodRegional"/>
    <Item Value="IdSimcot"/>
    <Item Value="IdCliente"/>
    <Item Value="Tipo"/>
    <Item Value="HorasNormales"/>
    <Item Value="HorasRecargo"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    Note the Node Definition for gsgappl.grc.datamodel.view.confTarifa.GrcConfTarifaClientesView, it correspond to the View Object showed at the beginning of the post.
    Can any one help me please?
    bye

    Thanks for the links.
    I checked them up, but first, I noticed they apply to adf 11g, and second none of them use inputText in columns. I really couldn't find a any idea to solve my issue.
    Any other suggestions?
    My problem is that when I expand/collapse a node, the values in the inputTexts are lost. I don't know if I need something else on my page Definition...
    thank you.

  • Varying Attributes in Essbase 11.1.1.x

    Hey everyone,
    Has anyone here used varying attributes with much success in Essbase System 11? I love the concept but in practice it's been quite maddening. For example, say I want to tag Product A with a Sales Manager and Period & Year are my dimensions it will change across. If I tag Product A with Sales Manager 1 for Jan/2009 - Oct 2009, everything is fine. Then I come along and I vary the attribute for Product A, switching to Sales Manager 2 for Nov 2009 - March 2010, everything remains fine. Then I switch it again to Sales Manager 3 for April 2010 - Nov 2010. With this third action it totally scrambles up the dates, usually moving Sales Manager 1 to something crazy like Jan 2011 (I've never even mentioned 2011 in any attribute definition) - some random month in 2009! What's going on?
    And then there's the other anomoly i've come across. Say I tag Product B with Sales Manager 1 starting in June 2009. When I go to pick my end date it grays out any month choices before June (i.e. Jan-May), as if, for example, it's inconceivable to Essbase that I might want that Sales Manager assigned through April 2010. This makes no sense to me! So I tried it where I'd break the time assocation into June 2009 - December 2009, and then add Jan - April 2010 with the same Sales Manager. This works (I think) but then when I go to add the second Sales Manager starting in May 2010 my dates get all scrambled again.
    Does anyone know how to make this work in practice? The theory is awesome and would be highly useful, but it's downright maddening trying to get it to actually work.
    Finally, I am not having any luck in trying to build out these associations via dim build load rule. Is it possible to build varying attributes over time in a load rule? I don't see how it is but have a hard time (well, not that hard) believing that Hyperion would develop this and not have a way to automate the build. Any advice?
    Many thanks in advance!!

    Hi,
    varying attributes can only be edited directly in the outline with AAS. If you want to perform a mass upload of varying attributes, you should use Essbase Studio as it is the only tool with which you can perform dimension builds with VA.
    Ilker

  • Using unstructured TS data and labview variants

    I want to create a generic step to pass data from TS to LabVIEW but I'm pulling my hair. Why can't I use a Variant input on a VI to accept unstructured data fro TS? Is this possible? How can I flatten TS data into a LabVIEW Variant? In LV when you need to pass an unknown data type between a VI boundry, you use a variant. In TS you can do the same with an unstructured container. Is there anyway to pass unknown data between the two platforms? Actually correction: A variant output from a VI actually will show up on the TS side if you use an unstructured container but doesn't work the other way around.
    I think the TS developers should get together with the LV developers over at NI and actually sit down over a few beers and talk. No I mean really talk. WTF?
    Michael Aivaliotis
    VI Shots LLC

    It seems that there is a limitation that I've come across. When the variant data is passed through the results data of a step it becomes invalid. I've modified the original code you submitted and was able to reproduce my problem. When you run the attached code, you will see a type mismatch error. Also, if you break it and look at the results variant data it does not contain the structure.
    Using LV8.5 and TS 4.0.1
    Message Edited by Michael Aivaliotis on 02-11-2008 02:12 AM
    Michael Aivaliotis
    VI Shots LLC
    Attachments:
    LV Variant2.zip ‏27 KB
    2.png ‏21 KB

  • How do I use the Verizon Service & Protection app to locate my phone if it gets lost?

    The Verizon Support & Protection app (VZ Protect) is installed on my phone and is supposed to help me if my phone is lost or stolen by allowing me to find it on a map, lock it, erase my data from it, etc.  But I found it nearly impossible to figure out what I should do in the event that actually did get lost or stolen.
    I logged into my My Verizon account from my computer (which is probably what I would do if I lost my phone), but unfortunately there isn't anything on the site to help a person who has actually lost their phone or had it stolen to quickly and easily locate it.  Most of the links I found were only promoting Verizon's services and the app, but nothing on how to use it.
    I tried searching for things I might type if I had actually lost my phone (like, "missing phone", "stolen phone", "find lost phone").  I had to go into the "How to Use Guide: Verizon Support & Protection" page, which I was only able to find on the  Verizon Support & Protection FAQs  page), in order to find a link that told me I had to go to the Verizon Support & Protection App website  to use this service.
    There really should be something more obvious right on the My Verizon site.

    Purchase a replacement remote.
    The remote is required for configuring the ATV and setting up the remote app on iDevices.

  • Hello Apple? How do i fixed my problem with my ipad apps every time i open that apps it takes 10min. to play the games ant its getting LOST MODE and the ipad system is crashing

    How do i fixed my problem with my ipad apps every time i open that apps it takes 10min. to play the games ant its getting LOST MODE and the ipad system is crashing

    We are fellow users here on these user-to-user forums, you're not talking to iTunes Support nor Apple.
    Have you tried closing all apps via the iPad's multitasking bar and then doing a soft-reset and seeing that helps ? To close all apps :
    iOS 7: double-click the home button to open the taskbar, and then swipe or drag each app's screen from there up and off the top of the screen to close it, and click the home button to close the taskbar.
    iOS 6 and below : from the home screen (i.e. not with any app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of each app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    Soft-reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Hyperlinks from other placed indd documents or pdfs getting lost after export to PDF

    after upgrade vom CS 5.5 to CS 6: hyperlinks from other placed indd documents or pdfs getting lost after export to PDF
    I tried all options for the as well known and working export options

    after upgrade vom CS 5.5 to CS 6: hyperlinks from other placed indd documents or pdfs getting lost after export to PDF
    I tried all options for the as well known and working export options

  • I have a problem with my iphone 4. My 3G always stays activated but I lose my network signal. The bars all get lost and I'm not able to receive / send sms, mms or phone calls. Could you guys please help me fix this problem? Ios 5.1.1

    I have a problem with my iphone 4. My 3G always stays activated but I lose my network signal. The bars all get lost and I'm not able to receive / send sms, mms or phone calls. Could you guys please help me fix this problem? Ios 5.1.1

    I haven't gotten a new sim card because the problem has been presenting itself in various cards not only mine. So far, all I've done is reset my network settings.
    Last night, I turned off the 3G tab and it had all the signal bars. Today, I did the network reset and it's working apparently. But like I said before, previously the bars just disappear and the iphone only has the 3G activated.

  • I am in Saudi and trying to download navigon middle east. Every time I try to buy the app it will show up, says waiting and disappears. How can I get around it and not get lost on these crazy roads?

    I am in Saudi and trying to download navigon middle east. Every time I try to buy the app it will show up, says waiting and disappears. How can I get around it and not get lost on these crazy roads?

    I recently purchased a second hand new macbook air, although it was second hand to me the previous owner had never actually turned it on.
    Something doesn't make sense here, though I'm not saying the previous owner is lying....
    Time to send your serial # to iTS and let them see what's happening here.
    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html

  • 'D' Value in UPDMOD field getting lost in Transformation,Delete not working

    Hello all,
    We are using this datasource 0PU_IS_PS_32 for Funds management, the datasource has UPDMOD field in it, which is basically the 0RECORDMODE. So when they delete the document on R/3 side we can pick up the delete.
    Now this is what is happening in the delta infopackage, I get the delat records in the delta infopackage and I see a "D" in the UPDMOD field, but that value of D is getting lost when i load the data from PSA to the DSO through transofrmation by using DTP.
    After the request is loaded in DSO, before activating the request I check in New Data table and the field does not have a value of "D" anymore so when I activate the request the system does not know that those records are "D" delete records and so the records are not getting deleted from DSO.
    Has anyone faced this before, how can I fix it. The transformation is just one to one mapping no routines or formulas of any kind.
    Thanks for your help in advance.

    Hi,
    It is mandatory that u map upmode to 0recordmode. In the rule group there will be 2 groups. One will be ur normal mapping and other should be used to map 0recordmode
    Regards,
    Raghavendra.

  • Session getting lost

    Now issue related to session
    I am using tomcat 3.1
    In my login page my session value get lost frequently.I am using session.setAttribute("logon.isDone", name); in servlets and In every jsp's I am checking as <% if(session.getAttribute("logon.isDone")==null){
    response.sendRedirect("/iscap/report/relogin.jsp");}%>
    The value get lost in a very short time so user is sent to relogin .
    Now what I do here?
    payal sharma

    Hi
    try to set the maximum interval between requests
    eg:
    session.setMaxInactiveInterval(6000);
    vis

Maybe you are looking for