Conversion of a project to use a library project

Hello.

I'm trying to convert a large main VI with a lot of sub - VI to a project that would use rather a project library. In particular, I want to pack all or nearly all my SubVIs in a library project (so that I can later reuse these subVIs to various projects) and the main VI would use this library. I hope I have the idea of libraries in the project correctly.

Now, I thought I'll Pack all my subVIs in a library project and save it as ProjectLib, so I'll create a new project with my main VI and add ProjectLib to this project.

Here is my ProjectLib with virtual for subVIs folders and Utils (Utils are just more generic subVIs)

and here is my main project VI, with the library of projects above added:

Now, I'm sure I'm doing this wrong, but I can't know what would be the right way to go about this, despite reading and re-reading helps LabView to articles on the issue (like this: http://zone.ni.com/reference/en-XX/help/371361J-01/lvconcepts/project_libraries/). Nowhere can I find a guide step by step conversion my VI existing with a lot of subVIs to this structure.

For example, when I opened my main VI now, I see errors caused by all the missing of subVIs. My thought is that I now say my main VI: ' look, this is a ProjectLib I have included, see? Take this Subvi from there! "but I don't see an option for this.

I would be grateful any ellucidation on how do properly what I'm trying to do. I apologize in advance for any stubbornness on my part.

Thanks in advance.

Hello SenSLabs,

It seems that you are attempting to add a project (lvproj) to another project, rather than building a library (lvlib or lvlibp) and adding that the new project.  The easiest way to build a standard .lvlib is described here:

LabVIEW Help: Creating a library to a project folder project

http://zone.NI.com/reference/en-XX/help/371361J-01/lvhowto/convert_fold_lib/

Once you have built the lvlib (from the old project), add this library in your project (new) and you should be good to go.

Kind regards

Tags: NI Software

