specific class controlID

Hello again.

Here's what I'm trying to do now.

I figured out how to get the id of my referenced control class but I wish I could change my value of variant type for the type specified by the class identifier so I don't get brand variant ups in my XML file. And of course, I would be able to do the reverse features of reading in the XML and in him passing to the controls.

I need to share this XML with other applications, so it would be nice to keep the names of the data but lose the variation labels.

Thanks for the support.

Bill

Hi Bill,

The help of LabVIEW (class ID property) provides a list of this type of data the ClassID matches. You can use this with a case structure to identify the correct type of data to send to your Flatten for XML VI. When one reads the XML file, you must provide the data type for you to withdraw, and it would be better to keep track of this or to parse the XML file. An example of this part in the Finder of the example given.

Kind regards

Tags: NI Software

Similar Questions

  • Close the reference (for a more specific class)

    I'm feeding a control reference to the node "to a more specific class.  When I finished, I understand that I have to close the order, but what I also close the reference that is the output of the node "to a more specific class?

    This is the same reference... There is no need to close the two.  And if you approve the automatic cleanup of references LabVIEW, you really do not need to close, as the references control must never be matched and will be automatically cleaned when your VI is inactive.

    For more information, here is a blog that just now, I wrote that talks about closing reference.

  • On a more specific class or the variant

    Which of these methods is preferred for the update of GUI? Any show hit with for Variant?

    Out of curiosity and for a fan of Top Gear (real BBC version, not lame History Channel knock-off) colleague here are a few quick comparative data:

    Another case where fear of stress points leads to evil.  Put in explicit conversion of the type variant slows things down a bit more than the specific class that I suspect (but didn't).  However, my strategy to connect life with the point red and right value help considerably, as the implicit conversion is as fast as a bound property node (laziness country off, yes!).  Inhabitants of smoke just PNs, but we knew that and I just wanted to see with my own eyes.

  • "For more specific class" does not not on sbRIO 9636

    The application that I am forcing me to programmatically access arbitrary components of a nested group. Currently, I am doing the browsing the cluster using his property [] node recursively controls. Currently, my accessor VI to accomplish this works very well on a normal PC but does not work on my target in real time, a sbRIO 9636.

    After some research, I determined that the function "To more specific class" does not work on my target in real time. I have attached a code base that shows the heart of the problem. It works fine on a PC but will return an error 53 when running on my target in real time.

    A few questions:

    (1) is 'To more specific class' supported on the sbRIO 9636 or not?
    (2) if it is supported, what am I doing wrong?

    (3) if it is not taken in charge, what are other methods for access by the arbitrary elements of a nested cluster program?
    (4) if it is not supported, why LabVIEW allows me to place the feature even when the sbRIO 9636 is explicitly selected as my goal in my LabVIEW project? It seems prudent to restrict its use, if it is not supported. My day job has been effectively wasted because of this problem.

    For reference, here's a few previous discussions

    http://forums.NI.com/T5/real-time-measurement-and/modifing-cluster-component-properties-on-sbRIO-No-...

    http://forums.NI.com/T5/real-time-measurement-and/quot-Manager-call-not-supported-quot-when-typecast...

    Thank you
    JAnthony

    The other posts are correct, because it is currently not possible to use the function on a real-time target. This is a known issue and is being investigated for correction, but currently there is no work around. It is available on the pallets that this behavior is not intentional and should work.

    You have described your application requires that recursively through a table and access to specific data. Does this mean that the Data Structure might be different when the vi is run and you need to adapt to a changing data type? If this isn't the case, then all you need to do is to get the value of the reference and then ungroup the cluster as needed then store the changed values to the same reference.

    If you're going to have to settle you will encounter difficulties to be determined pragmatically you should do but I have a suggestion. Create a cluster with an enum and a Variant. You can use the enumeration to set the type of the variant in question. He chooses the type to convert the variant according to the code. It is a similar structure, like messages in queue manager and his messages that happening except that you will be passing a reference to this group that has both the message and the payload in one. The reference could be used to get the value and then the code must only be written to accept the Cluster of Enum and variant you can then convert the variant to the appropriate type for later use. For best performance, you also use in Place of the Structure element.

    It's only a means potentially accomplish what you want. If you describe your program and needs more in depth, we are able to offer a more suitable solution for your application that does what you need. I wish you a nice day!

  • to a more specific class: can't find not strictly digital, only digital

    Im trying to read a property of the control based on some controls that are in a cluster.

    I want to convert to a more specific class property reference: digital strict, but I find only 'digital' which leaves me with variant data.

    Any help?

    Right-click the control switch, and then create a reference. This reference to the entry "class of target" of the cast of the wire knot.

  • Properties of the component of modifing Cluster on sbRIO? No node "to more specific class?

    Hello

    I designed a fairly large RT application.  Our structure is to have our main vi RT with several large groups which pass into subvis that modify the components of the pole passed through its reference. (Easy) In addition, we have to change the properties of the cluster component as well. Other examples, to change the properties of a cluster of referral component, we do:

    (1) obtain controls [] property of the cluster

    (2) of the index in the [] for the component Control

    (3) class "to more specific" use with the exact type of the component

    (4) fix a property node to access the property of desirec

    It worked well except that we are currently making a sbRIO system. All the 'to more specific class' now are broken with the error message that this node "only is not supported on the current target".

    I spoke to a representative of OR who says that 'To more specific class' is NOT supported on the real-time hardware. If this is the case, how one is changing the properties of component a cluster without using the node "to more specific class?

    A simple example is attached. It shows a simple cluster of two components that must have their properties changed. It works fine on a material in real time (such as a host PC). It breaks on our sbRIO.

    Yet once how one change properties of a component cluster on a system in real-time like sbRIO?

    We use LabView 8.6.1 on a sbRIO 9642.

    -Paul

    I installed LabView 2009 today and here it is--the "to more specific class" node is now permitted on a real-time target. Nothing in the documentation indicates that it but I'm not complaining. You can now change the ownership of a cluster component in a subvi on a real-time target. Thanks to which it is fixed that!

  • Cannot use casting "to more specific class ' function to the parent class of child class

    Hello

    I am using OOP for my request for data acquisition. I have different e/s analog and digital materials. I create a superclass named DAQ.lvclass. This class has four childs: analog in out analog, digital, and Digital Out. I am trying to invoke screws of the child of the parent class's class. For that I am throwing the class parent her child to aid "to a more specific class' function. But I get the below error.

    Error 1448 occurred at the more class specific in DAQ.lvclassMain.vi AQ

    Possible reasons:

    LabVIEW: Bad type cast. LabVIEW does not deal with the run-time value of this class of LabVIEW as an instance of the given class of LabVIEW.

    How can I handle these cases where I have to call child VI of the parent member?

    I have attached two screws 1 snapshot. Main DAQ: it's the class main VI parent who manages all functions. 2. read the analog inputs: this VI trying to set the parent class for its class of the child and child vi reads value of data acquisition task. I get the second error off VI.

    Kindly help.

    Honestly, I have NO idea on what you want to do.

    Inheritance of classes in EACH OOD (object-oriented design) requires to define common ground as the parent class. Children can add things like properties and methods.

    If you set children who have no points in common, you have made a mistake.

    If all children have too many different specific methods, your OOD is absent.

    Example:

    Parent defines the method A.

    1 child adds the B method.

    Child 2 adds method C.

    But method B will not be usable on 2 children while method C will not work with 1 child.

    It is an approach that you want to prevent. In any programming language oriented OBJECT. This adds unnecessary complexity leading to difficult to maintain the code, and it is prone to errors.

    However, if you're going to do, "to more specific class ' is the correct type cast. But your screenshots and error messages, it is obvious that refine you a particular child's casting only. You must extend the code to check the real child, specifically expressed and call the method. That being said, your code increases the complexity you want to add a bunch of case of structures which essentially nihilates all THE BENEFITS of the use of OOP.

    I'm sorry to say that.

    Norbert

  • Type mismatch and VI properties in 'for more specific classes.

    Dear all

    I have a Subvi trying to modify the properties of certain objects on the main pane of the front, in the example I have attached to this message it works well, but when I use the same Subvi in my main application which is a little bigger and has more hierarchical levels (that's why I join this one) it comes across some errors.

    Once running "to a more specific class' in the Sub - VI called ("MultpObj1N"), it gives this error that" LabVIEW: Type mismatch: object cannot be cast to the specified type.»

    I have no idea what could be the reason for this. Do you have any idea what it could be?

    Best regards

    Afshin

    Dear Darren

    Suddenly, I realized that my problem just happens to group objects (no cards) and like you said the type of data were different. Because I wanted to just access the visibility as you suggested, I've changed the strict form for normal and it worked.

    Thank you very much for your advice!

    BR

    Afshin

  • Add target project by program specific class

    Hello

    I am creating a vi that can programmatically create a project and add a device target (PXI-7954R). Currently I have no problem to create a project and add a FPGA target, but this isn't class specific, that is. This isn't the 7954R.

    I found a really horrible way to do it by opening the project file as a text file and picking through and adding what needs to be added (looking at a project already created with the target in it to compare).

    Does anyone know how to add a specific target of the class to a project in the labview environment without having to manually edit the project file?

    Any help would be much appreciated

    Hi James,

    You must add the correct class ID in the terminal project item Type.

    You must create and set the correct tags associated with this element.

    Please see the attachment,

    Kind regards

    Steve

  • Add the project of sample problems-specific classes

    Hallo!

    I'm sorry - I think it's a very stupid question, but after two days of googling and asking a colleague who has experience with C++ (which I did not...) I can't know what I'm doing wrong.

    I use in a clean project, some (reduced) categories of a sample application (the cat of SPP) as a basis for my application. This works as expected.

    But when I try to call a constructor of a custom class, I always get a ' conversion of ' TestClass * "no scalar of type"TestClass"requested" or error "undefined reference".

    (ChatManager.cpp)

    First error:

    void SPPThread::run()
    {   // conversion from 'TestClass*' to non-scalar type 'TestClass' requested
       TestClass test = new TestClass();
    }
    

    Second mistake (after searching on Google, the first error and find this "solution"):

    void SPPThread::run()
    {
       TestClass* test;
       test->process();     // undefined reference to `TestClass::process()'
    }
    

    TestClass.hpp:

    #ifndef TESTCLASS_HPP_
    #define TESTCLASS_HPP_
    
    class TestClass {
    public:
        TestClass();
        virtual ~TestClass();
    
        void process();
    };
    
    #endif /* TESTCLASS_HPP_ */
    

    TestClass.cpp:

    #include "TestClass.hpp"
    
    TestClass::TestClass() {
        // TODO Auto-generated constructor stub
    
    }
    
    TestClass::process()
    {
    
    }
    
    TestClass::~TestClass() {
        // TODO Auto-generated destructor stub
    }
    

    The TestClass.hpp file is included in the ChatManager header.

    I also tried being a Q_OBJECT TestClass but with the same result. My colleague and I suspect strongly that TestClass is found by the compiler/linker, but why?

    Does anyone have an idea?

    Sorry if this is a stupid question - I am new to the development both BlackBerry10 and C++, but you have to start somewhere, not you?

    -Answered my own question (is it just me or the answer always comes, when you post your question on a forum?).

    I created an empty Test Cascades in QNX Projekt and added a class. I don't have the "undefined reference" error, when you create a new instance or call a method of that class.

    I then compared this Test and my project project .pro files and found a single line, what was missing in my project:

    include(config.pri)
    

    I don't know yet, why the sample application (which I copied the .pro file) didn't need this, but of course I need, when I want to add more classes (no QObject)...

    With this, it works:

    void SPPThread::run()
    {
       TestClass* test = new TestClass();
       test->process();
    }
    

    Not sure by now why I have to use a pointer (as I said - I'm a beginner C++), but maybe I'll find out...

  • Web service for a more specific class when compiling

    Hello

    I just started using labview generator of the user Web interface and I have a problem when I generate the project.

    I recover data with the service and all works well when the application runs in the generator of the user Web interface of labview environment.

    But when I build the project, the Web API service is not recover my data. After a few debbuging, it seems that the problem comes from the block 'Parse Web Services', which returns nothing.

    Someone has an idea?

    Thank you

    I called the support OR and the response was:

    Name of the object should never have special characthers as e, to, o (in french) etc...

    The reason is that the application is generated by a server OR English on the web.

    So for the french, think of never having name determined that contains special characters.

    Otherwise, the application will run in the development environment but not after compilation by the server OR.

    Good bye

  • How can I unit test screws with classes?

    I have my first VI using an oriented object approach I want to unit test. How in the world I have configure Unit Test infrastructure to accept a specific class? See the attached excerpt.

    Hi elrathia,.

    Here is a link that should help you:

    http://zone.NI.com/reference/en-XX/help/372584D-01/lvutfconcepts/utfc_tests_cases/

    Below, you can see an example location:

    labview\examples\Unit Test Framework\LabVIEW Class\LV Class.lvproj

    (Note this is for 2012)

    DylanC

  • Why can I not use Get LV class Default Value in a dynamic VI?

    I'm trying to substitute a VI that uses 'Get default class LV value' and get an error that I do not understand.  My parent, 'Message class of ANT' class, has two children - "Class ANT from the command" and "ANT-class response.  Children participate a lot of data and features, including the factory pattern that implements 'Load Message class' VI of the superclass (see image).  I would replace this VI with a version of command and a version of the response, which would simply call the version of the Message with their respective classes of the substitution of dynamic input and output terminals.  However, I get the error "Front Panel"ANT Out class Message"Terminal: type of execution do not spread of dynamic input to dynamic output.»

    Don't know how to get around it.  Any ideas?

    Thank you

    -Jamie

    That sounds like a strange thing to do - what you will do is to return the default value for the entry class. What is the reason for the class loader of the disc? You SHOULD have already loaded the class in memory, because the output type MUST be the same as the input type (this is a requirement of dynamic distribution work, because the error is telling you). Since you already have the class that is loaded in memory, there is an easier way to get the default value: wiring a loop For iteration 0, and the entry class through wire directly to the output class, with tunnels on the inputs and outputs (NOT shift registers). As the loop never executes, the output is the default value for this class (see https://lavag.org/topic/15354-testing-for-the-same-class/#entry92502).

    Replace "to more specific class" with "class of Run-Time to preserve" will also work, but still, I can't understand why you try to do it at all.

  • TabArrayTabControl façade object - what is this class?

    I am trying to determine the status on the controls in a tab control.  I can access the tab successfully by digging through the references for the Group and all the objects on the Panel, but the class that is returned is "TabArrayTabControl" (class, ID 55).  When I try to access pages on this control by using the refnum and "to a more specific class" this class is not available as an option, and if I use "TabControl" the VI fails (error 1055 occurred at the more class specific in FAÇADE FIND CONTROLS.vi Possible reason (s): LabVIEW: object reference is not valid.).  I tried to 'replace' the control with a simple "tab", and the problem persists.

    (1) what is the distinction between a "TabControl" and a "TabArrayTabControl".
    (2) how to fix the problem?

    Thank you

    Gavin Braithwaite wrote:

    Sorry, just to complete:

    I tried to access specific controls within the tabs and without knowing exactly what they are, or which page of the tab, they were on (it's a long story!).   So as far as I can see, the way to do is to generate a refnum at the façade of a VI and then use this refnum for control of the "allObjs" tab to find the tab control.  However, as I read elsewhere I then had to use "for a specific class' in conjunction with a class tabcontrol to give a refnum I could use to access the individual tab pages.  It does not work (now that I corrected my error in my previous post), but I'm still at a loss to explain what a class of TabArrayTabControl is...

    I can't answer that Q hand. Since you're at foot of a trail, I tread, I offer this nugget for your comment. In this nugget that I try to offer some advice on the use of control references, including the great challenge of how do you manage the tables if you do not know the data types.

    Don't worry if the tail of this nugget gets hairy. The last part is more of a demonstration on which it can be done, but you don't probably Wan to.

    Have fun!

    Ben

  • Conflict of class during import

    I have the ugliest ever created VI (and not by mysself) that I was tasked to maintain and modernize.  It's a quagmire, but it's a quagmire that works with a few minor exceptions.  It was written using LabVIEW 7.0.  One of my todos is to make it work under Windows 7.  To this end, as well as several bug in LabVIEW 7.0 that are well beyond the point of waiting for someone to maintain, I tried to import it in LabVIEW 2010.  I have a ' wire: class conflict "errors when the automatic upgrade that I can't figure out how to fix.  This is a reference to a tab control that is connected to an insertion in table VI.

    Detail: You have connected a refnum of one type to a refnum of another type and both are members of a hierarchy of classes, but it is no a simple font or type cast between the two classes.

    WARNING: the attached VI is the worst collection of screws which is not - do I care.  I'll remove it as soon as I solve this problem, because the pure embarrassment.

    I thought about it myself.

    1. create a constant to insert in table VI

    2. use a constant as target to more specific class class VI

    3. use the original property node as reference to the more specific class VI

    4. disconnect the constant created in step #1, connect the output to more specific class VI

    Huh, not alter or delete the original message.  Well.

Maybe you are looking for

  • Impossible to export video files of Cyber-Shot HX200V

    I tried several times to get the videos I recorded on my HX200V to my Dell computer. I installed the software to play the memories. I tried to locate video files on camera for export as I do of the photos. None of this has worked. Someone please help

  • Report Generation Toolkit V9.0.0: Report.vi print does not print

    Hello I migrated my project Labview 8.5 Report Generation Toolkit V1.1.2 to Labview report Generation Toolkit V9.0.0 2009 system. In this project, I use the report generation tool to print a Standard report with e bit of tables and graphs. The Report

  • Update the Bios Pavillion G7

    Hi, I have a laptop HP Pavillion G7 with Intel processor I bought Dec 2011. I tried to do a bios update. But when the computer starts during the update it hangs with a white screen just before closing. I also tried the update in safe mode but still t

  • How can I disable my webcam integrated for my Dell XPS M1530

    I have a new external webcam, but I can't use it if I don't disable the one I have. Thank you

  • Problems with external hard drive files, Aperture & keep open.

    When I opened (ie the "expand") the folder to an external drive such as a USB key, I want it remains open (expanded). But as soon as I open another folder on the C: drive (ie the root directory), the external drive folder closes its doors (IE 'collap