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

Tags: NI Software

Similar Questions

  • can not see Add targets and devices in the Project Explorer

    Hello!

    I think I have a strange question. I have the evaluation version of Labview 2010. I am trying to add my cRIO 9004 to a project. I'm just trying to follow the instructions in the getting started with manual cRIO. It is said, add crio to the project by project root right clicking and selecting NEW > ADD TARGETS AND DEVICES. The problem is I can't see the link to the NEW, but once I click that I see not a link under "add new target or device" appear, instead, I see the dialog box to open a NEW FILE LABVIEW appear. everywhere in distress forum/basic knowledge/support of shooting and get started articles have mentioned project root right click > select NEW > select Add a target or peripheral >, as if she IS supposed TO APPEAR STANDARD in all new projects! But I'm not! I do not understand what Miss me. The version of software that I have are below:

    the cRio:

    OR VISA 5.0

    NEITHER RIO 3.0
    RT LV 8.6

    and he allied himself with what I installed on my host.

    I can communicate with the device of cRIO times using MAX as well as ping at the windows command prompt command.

    Any help would be great!

    Thank you!

    Rajesh

    After you have installed the evaluation version of LV 2010, you reinstall all of the other drivers, as for the cRIO?

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

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

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

  • How to add IKM project

    During the recording of the project I get error "critical target DataStore no IKM is selected for this interface."
    How to add IKM project.
    any help is appreciated.

    Published by: nitya 10 Sep, 2010 07:25

    Naveen in case that your problem is solved. Please close the thread and the marking of the useful answers or answer.

  • Add or remove a program on Vista

    On WXP by going to 'My computer', you could access and add or remove the program. Does anyone know how access to this under Vista, or if not how do to completely remove programs?

    Thank you.

    Hello

    Please enter the control panel and select programs and features.
    You will get the list of preinstalled applications.

    Choose the application you want to remove and use the option uninstall. The same option as long as you click with the right button of the mouse.

    Good bye

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

  • 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

  • How can I remove AVAST4 antivirus program when it is not listed in the list to add or REMOVE a PROGRAM?

    original title: help

    How can I remove AVAST4 antivirus program when it is not listed in the list to add or REMOVE a PROGRAM?

    Hello

    Avast uninstall utility
    http://www.avast.com/uninstall-utility

    If you need more help contacting Avast support and forums

    Avast - Support
    http://support.avast.com/

    Avast Forums
    http://Forum.avast.com/

    I hope this helps.

  • I need to add a volume control program to my xp

    I want to have a volume control in my taskbar, but it says that I need to add a volume control program and I can't find

    Hello

    Perform the steps listed in the article below and check. If the problem persists, reinstall the sound card drivers and check.
    Volume icon is not displayed in the notification area, and you may receive an error message when you try to add
    http://support.Microsoft.com/kb/319095

    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Can you tell me if it is allowed to add a spam fighter program to run alongside MSE

    MSE doesn't seem to be able to separate express messages from junk e-mail in outlook even if someone has solved this problem

    Microsoft Security Essentials does not have an anti-spam capacity.  It's OK to add a spam fighter program.

  • How can I add music to a program

    Is it possible to add sound to a program such as Windows Live Messneger? I tried, but it seems that when I click on the button 'Browse' and open the music folder, anything music here, but... when I closed ot the Messenger and click the same folder, the music is there. How the music is there, but at another time when I click on browse, it is not. It does make any sense to me. By clicking on the same file, what I do is go in my user folder, click on the music folder and the music is there. Any suggestions will help. Thank you

    Is it possible to add sound to a program such as Windows Live Messneger? I tried, but it seems that when I click on the button 'Browse' and open the music folder, anything music here, but... when I closed ot the Messenger and click the same folder, the music is there. How the music is there, but at another time when I click on browse, it is not. It does make any sense to me. By clicking on the same file, what I do is go in my user folder, click on the music folder and the music is there. Any suggestions will help. Thank you

    ===================================
    If a file (extension) format is not compatible
    with the app you are importing to... files will be
    not be visible. In many cases, it is an all
    File... option you can choose to make visible.

    The following article might be worth a visit:

    How to share music with my friends on windows
    Live messenger?

Maybe you are looking for