Get type

Hi all !
I need some help...
My problem is the following: I need to write a function in order to know the type (data representation, e.g: double, I64, I32, boolean....) of all controls/ Indicators present on my Front Panel. I didn't found any function that return me the such an information. After many search i decided to use the property ClassID, from that i deduce the type e.g: If i get a ClassId = 8 , it'as a boolean....
I don't think this solution is really clean and i wonder if someone has a better idea ....
Thank's in advance.... !

Hello,
If you're using LabVIEW 7.0 or later, you can wire any control reference into this VI:
vi.lib\Utility\GetType.llb\Get Type of Control.vi
And it will return an enum describing the datatype.  This should suit your purposes.  If you're using an older version of LabVIEW, you may be able to find some other type descriptor parsing VIs out there somewhere, perhaps on these forums somewhere.
Good luck,
-D
Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman

Similar Messages

  • An error occured while creating the new dataset Could not get type informat

    Uses: Windows XP Pro SP3+; OracleXE; Oracle 8i Client; ODP.NET; Visual Studio 2005 PRO;
    I had OracleXE and was using OracleXE's Oracle.DataAccess Version 10.2.0.100 which was located in C:\oraclexe\app\oracle\product\10.2.0\server\BIN. Then to use Oracle Developer Tools for VS, I installed ODAC where the Oracle.DataAccess's version was 2.111.6.20.
    Everything connected via SqlPlus and even was able to Oracle XE Home page and was able to loginto it. Further, was even able to create connection with Oracle Dot Net Provider. The problem was created when I tried to create a datasource from DataSource Menu in VS.2005. It was giving an error saying "An error occured while creating the new dataset Could not get type information for dataset". However I wittnessed that Dataset is been created in Solutions Explorer but not in Data Source Tab. Further researching I was able to create Datasets with Microsofts Oracle Data provider with out any issue.
    My Path variable list the following:
    C:\app\Administrator\product\11.1.0\client_1;
    C:\app\Administrator\product\11.1.0\client_1\bin;
    C:\oraclexe\app\oracle\product\10.2.0\server\bin;
    C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\;
    C:\Program Files\Borland\BDS\4.0\Bin;
    C:\PROGRA~1\Borland\Delphi5\Projects\Bpl;
    C:\PROGRA~1\Borland\vbroker\jre\Bin;
    C:\PROGRA~1\Borland\vbroker\Bin;
    C:\PROGRA~1\Borland\Delphi5\Bin;C:\orant\bin;
    C:\WINDOWS\system32;C:\WINDOWS;
    C:\WINDOWS\System32\Wbem;
    c:\Program Files\Microsoft SQL Server\90\Tools\binn\;
    C:\Program Files\Microsoft SQL Server\80\Tools\BINN;
    C:\Program Files\java\jdk1.6.0_07\bin.
    Further I got 2 Oracle Homes one which C:\orant and other is located in C:\app\Administrator\product\11.1.0\client_1.
    Also noted that while deploying at client site I started gett'n this error:
    "Unable to install or run the application. The application requires that assembly Oracle.DataAcces version be installed in Global Assembly Cache First."
    Is it due to change in the production machine? Any help in this regard is greatly appreciated.

    Hi Pushpa,
    Which enhancement package are you on currently? This is observed in cases where originals in DIR's are invisible and sometimes error message 26296 occurs in transaction CV01n. Hence,please check your entries in the table SDOKPROP to avoid such a problem in your system.
    Further,suggest you explore if the below resolutions can be adopted in your case.
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=10321987
    http://wiki.sdn.sap.com/wiki/display/PLM/OriginalsinvisibleafterEHP3or+EHP4
    Regards,
    Pradeepkumar haragoldavar

  • Getting Type Mismatch Error while passing Array of Interfaces from C#(VSTO) to VBA through IDispatch interface

    Hi,
    I am facing issues like Type Mismatch while passing Array of interfaces from .NET  to VBA and vice versa using VSTO technology.
    My requirement is that ComInterfaceType needs to be InterfaceIsIDispatch.
    My Interface definition is somewhat like this
        [ComVisible(true)]
        [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
        [Guid("AAF48FBC-52B6-4179-A8D2-944D7FBF264E")]
        public interface IInterface1
            [DispId(0)]
            IInterface2[] GetObj();
            [DispId(1)]
            void SetObj(ref IInterface2[] obj);
        [ComVisible(true)]
        [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
        [Guid("CDC06E1D-FE8C-477E-97F1-604B73EF868F")]
        public interface IInterface2
    IF i am passing array of above interface (created in C#.Net) to VBA using GetObj API,i am getting type mismatch error in VBA while assigning the value to variable in VBA.Even assigning to variant type variable gives TypeMismatch.
    Also while passing Array of interfaces from VBA using SetObj API,excel crashes and sometimes it says method doesn't exists.
    Kindly provide some assistance regarding the same.
    Thanks

    Hi,
    I am facing issues like Type Mismatch while passing Array of interfaces from .NET  to VBA and vice versa using VSTO technology.
    My requirement is that ComInterfaceType needs to be InterfaceIsIDispatch.
    My Interface definition is somewhat like this
        [ComVisible(true)]
        [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
        [Guid("AAF48FBC-52B6-4179-A8D2-944D7FBF264E")]
        public interface IInterface1
            [DispId(0)]
            IInterface2[] GetObj();
            [DispId(1)]
            void SetObj(ref IInterface2[] obj);
        [ComVisible(true)]
        [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
        [Guid("CDC06E1D-FE8C-477E-97F1-604B73EF868F")]
        public interface IInterface2
    IF i am passing array of above interface (created in C#.Net) to VBA using GetObj API,i am getting type mismatch error in VBA while assigning the value to variable in VBA.Even assigning to variant type variable gives TypeMismatch.
    Also while passing Array of interfaces from VBA using SetObj API,excel crashes and sometimes it says method doesn't exists.
    Kindly provide some assistance regarding the same.
    Thanks

  • How to get type any table in function module... or something

    Moderator message: Please use a more informative subject in future, and NOT IN ALL CAPITALS.
    Hi experts,
    how to get type any table option.
    in source code.
    *"  CHANGING
    *"     REFERENCE(S_EKORG) TYPE  ANY TABLE OPTIONAL
    Thank you.
    Edited by: Matt on Feb 17, 2009 2:27 PM - subject edited

    In Function module...... Under changing tab, give the parameter name and type enter associated type any.... You would get that same in the source code and also choose Optional check box.....
    You will see exact code in the FM source code

  • Bug on "get type and creator.vi" OSX intel

    There is a bug on LV 8.2 "get type and creator" vi
    i tried it on a G5 : perfect
    on an intel machine the file type is reversed : JPEG becomes GEPJ, AIFF becomes FFIA
    a bit annoying ...

    Hello,
    Please excuse me for not fully understanding the distinction you are drawing here.  I think you are saying that INDEPENDENTLY FILES HAVE:
    a). a type
    b). an extension
    These are somehow correlated in Windows.  When I remove the .jpg extension from a file name indeed I see the "blank icon" and right clicking the icon to expose the properties shows that it has file type "File" where it used to be "JPEG image."   When I use the Get Type and Creator.vi I still see ????.
    I would like to understand exactly the distinction you are drawing, and exactly how to see the problem you are reporting.  Please be so kind as to dictate a very specific list of instructions with which this can be reproduced.  If it requires using commands in the command line, please specify exact syntax so that isn't a hurdle in and of itself.
    I appreciate your patience and very much look forward to your next post!
    Best Regards,
    JLS
    PS - Another idea just hit me - is it possible that you have the folder options item "hide known file extensions" checked?  I think this is default in XP, and perhaps you are simply not seeing the extension of your jpg files since windows is hiding them.  If that's the case, but you DO see extension, your file names may actually be something like myFile.jpg.jpg, where the trailing .jpg are just being hidden from you.  It sounds like you're familiar with how windows distinguishes file types and extensions, but I thought I would at least throw that out there, since it is a bit subtle.
    Message Edited by JLS on 10-25-2006 01:50 PM
    Best,
    JLS
    Sixclear

  • How to force Get Type Array(..) return a direct pointer to the elements

    So, my question is how the native method can ask the VM to pin down the contents of an array.
    Performing storage allocation and copying is too long for
    Java objects containing many primitive data types...
    Thank you !

    I must use GetPrimitiveArrayCritical(..) instead of
    Get<type>array(..).
    Thank you for me!

  • WOOT! I found a way to show you how to get type lag!

    I never gave you my 60k line file because it is a whole lot of source code I didn't want to share.  No offense, I just want to pay off student loans.
    Now I realized you can get type lag just by making jibberish code too.  So here is 150klines of copy/pasted data, and it shows you how to get type lag.
    Download:
    http://www.goodnewsjim.com/d/ZZX_Condensed_Function.as
    Then start randomly editing the file.  My suggestion is to maybe make i++ to i+
    On my end, I get 1.5 sec type lag.  Let me know if get it too.

    I'm so excited to have something for you guys at Adobe.
    It has been over half a year since I first reported the typelag bug, and one of your guys requested code.
    Let me know if you can replicate the problem in this post because it will get me excited that a fix might happen in a patch.

  • How can i get type of iview?

    Hi,
    How can i get type of an iview in properties?
    Thanks

    Hi,
    If i have understood your question correctly, you want to identify the type of Iview. If that is the case, then check for the Code Link Property in the Iview properties. It will give you what type of an iview it is.
    Regards
    Hussain.

  • Get Type ArrayElement  fails if array length is 0

    All:
    Get<Type>ArrayElement fails if the array length is 0 in 1.4. It seems to work fine in 1.5. I was "googling" and I found this link -- http://e-docs.bea.com/wljrockit/v315/relnotes/relnotes.htm. It mentions that this problem -- The JNI methods GetStringChars and Get<>ArrayElements threw OutOfMemoryError if called with a String or array of zero length -- was fixed in version 3.1.4. What is version 3.1.4 and how does this relate to JDK verions that I get out of java -version.
    I will appreciate any pointers.
    M.P. Ardhanareeswaran
    Oracle USA

    Drag and drop within a datagrid is rather an unusual thing to do.
    I would suggest your problem lies in choosing to do something which will cause complications.
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • Get type of variable dynamically

    Hi,
    i want to get the type of a variable. For example, the following code :
    data: my_var type zmystruct.
    In ABAP, i want to get type 'zmystruct' and after to create dynamically a new variable of this type.
    Thanks for help.

    HI,
    You use the following syntax to define reference types:
    <b>TYPES dtype {TYPE REF TO type}|{LIKE REF TO dobj}.</b>
    The syntax for a direct declaration of a reference variable is as follows:
    <b>
    DATA ref {TYPE REF TO type}|{LIKE REF TO dobj}.</b>
    The addition REF TO defines a data type dtype for a reference variable and declares the reference variable ref. The specification after REF TO specifies the static type of the reference variable. The static type constricts the object set to which a reference variable can point. The dynamic type of a reference variable is the data type and the class of the object respectively, to which it currently points. The static type is always more universal or equal to the dynamic type
    You can use the TYPE addition to define data types for data and object reference variables. The LIKE addition exclusively defines data types for data reference variables.
    The syntax and meaning of the additions TYPE and LIKE are completely equal for both statements with the exception that TYPES creates an independent reference type, whereas DATA creates a bound reference type.
    Regards
    Sudheer

  • Can't get "Type Mask Tool" to work

    I'm a newbie to the program and have been able to understand how to use all the tools so far EXCEPT the Type Mask Tool. The Product Help in the Adobe Help Center is very brief and vague. I searched all the online avenues and didn't see my problem addressed.
    With my photo as the background layer, I created a new layer and did a New Fill Layer / Gradient. I then used the Type Mask Tool to create some text I wanted to cut out of the gradient layer to paste onto a new layer. I can type the outlined text on the gradient layer but that's it. I can't get it to separate the text from the rest of the layer. If I switch to the photo (background) layer, the outline text is there too and it will cut out the text from the photo/background. But I don't want it affecting the photo/ background layer.
    Does the type mask tool only work on the background layer? I tried gradient, solid color, and pattern filled layers and result was the same: I could type the type mask text but it had no effect on those layers, only on the background layer. The Product Help (as vague as it is) doesn't say it only works on the background layer. I'm obviously using the tool wrong, but can't figure out how to use correctly following the limited Product Help explanation for the tool. Can someone give a more thorough explanation of what the tool can and can not do and how to use it? Thanks!

    Scott,
    You can use the Type Mask on an adjustment/fill layer's layer mask... you just need to fill the selection or the area outside the selection with the appropriate gray-shade to give the degree of transparency/opacity you want.
    For a simple example, if you have a background layer, and a gradient fill layer over it, and have selected the gradient fill's layer mask - when you use the type mask, once you have the marching-ants marquee, fill the selection with black to allow the background to show through the gradient in the shape of the text mask. Or, invert the selection and then fill with black to hide all of the gradient fill except the text shape.
    While this may seem more complicated at first, a bit of practice will demonstrate that the added flexibility is well worth the time it takes to understand the concept.
    HTH,
    Byron

  • Get type of Apple device from external accessory

    Currently,  I am developing external accessory for iPhone/iPad/iPod Touch. I am wondering if I can get the type of device currently connected (is it iPhone, iPad or iPod touch). What kind of request data I have to send to the device from the accessory to get its information? Thanks for any help .

    What type connection? BlueTooth, Wi-Fi, connector?

  • Getting type specs from PDF

    Hi!
    I'm matching a PDF fro a new booklet (someone else did the last one). Is there any way to get the type specs from the PDF?

    Leading is not a property of a PDF. Yes, it is there in effect, but
    each character on the page, in a PDF, just has an X,Y co-ordinate.
    What you see as leading is just the difference between them.
    You can get font name and size from the text touch-up tool via
    Properties. That is, Properties selected from the context menu;
    Ctrl+click on a Mac.
    Aandi Inston

  • I can't work out how to get type on a path in two directions.

    Hello All
    I am wanting to put type around a circle in two directions like this.
    However to get this far I've had to create two separate paths as shown. is there a way to put it on a single path?  The reason obviously being so I can resize and get it looking right in one operation...

    Stix Hart wrote:
    You still have to adjust the type itself separately but grouping sure makes it a lot easier for sizing.  I didn't think of it because I was struggling to put them on a single path, the usual trees & wood situation!
    No, you don't. Re-read my post. You can use the sacle tool or Proportionally scale the group with the selection tool by holding Ctrl/Cmd + shift whle you drag a sizing handle.

  • Get Type of Step by activex

    Hi guys,
    I want to get the Type of the Step by activex. I have the name but in case of a Statement Step the name can be changed.
    If I get the Field Type that we can found on the tab Properties, General I will be able to get information I want following the Step Type.
    Thanks in advance.

    Oh pfhenry21.  I am hurt that you wouldn't trust my solution... however, I completely understand.  Alas, I'm not always right.  But in this case I am. 
    Did you give it a go?
    Most objects in TestStand inherit from the PropertyObject class.  The PropertyObject class has a property called Name.  In my statement I return the StepType object by using Step.StepType.  Then I use the Name property to get the name of that object.  NOTthe name of the Step.  If I used Step.Name then you would be correct in assuming that the name will change and can be anything.
    And ultimately you will most likely be using something like: RunState.Sequence.Main[Some Index or Step Name].StepType.Name.  Or if you are in an engine callback you would use something like: Parameters.Step.StepType.Name.  Or if you are iterating through the sequence in an external code module it would depend on how you are getting the steps.
    Hope this helps you understand it a little better.
    Regards,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

Maybe you are looking for

  • Safari + 10.4.6 = Problem (HELP)

    I updated to 10.4.6 through my update software. It dowloaded the PPC update. Then every page that I upload in Safari will not have pictures, banners etc. For example I go to myspace.com and backgrounds and pictures will not load up. Here is a list of

  • How to save an image in different file formats

    Hello I want to have a drop down menu when the file dialog window opens so that I can select in which format I want to save the file. For example have it in JPG, BMP, or PNG. The way that is working right now is saving it in the format that I write d

  • Downloaded IOS update and now my phone is dead and won't come on.

    Downloaded IOS update and now my phone is dead and won't come on. Any suggestions?

  • Wireless keyboard for FCP

    Hello, I have just upgraded to a G5 Dual 1.8. I need to buy wireless keyboard mouse. FCP is my main Application Is there any recommendation regarding a keyboard for this sort of usage? Any links to reviews of such? Thanks!

  • Wireless tethered live photo booth slideshow with Nik filters

    This might get a little crazy, but wanted to get some input from you guys. I am a wedding photographer and one of the options couples can order is a photo booth. I am looking to take it to the next level. Here is my gear and possible software Hardwar