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!

Tags: NI Hardware

Similar Questions

  • 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

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

  • QML how to expose properties of the component.

    Hello

    Qml how we can expose the properties of a component.

    for example

    TextField component has a properties such as hintText, id etc. same thing we exhibit in eclipse with cntr + space but I don't know how to expose it in qml.

    Windows Goto-> to see the view-> QML properties

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

  • Properties of the component no longer exist.

    I have a component called: Event.cfc

    Long story short, I have init() it by issuing a command like:

    < cfset eventObject = new 'COM Event' () / >

    This component has 2 properties: data (structure) and the name (a string).

    The init() method calls a private method:

    < cfset VARIABLES.setName (VARIABLES.getAttribute ('event')) / >

    The setName() method is implicit, ColdFusion based it based on the name attribute.  I manually created the getAttribute() method which works with the property data.  In the getAttribute() method, I have a command that reads:

    < cfset LOCAL.retVar = VARIABLES.data [ARGUMENTS.attributeName] / >

    Well, SEE repeats that "data" do not exist in the VARIABLES.  But I thought that the properties that have been defined in a component have been updated with the scope of VARIABLES.  So how this variable can exist when I set it at the top of the Event.cfc component as a < cfcomponent >?

    Aegis,

    The new CF10 docs , it looks like does not work quite as you thought:

    Its use

    You must position cfcomponent tags at the beginning of a component, above the executable code and function definitions. If a component is not used as a web service, only provides information to the property metadata. Set variables or defines the values you can use in your component. However, it creates implicit setters and getters for the property in the CFC if getter/setter attributes are enabled.

    See the part I put in italics, it does not define the variables.  You need to add a Pseudo-constructeur to create the variables before the init() method.

    Not necessarily related, but I noticed something.  In your init() method you have this:

    On a newly created object, the data variable will be empty then call your getAttribute() method returns nothing (and possibly error since there will be a struct of 'event' inside the variable 'data' key).

    In addition, on the methods inside your component, you need not call them with the 'VARIABLES' scope prefix.

    -Carl V.

  • Properties of the component to bind to a table in a backingBean

    Hello

    JDev: 11.1.1.5.0
    I guess that the object represents my question!

    How is it possible to bind a property of a component (for example, af:column). DisplayIndex in a table in a backing bean?


    something like this:

    displayIndex = "#{pageFlowScope.MyBackingBean.MyAttributeProperties [0] .displayIndex} '"

    Thank you

    Shahab

    Hello

    not only your subject line says the question, almost gives you the answer.

    [If #{pageFlowScope.MyBackingBean.MyAttributeProperties [0}] is a HashMap (no table) which returns a Java object if this Java object has a property of JavaBean (getter/setter) for displayIndex then #{pageFlowScope.MyBackingBean.MyAttributeProperties [0] .displayIndex} returns the value. So basically, you need to create a HashMap of objects, not an array.

    Frank

  • Change the properties of the component (police/color)

    Hey all,.

    Newb question I can't seem to understand my own: how to change the basic properties of my button, box drop-down list and other components? At the moment they all highlight with a weird neon greenish glow which, although probably perfect for ghostbusters.com, is not just Jibe (jibeing? jybing? I made that Word up?) with the rest of my design. Thanks again in advance.

    JF

    _Global.style.SetStyle ("themeColor", 0x8bbfcc); change to any hexadecimal value
    _Global.style.SetStyle("FontSize",10); change to any font size
    _Global.style.SetStyle ("Color", 0x26889F); change to any color police

  • Properties of the dynamic component using the EL Expressions

    Hi, first I use JDeveloper 11.1.1.6.

    To better explain my problem, I think the best is to expose my use case.

    So, I have a form with hundreds of components and I have a page before the form to select an option, and depending on the option chosen, different shape components are shown to the user. It's all configured in a DB Table. For example: each record db has the id compoennt and some properties like requires it, people with disabilities, visible, etc. If I want to put a component is not visible, that I just have to call setVisible on component whose value to false. So, so far, no problems, everything works fine.

    But I have another requirement that gives me problems. Some components are dependent on others. Let me give you an example:

    • When I select option A (in the previous menu) the X-component is necessary if the component is set to 1;
    • When I select the option B (in the previous menu) the X-component is necessary if the Z component has a value of 1;

    You are probably thinking, "well, you can do this with EL Expression" and I agree. I can do but so far I couldn't do it directly on the properties of the component. But I want to keep all configs in the comic book (it is easier for the customer keep the components on the form.) Tomorrow, that he might want to change the component that x be required only when W element is set to 1.)

    So my question is, can I ask an EL Expression programatically real estate one component?

    Hi, has solved the problem.

    Leave the solution for future users with the same issue here:

                String [] partialTriggerComps = r.getRequiredIfComponents () m:System.NET.SocketAddress.ToString (.split(";"));
                String expression = r.getRequiredIfExpression (m:System.NET.SocketAddress.ToString ());
                comp.setValueExpression ('compulsory', ADFUtils.getValueExpression (expression, Boolean.class));
                comp.setPartialTriggers (partialTriggerComps);
  • Properties of the identity provider and business rules

    Hi all

    I need access to one of my user properties (coming from my security WebLogic (LDAP) provider).
    I have succeed to get information with an ADF application

    How to have these properties using the component of business rules?


    Thank you

    From within the business rule component, you can't call and get additional data. All required data must be passed as part of the entry.

  • Retrieve the label of a cluster in a global variable

    Hi guys!

    In my application I was using a bunch of Boolean values for the different types of errors that I could have in my Subvi.

    It was not really practical manage all of these clusters, so I decided to create a world.

    Now the problem is I can't extract the labels and values of this cluster. Before I spent as the thesis reference values, but I think there is no way to create a reference directly from my global variable (cluster).

    As you can see in this printscreen so I created a new table indicator in my VI. But if I add a new Boolean value into my global cluster, I need to create the cluster once again and it is not really practical.

    The goal is to list the errors in a string only if the value is true.

    I don't know if I'm clear, otherwise I can explain more.

    Hi remvu,

    have you tried to insert a "to a more specific class" before the node property-ctl?

    Because you always want to know the names of the Boolean, you really should give it a shot to typedefinitions...

  • How to copy the properties of the child to another class parent class the child at run time?

    Hi all

    I have 3 classes:

    Class A: parent

    Child classes B and c:

    At runtime, I want to istantiate an object of class C of an existing class B object.

    In particular: I have an object of class B with its properties; Then, I want to create an object of class C, which the parent properties are 'taken' of object B.

    I tried to use "more generic class" and "to a more specific class', but without success.

    Can you help me?

    Basically, you will need to write explicit code that will have all relevant data and move everything to the new object.

  • How he handles the labview to more generic class

    It's just a matter for my own knowledge of curious nerd. If you, say, have a cluster that contains a string, a Boolean value, and a digital control, a common method to reference the controls in the cluster is to create a cluster of reference and then to get the array of control from a property node. So let's say I wanted to put the Boolean value true, you can auto control array index and cast in more specific class boolean and set value via the property node (see below).

    Now my question is, to place controls of different types in a table must be returned by the property node, they must all be of the same class. How LabVIEW manages it? He cast as a more generic class backstage? If so, how this work because it is generally dangerous to come back from a class derived from a base class because the data can or will be lost.

    Furthermore, a standard molded type takes just a binary model and interperates as differently it based on the data type. So how is "of a more specific class" able to raise an error if a generic control reference cannot be transformed into a class more specific. For example, in the attached photo, a control string reference would be mistake out there, but how? They are all classes of generic control when they get out of the property node. Is there some type of indicator in the generic control reference indicating the type? Maybe I think about this fundemtally wrong. All I can think is that the more specific / are more generic vi no type casting (which I guess they are not because it has separate type cast feature).

    Can someone explain how this all works. Inquiring minds want to know.

    for (imstuck) wrote:

    Now my question is, to place controls of different types in a table must be returned by the property node, they must all be of the same class. How LabVIEW manages it? He cast as a more generic class backstage? If so, how this work because it is generally dangerous to come back from a class derived from a base class because the data can or will be lost.

    Furthermore, a standard molded type takes just a binary model and interperates as differently it based on the data type. So how is "of a more specific class" able to raise an error if a generic control reference cannot be transformed into a class more specific. For example, in the attached photo, a control string reference would be mistake out there, but how? They are all classes of generic control when they get out of the property node. Is there some type of indicator in the generic control reference indicating the type? Maybe I think about this fundemtally wrong. All I can think is that the more specific / are more generic vi no type casting (which I guess they are not because it has separate type cast feature).

    Can someone explain how this all works. Inquiring minds want to know.

    I don't know all the details, but I would say you got it mostly right - there is an implicit conversion to a more generic type.  You will see this in several places in LabVIEW, for example, you can wire references to different types of controls in "table to build" to get a picture of their more specific common parent.  Because you're only casting reference - not the data that it contains, there is no loss of data.  A LabVIEW reference is just an I32 is (I assume) an index into a lookup table somewhere.  The value of this I32 does not change when it is converted into a more generic reference.  When you do "to more specific Type", LabVIEW raises this reference in the table and uses the data it found to determine if she can make the cast.  Who help me?

  • Definition of the properties on the managed Bean user interface component:

    Hello

    I use jdev 11.1.1.1.0 version.
    In Managed bean, I get the component by using the id given in page .jspx.
    the code I am uisng is:

    FacesContext fc = FacesContext.getCurrentInstance ();
    UIComponent uc = (UIComponent) fc.getViewRoot () .findComponent ("it32");


    Here, the component is sometimes RichColumn and sometimes RichInputtext.
    In the case of RichInputText, I need to set the readonly property to true/false depending on some condition .i found no setReadOnly() ant on the UI component.

    so I think to convert the UIcomponent type RichInputText or RichColumntype. (if I convert the means I get methods like setReadOnly(), setVisible())
    How is it possible.

    (or is anyway to set the "readonly", 'visible' properties on UIcomponent itself in the Managedbean without conversion).


    PLs help me
    Sanchez.

    Hello

    You can get the instance of the component or use UIComponent.getAttributes () .put (attributeName, attributeValue); For example:

    theComponent.getAttributes().put("readOnly", Boolean.TRUE);
    

    Kind regards

    ~ Simon

Maybe you are looking for

  • iPad 2 isn't getting new update (iOS 10). says "the software is up-to-date 9.3.5.

    I've already updated my iPhone and iPad mini and wanted to update the old. the wire air did not work, so I plugged it to the itunes (updated new version yestarday) also says there is no update.

  • IPhone 6 does not properly?

    Lately my Iphone (6) was not properly. It it constantly restarts randomly, it is not allow me on apps (they crash). If I get on its connect outside and very slow. The screen is most of the time of freezing and glitching. It's really slow, sometimes t

  • The WIFI channel width

    Hello I use an iPhone 6. To improve data transmission, I set my router / Repeater for a wifi channel width of 40 MHz to 2.4 GHz. PC and portable that can use this channel without setting width. My iPhone doesn't work. Are there opportunities to set t

  • HP officejet pro 8600 does not web print

    I started having this problem about 2 months ago.  I get no error. the printing process through all appropriate measures and the printer spits out a blank sheet of paper. I made no changes. no update, no fits no deletion. It's really irritating. I ne

  • Sam SM30X: OS recognizes the device name but never find USB driver

    Hi, I have a pb with a SM30X; regardless of the usb device which I have connect (gamepad for example generic, USB key, etc.), he recognizes the name of periphral, but never find any driver to install what should be good that XP has all the generic dr