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.

Tags: NI Software

Similar Questions

  • 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

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

  • 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

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

  • Should I close the reference?

    Hello

    I would ask... should I close the reference of the workbook in the following code?

    In fact, I have little idea whether to close a reference or not, because I thought that LabVIEW will automatically close all references after the execution.

    I also found that someone says that the activeX references must be closed on mine.

    Could someone correct my understanding of the closure of reference?

    In this case I'm fairly certain that cleaning screws will close these references, so I don't think that you should close your self.  One way, usually, I test this is I put the code in a while loop, or use the continuous run button.  It's basically the only time wherever I never use only and I have on small subVIs like that.  Then, I run my code over and over again and look at the Task Manager to see how much memory is using LabVIEW.exe.  After a few seconds if there is a leak of memory then memory will continue to increase.  If the memory goes up and down a bit, but overall does not continue to grow, then all the references that should be closed are closed.

    There is a white book NOR on the reference Server VI of closing which is exactly what you are doing, but has relevant information.

    http://www.NI.com/white-paper/14393/en

    And an exchange of views on this subject.

    https://lavag.org/topic/16443-closing-references-in-LabVIEW-new-documentation-published/

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

  • close the reference on "read text file" - Ref num vs prefer class conflicts

    Dear users,

    Vi Analyzer asks me to close the refernce created by VI "read text file". So, I would close a refnum created by primitive VI "read text file". I used a direct wire, wiring by top and bottom of the casting, but each of them attend class conflicts (see the screenshot below). It is even possible to correctly transform the refnum (byte stream type reference) to refer (reference VI generic) and remove the refnum?

    See you soon,.

    You must use the close file.

  • Satellite A100 - options to close the lid for the laptop are not available

    Hello
    I have a Toshiba Satellite A100 - it came with Vista - I carefully cleaned the HARD drive and installed XP - I deleted the partitions etc. and started with a HDD in a perfect state of cleanliness.

    Then, I downloaded all Toshiba drivers that are available for my model.

    When I close the lid it still fully powered - there is no option to go into sleep mode, Hibernate etc in the options of "close cover" - the only option is the "status quo".
    How can I get the standby extended/standby/power options back?

    Your help would be appreciated

    Helen

    Did you installed Toshiba Power Saver utility?
    These options that you can find.

  • A single reference FPGA, 2 parallel FIFO running, how close the reference?

    The FIFO are being made of a single FPGA reference. If you see on the right the most, I have 2 close to reference, when I press the stop button, it gives me the error dialog box. What is the proper way to close the two FIFO?

    That is right.  The reason is because they are both the same reference.

  • close the responsibility for a few days

    Welcome to all

    I need to close 10 users on responsible for some day_ spefic
    How can make this issue




    Kind regards

    I mean enter the end date of the users at the same time to do not appear separately for each user

    I am looking for the way to enter the date of the end of all users directly instead of going to each user separately

    This can be done by using the API, but you must run the code for each user.

    Thank you
    Hussein

  • How to close the pay for the pay period

    Is it possible to close a payroll for a particular pay period...?

    If so, how can we do this...?

    All comments/suggestions are welcome!

    You can close a pay period by navigating to the payroll-> Description-> Dates of the period--> State. You can change the 'Open' status by default of the payroll in any "Closed" period It also prevents entered the element. It can be reopened if necessary.

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

Maybe you are looking for