Similar Questions

  • Use a library of manufacturer C

    I develop on LabWindows CVI.

    I would like to communicate with a FTDI USB chip. the manufacturer provided a ftd2xx.h of the library to communicate with the chip in C. Using C without CVI programming, I managed to communicate with the chip, adding however, my library in my project CVI and called him in the C program, it gives me a lot of error in the ftd2xx.h library.

    What should I include other files to use a library provided by a manufacturer?

    Thank you very much.

    Johan

    Have you followed the advice of Labwindows/CVI (in "Application Software") in the FTDI knowledge base. ?

    If this doesn't help, could you be more specific about the error messages, you have found?

    Please post at least an error message literally.

  • When I use the library function node call in real time, is loaded only once for all or load the DLL whenever it is called?

    When I use the library function node call in real time, is loaded only once for all or load the DLL every time when it is called?

    I have a critical application in real time, in which I use a piece of DLL function developed in C++.  It is ok?  Make sure any senior developer?

    Thank you in advance.

    The user interface thread is the thread that is used to update the user interface. It's slow. And it's supposed to be that way because humans are slow.

    The call library function node can be configured as this thread to use in the configuration for it dialog box. Please visit the LabVIEW documentation on how to do this.

  • How to use the library of Extension VPN

    Hello!

    I'll expand VPN enforcement using the library of Extension VPN. I already tried some time ago, but had no direct mechanism to develop and libvpn_ext library is not available on a simulator.

    I will use the library to open the VPN connection with a solution programmatically open source vpn, OpenVPN probably at the beginning.

    So question is, can I develop some app using this library for this application and then publish app on AppWorld?

    Thank you.

    I looked into the available VPN API, and they are not sufficient to set up your own VPN client.  So it is not possible to do what you describe.  I am not sure why we have listed what we do on our developer site.  They do not seem to offer enough to do something useful and probably just would induce in error the developers, as has happened here.  They may eventually be removed.  If I find more is coming I'll respond here, but it doesn't seem anything is imminent.

  • IOException zero while making the SOAP request using ksoap2 library.

    Hi I am trying to implement the SOAP request using ksoap2 library, but I'm on it running on the Torch 9810, IOException zero

    httpTransport.call (SOAP_ACTION, soapEnvelope); exception.


    Code is:

    private String NAMESPACE="samplenamespace";
        private String url="webserviceurl";
        private String METHODNAME="getrecords";
        private String SOAP_ACTION=NAMESPACE+"/"+METHODNAME;
    
        private void sendSoapRequest(String email, String startDate, String enddDate) {
            SoapSerializationEnvelope soapEnvelope = new SoapSerializationEnvelope(
                    SoapEnvelope.VER11);
            soapEnvelope.implicitTypes = true;
            soapEnvelope.dotNet = true;
            SoapObject soapReqObject = new SoapObject(
                    NAMESPACE, METHODNAME);
    
            soapEnvelope.headerOut = new Element[1];
            soapEnvelope.headerOut[0] = buildAuthHeader();
            soapReqObject.addProperty("email", email);
            soapReqObject.addProperty("startdate", startDate);
            soapReqObject.addProperty("enddate", endDate);
    
            soapEnvelope.setOutputSoapObject(soapReqObject);
            HttpTransport httpTransport = new HttpTransport(url
                    + ";deviceSide=true;interface=wifi");
            httpTransport.debug=true;
            try {
                httpTransport.call(SOAP_ACTION,
                        soapEnvelope);
            } catch (final IOException e) {
                e.printStackTrace();
                UiApplication.getUiApplication().invokeLater(new Runnable() {
    
                    public void run() {
                        Dialog.alert("IOException " + e.getMessage());
    
                    }
                });
    
            } catch (final XmlPullParserException e) {
                e.printStackTrace();
                UiApplication.getUiApplication().invokeLater(new Runnable() {
    
                    public void run() {
                        Dialog.alert("XmlPullParserException " + e.getMessage());
    
                    }
                });
            } catch (final Exception e) {
                e.printStackTrace();
                UiApplication.getUiApplication().invokeLater(new Runnable() {
    
                    public void run() {
                        Dialog.alert("Exception " + e.getMessage());
    
                    }
                });
            }
        }
    
        private Element buildAuthHeader() {
            Element h = new Element().createElement(NAMESPACE, "headername");
            Element username = new Element()
                    .createElement(NAMESPACE, "username");
            username.addChild(Node.TEXT, "usernametext");
            h.addChild(Node.ELEMENT, username);
            Element pass = new Element().createElement(NAMESPACE, "password");
            pass.addChild(Node.TEXT, "passwordtext");
            h.addChild(Node.ELEMENT, pass);
            return h;
        }
    

    I did tried to check a large number of post on KSOAP2 supportforum. Also made changes, but none of them succeeded.

    Any help?

    Solved

    problem was passing parameters (incorrect parameters format)

  • Can I use the library of creative cloud with Illustrator CS5

    Can I use the library of creative cloud with Illustrator CS5

    Hi Ilys Ravel,

    No, CC libraries function is available in version CC 20141 sur-quartiers.

    Sanjay...

  • Using the library of Conversion CAN channel frame with arxml-files?

    We use LabVIEW and the library of Conversion CAN frame channel to measure and display the CAN the .dbc file-based channels.

    Now the OEM changed the file format of .dbc to AUTOSAR XML (.arxml) and we will not have a .dbc file.

    Is it possible to read files in NI-CAN .arxml or convert format .dbc?

    Hi Ludwig72,

    Unfortunately the NI-CAN just supports the .dbc and .nbc files. If you convert the .dbc .arxml, this should work, or if there is no option to switch to the NOR-XNET driver, it would be possible to import .xml files.

    Just in case you have this ability, here is the link to the latest version of the driver NOR-XNET:

    http://Joule.NI.com/nidu/CDs/view/p/ID/3757/lang/de

    You should check, if your hardware, software and operating system is supported by this version in the manuals.

    Best regards

    Michaud

  • Failed deploying EJB project that uses the library on Glassfish

    < font size = 4 > Hi,
    I have an application of multi project that I'm developing and I'm having issues test it. I've set up an EAR, WAR, EJB and two pots of library. The EJB contains classes that use components of the library of jars or implement classes abstract library jars. I added the jars of library for the EJB compilation libraries. Next, I added also the jars of library for the libraries of the EAR. However, when I will then deploy the EAR on the Glassfish server, I get this error, displayed in the Glassfish log: < / police > < br >

    < font size = 2 > < font color = "red" > WARNING: error in the treatment of the annotation: java.lang.NoClassDefFoundError: com/foo/sdk/base/AbstractClass < / police > < br >
    < font color = "red" > WARNING: error in the treatment of the annotation: java.lang.NoClassDefFoundError: com/foo/sdk/base/AbstractClass < / police > < br >
    < font color = "red" > WARNING: error in the treatment of the annotation: java.lang.NoClassDefFoundError: com/foo/sdk/base/AbstractClass < / police > < br >
    < font color = "red" > WARNING: error in the treatment of the annotation: java.lang.NoClassDefFoundError: com/foo/sdk/base/AbstractClas < / police > < br >
    < font color = "red" > SEVERE: class [com/foo/sdk/base/InterfaceClass] not found. Error loading [class com.foo2.BeanFooClass] < / police > < br >
    < font color = "red" > SEVERE: Exception when deploying the application [FooEAR] < / police > < br >
    < font color = "red" > SEVERE: [BeanFoo.jar] is not a valid ejb jar: it contains zero ejb. < / police > < br >
    Note:
    1. a valid ejb jar requires at least one session, entity (1.x/2.x style) or message-driven bean.
    2 EJB3 + beans entity (@Entity) are a POJO and please pack them as library jar.
    3. If the jar file contains valid EJB which are annotated with EJB annotations level component (@Stateless, @Stateful, @MessageDriven, @Singleton), please check server.log to see if annotations have been processed correctly.
    java.lang.IllegalArgumentException: invalid [BeanFoo.jar] ejb jar: it contains zero ejb.
    Note:
    1. a valid ejb jar requires at least one session, entity (1.x/2.x style) or message-driven bean.
    2 EJB3 + beans entity (@Entity) are a POJO and please pack them as library jar.
    3. If the jar file contains valid EJB which are annotated with EJB annotations level component (@Stateless, @Stateful, @MessageDriven, @Singleton), please check server.log to see if annotations have been processed correctly.
    at com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:76)
    at com.sun.enterprise.deployment.util.ApplicationValidator.accept(ApplicationValidator.java:128)
    at com.sun.enterprise.deployment.EjbBundleDescriptor.visit(EjbBundleDescriptor.java:730)
    at com.sun.enterprise.deployment.Application.visit(Application.java:1768)
    at com.sun.enterprise.deployment.archivist.ApplicationArchivist.validate(ApplicationArchivist.java:799)
    at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openWith(ApplicationArchivist.java:277)
    at com.sun.enterprise.deployment.archivist.ApplicationFactory.openWith(ApplicationFactory.java:240)
    at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:170)
    at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:93)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:826)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:768)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:368)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
    at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)
    to com.sun.enterprise.v3.admin.CommandRunnerImpl$ 1.execute(CommandRunnerImpl.java:355)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)
    to com.sun.enterprise.v3.admin.CommandRunnerImpl.access$ 1200 (CommandRunnerImpl.java:96)
    to com.sun.enterprise.v3.admin.CommandRunnerImpl$ ExecutionContext.execute (CommandRunnerImpl.java:1247)
    to com.sun.enterprise.v3.admin.CommandRunnerImpl$ ExecutionContext.execute (CommandRunnerImpl.java:1235)
    at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:465)
    at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:222)
    at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)
    at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:234)
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
    to com.sun.grizzly.util.AbstractThreadPool$ Worker.doWork (AbstractThreadPool.java:532)
    to com.sun.grizzly.util.AbstractThreadPool$ Worker.run (AbstractThreadPool.java:513)
    at java.lang.Thread.run(Thread.java:679)

    < font color = "red" > SEVERE: Exception when deploying the application [FooEAR]: [FooBean.jar] is not a valid ejb jar: it contains zero ejb. < / police > < br >
    Note:
    1. a valid ejb jar requires at least one session, entity (1.x/2.x style) or message-driven bean.
    2 EJB3 + beans entity (@Entity) are a POJO and please pack them as library jar.
    3. If the jar file contains valid EJB which are annotated with EJB annotations level component (@Stateless, @Stateful, @MessageDriven, @Singleton), check server.log for see if annotations have been processed correctly. < / police > < br >

    < font size = 4 > I use these technologies:
    The IDE NetBeans 7.0 for Java EE
    GlassFish 3.1

    I read that libraries putting into this directory: < glassfish_home > / domains/Domain1/lib can solve the problem, however there must be a better way.

    Any help would be greatly appreciated! < / make >

    Published by: 866180 on June 15, 2011 14:32

    First, use a normal font when you post a question. That's all just awful to read.

    You have several failures here. Have you actually read and try to understand the error?

    java.lang.NoClassDefFoundError: com/foo/sdk/base/AbstractClass

    Java will not lie, this class is not on the classpath of the application. The jar is missing, the class is missing from the pot or you put the jar in the wrong place. Open the ear with your favorite zip tool and discover its structure. What is the path to the jar inside?

    Also, open the file META-INF / "MANIFEST. MF' inside the EJB jar. Is there a class in that line? It should not be!

    A valid ejb jar requires at least one session, entity (1.x/2.x style) or message-driven bean.

    Apparently your EJB jar does not contain a single EJB or MDB class. You forgot a few annotations maybe?

    Seems to me that your application compiles, but other than that it is much broken.

  • can I use several library of muse in one project?

    Hi all

    I use cc Muse 2015. When I draw site in muse 2015 with several Widgets Library or preview in browser preview in Muse her me seed BLANK.

    If I we one Widget in same design brief at a time is allowed.

    So help me what can I do?

    Usually, you can use as much as you want. Sometimes some third-party widgets may conflict with each other. Also according to the widget some can only be used once on a page.

  • How to use the library of small Photos on the MacBook Air

    I'm running out of space on my MacBook Air, and I prefer to store all my original photo in iCloud. How to keep the photo library on my Mac to the size of the strict minimum. Thank you.

    Are you already using iCloud photo library or you want to turn your photo into a photo library of iCloud library?

    To save storage on your Mac, select iCloud in the pictures library > Preferences > iCloud. also turn on "Optimize Mac Storage" in this Panel.

    Photos will replace originals in your library of optimized versions. But this process is dynamic. If you are short on storage, it will replace original more optimized versions. So, it will take some time, until your photo library becomes smaller. You cannot influence this process.

    A way to shrink the photo library immediately, is radical enough: wait until the first download of your photos is complete and all the pictures are on iCloud.  Make a current backup of your photo library by copying to an external drive.

    Then delete the photo library on your internal drive. Launch photos while holding down the key options and create a new empty library. This library in your system photo library and activate iCloud photo library with optimization of the storage.

    Now, all your photos will download as optimized versions and the library will be much smaller from the start.  However, it has some drawbacks.  Thumbnails of faces will be lost, also all of your projects. It will be like using your iCloud library another computer: use Photos and photo library on several Macs - Apple Support iCloud

  • How can I change an application to use another library with a different name but the same name for public (easily)?

    When you perform comparisons between the programming approaches I create two libs with the same public calls but different internal components. Nothing special there. Unfortunately when I pass my test app to a lib to another, the application loader asks an all audiences of vi. But I thought I read somewhere that the application loader would get the idea where to look after that I saw the first public call to the new lib. Doesn't seem to work. With the help of 2010.

    Pull the lib not used out of the machine. Rename the current library under the same name that you used. Project save everything. Close to LabVIEW. Remove the current lib. Copy the another lib to the machine. Not necessarily easy but here's how I did similar exercises in the past.

  • Try to use the library IOS Mixepanel in Native Extension using CocoaPods

    Hello

    I am trying to register the library of Mixpanel IOS (iOS Mixpanel API Overview) in a Native Extension and in their documentation that it suggests to install it in your IOS using CocoaPods project. When I do that, CocoaPods creates a library file (libPods.a) that says that Xcode "is not a file object and cannot be included in a library project.

    Thus, there is a library file which cannot be included in a library project, if I understand correctly.

    Is it possible to create a DONKEY component IOS is not a library project? Or is it possible to use the file platformoptions.xml to include this additional library file? How to set the path to this file so it is?

    -Steve Warren

    Try this. Add the following in the platformoptions xml file:

    libPods.a

    Add libPods.a to the adt command, so it is included in the donkey as well as the other file to the library.

  • ICloud using photo library for the first time

    I am considering switching to iCloud photo library for the first time - mainly so I'll be able to use the new functionality of memories in iOS 10. However, I have quite a large library of Photos on my Mac and I'm worried about the mistakes of synchronization, bugs and any damage my irreplaceable photos. I have a Time Machine backup, but each backup on which generally only lasts a week or so, and with a large library of errors can take some time to appear. Should I be worried? Are there precautions I need to take?

    In view of all the people who use it, there are very few messages on issues. Since you have a backup, you can still recover. You can consider to get a 2nd external and make a copy of your photo library in order to have 2 backups. Depending on the size of your library, you may need to purchase additional iCloud storage as free storage space is 5 GB. With a large number of photos, it will take much time to complete the synchronization. Some people have posted their s took 2 to 4 weeks. Our respective synchronization went well and we had no problem.

    Downgrades and upgrades of storage

  • Can I use a library FCX on a PC

    My question is who gave as a FCX library images, rather than individual files. I don't own a Mac.

    I can open a library FCX in any software based editing Windows such as Premiere Pro, and if not, is it possible that I can "extract" the files of the library on my PC?

    The library cannot be opened on a Windows machine. You can't even put on a disk formatted BACK. How did the library? Which could give us a start on what you can extract. In any case if he needs help with the provider of the CPF on the basis of an XML library file that has been converted use the XtoCC utility to change in an XML format that can be read by the first.

  • Using script - library locked when you try to add the file to it

    Hello

    I'm just a simple script that I can run with my engines of the action, so if I add new enum values I can create new wrappers quickly. I am able to create a new VI on disk, but when I try to add the the VI to the library, I get "error 1562: library, or the specified project is locked." Just before adding the article, I tried to adjust the State of the library "Not locked", but has not been the tower.

    Directions to see the error:

    Open attached zip file

    Open 'Engine.lvlib Action '.

    Run "Script - Create Wrapper.vi.

    Please let me know how to get around this, I thank you,

    Gregory

    There are two reasons at least a library locks: 1) something he possesses is running, 2) is open in two or more instances of the application.  (This applies to classes too.)

    I started a project and took your scripts out of the library (to avoid the #1) and then open your Library Reference by path in your script, be sure to include the reference of the application (to avoid the #2).

    Works now.  (With the exception of the Init.vi but you mentioned earlier that you knew about it. But point 1 and 2 of article work fine.)

Maybe you are looking for