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

Similar Messages

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

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

  • Problem with getting LDAP attributes on ISE when EAPChaining is enabled

    Hi All,
    has anybody and idea how to set LDAP attributes retrieval with EAPChaining enabled?
    My scenarios is:
    - user with AnyConnect (EAP-FAST) connects to WLAN and sends it's credentials
    - ISE authenticates username and password against Active Directory
    - ISE should check if the same userid contains in LDAP Directory (not AD, different store) special attribute which controls access to our WLAN
    - If the attribute is found, then authorization profile is matched.
    This works when I disable EAP-Chaining Policy -> Policy Elements -> Results -> Authentication -> Allowed Protocols ...
    In logs I've found that the user was not found in LDAP, but the user exists.
    Maybe the workaround can be if just user from EAPChaining is used and not also the hostname, then it could match. But I cannot find any similar parameter which returns only user.
    Does anybody have an idea how to solve this?
    Thanks!
    K.

    Hi,
    This seems like a corner issue, because eap-fast with ldap is not supported. LDAP as the protocol doest support hash based authentication hence the reason ISE is failing to hit the ldap database.
    Referencing acs material since ise docs are not complete:
    http://www.cisco.com/en/US/docs/net_mgmt/cisco_secure_access_control_system/5.2/user/guide/eap_pap_phase.html
    Sent from Cisco Technical Support Android App

  • Incorrect terminal name for "get variant attributes" (bug?)

    According to the help, the output named "values" should change its name to "value" once we wire a name.
    This does not seem to be the case (See tip strip in image below) as tested in 2013 and 2014..
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    VariantTipStrip.png ‏2 KB
    VariantValueValues.png ‏30 KB

    In LabVIEW 2013 it changes to value if only the name input is wired. Once you wire the default value, it switches back to values. 50% is true :-)

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

  • Import varying attribute dimension (with a load rule)

    How do I maintain varying attribute dimensions in a model with a large base dimension? It does not make sense to manually maintain all those members in the outline.
    Is it possible to import varying attribute dimensions (with a load rule)?

    That is true for regular attribute dimensions. Nowhere, I have found instructions how to do this for varying attribute dimensions (aka slowly changing dimensions) that change over time.

  • Cwgraph3d variants in labview?

    Hi there, first time poster - though I've been reading these forums for a long time.  They're quite helpful.  Anyways, on to my problem...
    I'm using a 3d graph (cwgraph3d) in a simple labview vi and am trying to extract mouse position coordinates.   I can get the mouse events to fire correctly, but I can't figure out how to use the data that is provided in the event.  The event data is provided in a variant format, but I can't figure out how to convert the variants to anything I can use in LV.  I've tried using the "variant to data" function, but I get the error "LabVIEW:  The data type of the variant is not compatible with the data type wired to the type input."  no matter what data type I use.  Also, flattening the variant to a string results in an empty string.  Anyone have any ideas?
    Thank you,
    cwild

    Hi cwild,
    Welcome into the sunlight! You wrote "Hi there, first time poster - though I've been reading these forums for a long time."
    Then you have heard us ask for an example to help us help you.
    Post a quick demo of what you have so far and we may be amble to give you the "push" you need to get over this hump.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Variable in ''Name of Variable(Input Only Using F4).' for variant attribute

    Hi All,
    I Have a small problem with saving variant.
    I am trying to save the Variant.In the varaint Attributes we have a field 'Name of Variable(Input Only Using F4).
    I  have created the PID 'XUS' in SU3.But i am not able to to view the variable in ''Name of Variable(Input Only Using F4).'.
    Anybody please let me know how to make it.
    Thanks,

    Please follow the below steps to restrict the user to access 2 company codes,
    1)Mark the IO(Company code) Authorization relavent and activate it.In the IO Business Explorer tab check the Authorization relavent check box.
    2)Go to T-code RSECADMIN -Under Maintainance -Enter the name of Authorization Object an click on create Authorization.Insert the IO and also SAP recomended Objects 1.0TCAACTVT, 2.0TCAIPROV and 3.0TCAVALID.
    Maintain the values for these objects.Select the company code and click on details.
    3)T-code RSU01-Enter the name of the user to be assigned with the authorization object and click the change button.The select the relevant authorization object and save.
    4)Create Authorisation Variable in Query Designer Create an Authorization Variable - Variable with Processing by Authorisation in Query Designer as Below for Sales Organisation
    Note : Also include all Authorisation Relevant Objects which are used in that infoprovider in addition to the above additional 3 objects otherwise you may get "No Authorisation" error when you execute the query.
    Note : 0BI_ALL is the authorization object to access all the info objects which are   authorization relevant.
    Reagrds,
    Ramitha

  • 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

  • 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

  • Not able to get the attributes from HttpSession

    hi all,
    i'm using session.setAttribute() in a jsp to put an attribute in the session and when i try to get that attribute in another jsp it's not giving the value. But the getAttribute() mehods is giving the value in the same jsp page where i used the setAttribute() method.
    pls help,
    regards chandu

    If you are using IE go to tool and then internet options and look under privacy for you cookie status(this will vary version).
    To use URL rewriting all you have to do is one of two things:
    www.url.com?parm=value&param2=value
    or if the value is a result of a java expression or is a java variable you can do
    www.url.com?parm=<%=variable%>&param2=<%=(variable +1)%>
    You get the values from url rewriting by using request.getParameter or getParameterValues(used when multiple values are getting passed).
    When data is retrieved using getParameter it always comes back as a string and you should trim them as well.
    HTH,
    J.Clancey

  • How to Get Navigational attributes of dso in Report ...

    Hi i have a dso with many fields ,
    In the report i need to get some navgational attributes which are in dso..
    How to Get Navigational attributes of dso in Report ..??
    Thanks All..

    hai naiduz,
    in the dso u find folder with navigational attributes, there select the Navigation check box the fields which u need in the report.
    and further if ur dso through multiprovider and also identify them at multi provider level.
    then u will be able to see the fields at query designer level, then u can use the nav. fields u need in the report.
    regards,
    Vj

  • WCF :Consider marking the type with the CollectionDataContractAttribute attribute or the SerializableAttribute attribute or adding a setter to the property

    Hi All,
    Currently I am working in a WCF project here when I try to send data from WCF Project 1 to WCF project 2 I am getting the below error.
    The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:subscriber. The InnerException message was 'The use of type 'Integra.Business.ICC.ObjectChangeTracker'
    as a get-only collection is not supported with NetDataContractSerializer.  Consider marking the type with the CollectionDataContractAttribute attribute or the SerializableAttribute attribute or adding a setter to the property.'.  Please see InnerException
    for more details.
    I don't understand what issue this is since I am new to WCF. Please help me on this thanks in advance.

    You've posted to a forum for Microsoft Project - a project management program.  Please re-post your question to the WCF forum:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wcf
    Sorry - I cannot seem to move your post for you.
    Julie

  • Issues with windows 7 after Labview 2012 installation

    Hi
    I am having some issues after installing Labview 2012 on machines running Windows 7. Firstly, after installing a program on a user's machine, the machine sometimes takes 20 minutes to boot up before the user can log on. The 'Please Wait' message appears during this time. This is also the case on the development machine.
    Secondly, on the development machine, I am having an issue when trying to run compiled programs created in Labview. When installing, everything works fine but when I go to open the program, it appears on the task bar for a brief period before closing. It does not appear in the task manager either. I have tried this on 2 other machines with windows 7 and Labview installed and still get the same issue.
    Any help on these matters would be much appreciated. Thank you

    Hi
    Firstly, looking at the issue with the slow Windows 7 boot up time, as Norbert_B suggested the Windows Event Log is a good starting point to find the root of the problem. The following link describes how to launch “Event Viewer” and some common problems:
    http://itexpertvoice.com/home/what%E2%80%99s-taking-so-long-how-to-fight-slow-startup-times-in-windo...
    Aside from that, if your computer is part of a domain, the problem may be connected with certain Windows Services that start automatically on boot up. I recommend trying the following steps:
    Open up “Control Panel” go to “System and Security” then “Administrative Tools” from here launch “Services”.
    Sort the list by name and scroll down to “Network Store Interface Service” right click and select “Properties”. Under the startup type dropdown select “Automatic (Delayed Start)”.
    Next scroll down to the “WebClient” service again under “Properties” this time select “Disabled” under the startup type.
    As for the problem with running LabVIEW executables, I have a few questions:
    Do you get any error codes when it closes automatically?
     Does this occur for multiple executables or just one in particular?
     Does the code run without a problem within LabVIEW?
     Have you tried to update LabVIEW?
    What hardware are you running?
    Without this information I can only think it may be caused by the Windows Data Execution Prevention (DEP) security feature. So you can try the following steps:
    Right click on “Computer” and select “Properties”.
    Click on “Advanced System Settings” and select the “Advanced tab, then under the performance section click “Settings”.
    Click the “Data Execution Prevention” tab.
    Make sure it is activated for essential Windows programs and services only, or you have an exception for your EXE.
    You may also find the following link helpful on debugging applications:
    http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/debug_apps_dlls/
    Let me know if these solve the problems.
    Andrew.N
    Applications Engineer
    National Instruments

Maybe you are looking for

  • Arch fails to print over CUPS

    Hello community, I'm using a Raspi running Raspbian and CUPS 1.5.3 and a Brother HL-2030 printer hanging on the Raspi. Several clients are connected through the local network and should be able to use the printer. The machines are running Xubuntu, Ma

  • Flash Builder Burrito problem (s:MobileApplication)

    I got trial and entered my Flash Builder Serial, and everything went well, but now i see that when creating mobile projects, i get error on s:MobileApplication, instead i have to use component:MobileApplication and this on bot Views as well in defaul

  • Home Role in Development server not appearing

    Hi Experts,   I found a role called "Home" in my production server and I would like to have the same role in development server as well. I assigned same roles to my user id which availabe in the production server to my user id in development server. 

  • Purchase Requisition / Order: Account Assignment Category for material type

    Hi, When creating a PR or PO for one specific material I would like the system to propose a specific account assignment Category for this material. It shouldn't allow the user to change this account assignment category. Is it possible? How should I p

  • Viewing cost of installed apps

    When showing apps on the iPad to friends, they often ask whether an app was free or how much did it cost. Bringing up the app store, the price is no longer visible, as its replaced by 'INSTALLED'. Now I take a screen shot on the iPad before tapping F