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

Tags: NI Software

Similar Questions

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

  • I am extremely disappointed by ADOBE software. Adobe recently bought a Stock aircraft and try to use it has realized its futility for my type of service. I'm three days trying to cancel or not. the last attempt was on the phone and let me online for more

    I am extremely disappointed by ADOBE software. Adobe recently bought a Stock aircraft and try to use it has realized its futility for my type of service. I'm three days trying to cancel or not. the last attempt was on the phone and let me online for more than ten minutes and just not talk to the flight attendant. I think he falls into a trap, I have to cancel my credit card.

    Sorry to hear that you were unable to contact our support teams.  I will organize your subscription Adobe Stock must be cancelled.  Please be aware that you must delete all the images you downloaded as they are no longer allowed.

    Kind regards

    Bev

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

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

  • 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

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

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

  • I just talked to xbox live and said me to communicate with you as you take money off mky account and I havnt used for more than a year now, I'd like a refund

    Hi I was wondering if some body would contact me on my account that I havnt used more than a year, I would like a refund on that because I'm not happy at all, you get 15 pounds a month and I really carnt afford this, if someone could give me a ring on (deleted) I would be grateful thank you

    Hi laurabramley,

    For any questions about Xbox Live, please see the following link for Xbox support:

    http://support.Xbox.com/en-us/

    Thanks for posting your question in the Microsoft answers Forum

  • I have a Presario cq 56 laptop and tried to close for more than two hours now,

    You please tell me what can I do to fixs that problem. I got this laptop in July 2011, new in boxes.  I have Windows 7 Home Premium

    want to stop!

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

  • Cannot download and install the update for Adobe reader + dongle mobile vodafone

    I have a problem downloading update for Adobe reader + dongle to wide band mobile vodafone. I get the message as follows
    Install the windows service could not be accessed. This can happen if windows is not installed correctly.
    I just bought ultrabook with windows 7.

    Take a look at this MS article knowledge base:

    Error to the Windows install Service could not be accessed when you install or update programs on Windows 7 or Windows Vista ++
    http://support.Microsoft.com/kb/2642495

    This isn't problem laptop Toshiba but system... then visit forum of Microsoft and the knowledge base for more details.

  • Filter for a specific value object type

    I would like to know if the documents loaded on an object type can be interrogated for a specific value. For ex, I wanted to fetch all the records of the emp and load it into an object. I wanted to ask the object out of the loop to query for a specific deptno. I understand a query simpe SQL would be much faster in the scenario below, but the report itself used in our system uses several tables and some of them have millions of records from different sources as accounts suppliers, accounts receivable, accounting, etc. and they are treated differently for each source before that the result will be published the report. I took the table emp for example and wanted to know if the type of object can be queried for a specific column outside the loop.

    DECLARE

    CURSOR cur_emp IS SELECT * FROM EMP;

    TYPE emp_obj IS TABLE OF cur_emp % ROWTYPE INDEX BY PLS_INTEGER;

    l_emp_tab emp_obj;

    BEGIN

    OPEN cur_emp.

    LOOP

    Get the cur_emp COLLECT LOOSE l_emp_tab LIMIT 1000;

    EXIT WHEN l_emp_tab.count = 0;

    BECAUSE me IN 1.l_emp_tab.count

    Loop

    dbms_output.put_line (' Ename:' | l_emp_tab (i) .ename |', Deptno:' | .deptno l_emp_tab (i));

    END LOOP;

    END LOOP;

    -Can I ask specific employee to a deptno outside the loop FOR without using a temporary table

    -something like "SELECT * FROM TABLE (type_name) WHERE DEPTNO = x_Deptno.

    END;

    /

    In a collection of table selection is not effective, there are better ways to do it.

    Why not create a view?

    create view...

    Select * from source1 Union all the

    Select * from source2 Union all the

    Select * from source3

    -or-

    Using ref cursor return... clause, so you can make conditional cursors

    If somecondition then

    Open the NEWS for

    Select * source1;

    on the other

    Open the NEWS for

    Select * from source2.

    end if;

    -or-

    Dynamics based SQL ref cursor

    DECLARE

    TYPE EmpCurTyp IS REF CURSOR;

    v_emp_cursor EmpCurTyp;

    employees emp_record % ROWTYPE;

    v_stmt_str VARCHAR2 (200);

    v_e_job employees.job%TYPE;

    BEGIN

    -Dynamic SQL statement with placeholder:

    v_stmt_str: = ' SELECT * FROM employees WHERE job_id =: I;

    -Open the cursor & specify bind argument in the USING clause:

    V_emp_cursor OPEN FOR v_stmt_str with the HELP of 'MANAGER ';

    -Extraction of the lines of result set one at a time:

    LOOP

    SEEK v_emp_cursor INTO emp_record;

    EXIT WHEN v_emp_cursor % NOTFOUND;

    END LOOP;

    -Close the cursor:

    CLOSE V_emp_cursor;

    END;

    /

    -or-


    Load in an intermediate table (as a temporary table)

  • Is anyone else having problems with Windows 8 when your typing and e-mail? For some reason, it comes out constantly to the tile screen while I type making me about starting more.

    Is anyone else having problems with Windows 8 when your typing and e-mail? For some reason, it comes out constantly to the tile screen while I type making me about starting more.

    Hi Chaz,

    I thank you for your message and gives us a chance to help you. I see that the Mail app closes while you are typing an email.

    Please answer these questions to get a better understanding of the issue.
    1 have changes made to your computer before this problem?
    2 shut down other applications while they are in use?
    3. do you get an error code?

    You can try these methods to check whether the problem is resolved.

    Method 1: Run the troubleshooter of app.

    http://download.Microsoft.com/download/F/2/4/F24D0C03-4181-4E5B-A23B-5C3A6B5974E3/apps.diagcab

    Open this link to launch the troubleshooter.

    Method 2: Update the application.

    Method 3: Reinstall the application.

    This link has the steps that you can follow to update and reinstall the application.

    http://Windows.Microsoft.com/en-us/Windows-8/what-troubleshoot-problems-app

    Feel free to use the forum for any other issue of Windows, you may have.

Maybe you are looking for

  • Activatin window problem

    Hello Im from bangladesh. Today, I pruchaged acer iconia w4. But I failed activate my windows? Please help me to active my windows

  • shortcuts and .lnk extension

    Downloaded play all the media player 9THOUGHT it IS a MICROSOFT PRODUCT) WHEN I UNINSTALL IT CHANGES ALL MY SHORTCUTS ON the DESKTOP AND START MENU TO. LNK how to get again the use of my shortcuts and get rid of this post .lnk

  • Windows Control Panel has stopped working and cannot read the CD

    Original title: windows control panel has stopped working When I went to install my Rosetta Stone program it showed Windows has stopped working and then installed the program and when I put the cd in my computer saids windows control panel has stoppe

  • Is this a Trojan or phishing scam?

    When I try to connect to hotmail instead of the home page, since yesterda another window appears instead.  Top left it has Windows Live TM, then the following: Thank you for using Windows Live. To continue, please provide the following information. 

  • Photoshop CS5 12.0 on MACOS 10.7.5 crashes when printing on printer Epson PX 8500.

    I just upgraded my MAC OS 10.7.5 and having problems with my version of PHOTOSHOP CS5 12.0Photoshop CS5 12.0 on MACOS 10.7.5 crashes when printing on printer Epson 8500.Any suggestions?Thanks in advance,Everett