Multiple Applicatio​n Instances - Class Library Locked?

I have a project that contains two targets, real-time and my computer. If I create a class and try to use it on both targets the class library becomes locked for edits. Is there a work around for being able to work on a project that has two targets and have the flexibility of developing your classes all within the same LabVIEW project file?

JonN wrote:
Sorry Ben,
Yes, I would like to be able to edit a class library that is used by multiple targets in my project file. When you asked 'while actively using it on one of the nodes?' -- If by node you mean one of the target's VI block diagrams? -- Yes, but the problem occurs when I try to use the class within code on both targets. 
...but only if you are trying to blueprint the engine (edit) while taking on a quarter mile (running it).... ?
I never attempted to do that thinking I would probably run into complications.
Best i can do is suggest you include only what you need in the project and don't touch the Class that are being used.
Sorry I can not suggest better,
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • Class library is locked, but shouldn't be

    I've run into some particularly weird behavior of LabVIEW 2011 SP1:
    I have a base class, "Scanner". Child classes will generally have a member VI called "Scan loop.vi", so Scanner has a member method "Scan loop template.vi". This template can be used to make creating a child class easier.
    I created a child class, "MCL Fast Scanner". I copied the "Scanner : Scan loop template" member VI, and added it to "MCL Fast Scanner", renamed as "MCL Fast Scanner : Scan loop.vi".
    Now, for some strange reason, when I open the project, the "MCL Fast Scanner.lvclass" library appears locked, with LabVIEW indicating that "this LabVIEW class is loaded in multiple application instances". I'm pretty sure it isn't (note: I'm note using any real-time targets).
    I found a way to unlock the library: simply open "MCL Fast Scanner : Get scan loop.vi", which happens to contain a Static VI Reference to "MCL Fast Scanner : Scan loop.vi". Opening this VI mysteriously makes the library lock disappear.
    I've tried to summarize this in the picture below:
    So I'm not entirely sure what's causing this behavior:
    Either it's because I originally messed around with copying this template VI from the base class. This would seem similar to a post from a few years ago, mentioning an eerily similar issue. However, I afterwards tried re-creating "Scan loop.vi" from scratch, and that didn't solve anything.
    There's something strange going on with the Static VI Reference.
    I created the "MCL Fast Scanner" child class using the LVOOP Assistant; could that have botched something?
    Feel free to contact me if the actual files are needed for further investigation.
    Thanks!
    Science & Wires — a blog on LabVIEW and scientific programming
    http://scienceandwires.com

    Hey,
    Actually, there are more than one CAR related to the auto populating feature opened at the moment
    Ealier in the development of his project, Onno ran into some corruption of his project (for reasons only him can give you). He thought he had resolved -most of- them. Thus, the locked library issue he still have at the moment is probably a consequence of a previous corruption. Because of that, I cannot give you a precise CAR reference, but for sure, the R&D is aware of some issue with the auto-populating folder. This one (CAR#347498) is probably intersting to follow though.
    Cédric | NI Belgium

  • Creating a class member VI from a template locks the class library.

    I have a LabVIEW (8.6.1) class where I need to create a number of very similar member VI's.  In order to make this process more convenient, I created a couple of VI templates.  However, I've found that creating a new VI from the template always locks the class library.  The library then remains locked until I close and reopen the project.
    When I select "Why is library locked?" from the context menu, I'm told:
    "The library is locked because:  This LabVIEW class is loaded in multiple application instances.  Classes must be in only a single application instance to be edited.  The containing library is locked."
    I have the same problem if I create a new project (see attached ZIP file), add a class, and then add two templates.  Everything seems OK if I have only one template.
    Am I doing something wrong, is this a bug in LabVIEW, or do I misunderstand the expected/intended behavior of template VI's?  Is there a way to "unlock" the class library without closing and reopening the project?
    Thanks in advance,
    Mark Moss
    Attachments:
    Locked Class Library Problem.zip ‏17 KB

    Hello,
    >> Any good sample projects on this out there?
    Not suer if you are using C# as the develop language, if it is, i think you would find a lot of articles about this topic with your favorite search engine, here are some related links:
    COM Interop Part 1: C# Client Tutorial
    COM Interop Part 2: C# Server Tutorial
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Static Classes/Methods vs Objects/Instance Classes/Methods?

    Hi,
    I am reading "Official ABAP Programming Guidelines" book. And I saw the rule:
    Rule 5.3: Do Not Use Static Classes
    Preferably use objects instead of static classes. If you don't want to have a multiple instantiation, you can use singletons.
    I needed to create a global class and some methods under that. And there is no any object-oriented design idea exists. Instead of creating a function group/modules, I have decided to create a global class (even is a abstract class) and some static methods.So I directly use these static methods by using zcl_class=>method().
    But the rule above says "Don't use static classes/methods, always use instance methods if even there is no object-oriented design".
    The book listed several reasons, one for example
    1-) Static classes are implicitly loaded first time they are used, and the corresponding static constructor -of available- is executed. They remain in the memory as long as the current internal session exists. Therefore, if you use static classes, you cannot actually control the time of initialization and have no option to release the memory.
    So if I use a static class/method in a subroutine, it will be loaded into memory and it will stay in the memory till I close the program.
    But if I use instance class/method, I can CREATE OBJECT lo_object TYPE REF TO zcl_class then use method lo_object->method(), then I can FREE  lo_object to delete from the memory. Is my understanding correct?
    Any idea? What do you prefer Static Class OR Object/Instance Class?
    Thanks in advance.
    Tuncay

    @Naimesh Patel
    So you recommend to use instance class/methods even though method logic is just self-executable. Right?
    <h3>Example:</h3>
    <h4>Instance option</h4>
    CLASS zcl_class DEFINITION.
      METHODS add_1 IMPORTING i_input type i EXPORTING e_output type i.
      METHODS subtract_1 IMPORTING i_input type i EXPORTING e_output type i.
    ENDCLASS
    CLASS zcl_class IMPLEMENTATION.
      METHOD add_1.
        e_output = i_input + 1.
      ENDMETHOD.
      METHOD subtract_1.
        e_output = i_input - 1.
      ENDMETHOD.
    ENDCLASS
    CREATE OBJECT lo_object.
    lo_object->add_1(
      exporting i_input = 1
      importing e_output = lv_output ).
    lo_object->subtract_1(
      exporting i_input = 2
      importing e_output = lv_output2 ).
    <h4>Static option</h4>
    CLASS zcl_class DEFINITION.
      CLASS-METHODS add_1 IMPORTING i_input type i EXPORTING e_output type i.
      CLASS-METHODS subtract_1 IMPORTING i_input type i EXPORTING e_output type i.
    ENDCLASS
    CLASS zcl_class IMPLEMENTATION.
      METHOD add_1.
        e_output = i_input + 1.
      ENDMETHOD.
      METHOD subtract_1.
        e_output = i_input - 1.
      ENDMETHOD.
    ENDCLASS
    CREATE OBJECT lo_object.
    lo_object->add_1(
    zcl_class=>add_1(
      exporting i_input = 1
      importing e_output = lv_output ).
    lo_object->subtract_1(
    zcl_class=>subtract_1(
      exporting i_input = 2
      importing e_output = lv_output2 ).
    So which option is best? Pros and Cons?

  • IPhoto Library Locked

    I copied an iPhoto from computer A to an external hard drive. The hard drive has a GUID Partition Table in “Mac OS Extended (Journaled)” format. I then copied the library to computer B. On computer B when I try to open I get the message “The iPhoto Library is locked, on a locked disk, or you do not have permission to make changes to it.” Both computers are "Mac OS Extended (Journaled."
    Per previous discussions, I tried to rebuild the library and the problem persisted. I then tried to rebuild the library using iPhoto Library Manager.  Large numbers of photos could not be imported had generated the following message: “The following file could not be imported. The file is in an unrecognized format.” Ultimately only 542 photos out of a library with close to 6,000 were imported.
    I then deleted the com.apple.iPhoto.plist. There were no cache files in my Application Support folder to delete and the cache folder in my library had nothing for iPhoto.
    Both computers are running under OS 10.8.2 and the iPhoto version is 9.4.2.
    Any suggestions?

    I was unsuccessful in rebuilding the library via iPhoto Library Manager. It appeared to work correctly up to rebuilding thumbnails pretty much at the end of the process. Several times during this process iPhoto quit unexpectedly; in most instances iPhoto Library Manager simply restarted iPhoto but at one point IPLM said it was unable to communicate with iPhoto and the whole process just hung up. I had to force quit IPLM.
    The rebuild process did have a couple oddities, perhaps as a result of the corrupted original library. There was one event, all photos taken on December 13, 2012, that had 100+ ptono - an event was created for each photo rather one event for them all; so 59 events in the original became 204 in the rebuilt. There were several instances of duplicate photos (Iphoto asked whether to import or not). Rather than the original 5911 photos I ended up with 6026 in the rebuilt library. The original was 33.02 GB, the new one is 27.04 GB.
    In the rebuilt library, the same reverting behaviour exists: when I double click on a photo that has been previously fixed, I can watch the changes disapeear as it reverts to original on its own.
    Are there any further things I can do to fix the original library? In IPhoto library manager I can drag events into a new library and could essentially create a "rebuilt" library that way. Worth a try? Any other suggestions?
    On another note, I did copy the rebuilt library from Computer A to HD to Computer B.It now opens fine on Computer B where it also spontaneously reverts images and discards all the changes.
    By the way, I'm currently in Thailand so I'm 12 to 15 hours ahead of anyone in the states: I'm mostly asleep during your day time so don't always respond as quickly as I'd like.

  • Multiple iPhones and one iTunes Library

    I have a question about multiple iPhones and one iTunes Library.
    Currently I have 3 PC's, 2 iPods and 2 iPhones.
    My PC had the iTunes library on it and everyone was just listening to mine via the iTunes sharing.
    Well I bought a Buffalo LinkStation and told itunes to move my library to M:\My Music\..... and then did a Consolidate Library which in turn moved all the music from my C: drive to the M: drive.
    My wife's computer has it's own Library with no music (only app store apps, and ringtones).
    Now my question is what happens if I tell my wifes computer that M:\My Music\....... is her new location of the library and restart itunes. I am pretty sure this will work fine. But what happens if she syncs her iPhone now? Will all my apps now be on her phone and she will lose hers? She does have her own itunes store account with her own apps. Is there a way to have it so only her apps are on her phone and my apps are on my phone? Can she choose different playlists to be synced than what I have?
    Any help would be appreciated.
    Thanks
    Brad

    Since the three of you are using separate iTunes accounts, then you each need to run your own itunes, which should be logged into the itunes store using each individual account.  For that, on a laptop, you each need to have your own computer accounts.

  • How can I have multiple accounts and only one library

    How can I have multiple accounts and only one library that all the purchased items feed into?

    ask your wireless provider.

  • How can i change the class in the Class Library project to be static or public so i can use it from the windows application project ?

    First i know that when i make any changes to the class library project i need to rebuild the project then to remove the Capture.dll from the TestScreenshot project and then to add again the updated Capture.dll
    The problem for example in this case i'm trying to use a public static variable i add in the DXHookD3D9.
    In the DXHookD3D9 i added this public static variable:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    //using SlimDX.Direct3D9;
    using EasyHook;
    using System.Runtime.InteropServices;
    using System.IO;
    using System.Threading;
    using System.Drawing;
    using Capture.Interface;
    using SharpDX.Direct3D9;
    namespace Capture.Hook
    internal class DXHookD3D9: BaseDXHook
    public DXHookD3D9(CaptureInterface ssInterface)
    : base(ssInterface)
    LocalHook Direct3DDevice_EndSceneHook = null;
    LocalHook Direct3DDevice_ResetHook = null;
    LocalHook Direct3DDevice_PresentHook = null;
    LocalHook Direct3DDeviceEx_PresentExHook = null;
    object _lockRenderTarget = new object();
    Surface _renderTarget;
    public static decimal framesperhourtodisplay = 0;
    protected override string HookName
    get
    return "DXHookD3D9";
    List<IntPtr> id3dDeviceFunctionAddresses = new List<IntPtr>(
    framesperhourtodisplay
    The problem is i can't even get to the Capture.Hook namespace and not to the DXHookD3D9 from the TestScreenshot application window project.
    This is a screenshot:
    For example fro the FramesPerSecond class i can use it get to it from the windows forms application.
    namespace Capture.Hook
    /// <summary>
    /// Used to determine the FPS
    /// </summary>
    public class FramesPerSecond
    int _frames = 0;
    int _lastTickCount = 0;
    float _lastFrameRate = 0;
    Since it's public i guess.
    But if i will change the DXHookD3D9 class from internal to public:
    public class DXHookD3D9: BaseDXHook
    I will get error on the DXHookD3D9: 
    Error 1
    Inconsistent accessibility: base class 'Capture.Hook.BaseDXHook' is less accessible than class 'Capture.Hook.DXHookD3D9'
    And the BaseDXHook class:
    namespace Capture.Hook
    internal abstract class BaseDXHook: IDXHook
    protected readonly ClientCaptureInterfaceEventProxy InterfaceEventProxy = new ClientCaptureInterfaceEventProxy();
    public BaseDXHook(CaptureInterface ssInterface)
    this.Interface = ssInterface;
    this.Timer = new Stopwatch();
    this.Timer.Start();
    this.FPS = new FramesPerSecond();
    Interface.ScreenshotRequested += InterfaceEventProxy.ScreenshotRequestedProxyHandler;
    Interface.DisplayText += InterfaceEventProxy.DisplayTextProxyHandler;
    InterfaceEventProxy.ScreenshotRequested += new ScreenshotRequestedEvent(InterfaceEventProxy_ScreenshotRequested);
    InterfaceEventProxy.DisplayText += new DisplayTextEvent(InterfaceEventProxy_DisplayText);
    ~BaseDXHook()
    Dispose(false);
    How can i solve it so i can use the variable framesperhourtodisplay in the DXHookD3D9 class with the TestScreenshot windows forms application ?

    Hi,
    I dont know if it will work here, since I dont know the complete structure, but the base call must be public, if the derived class is public, so the base class is at least as accessible as the derived class.
    Try make the base class public. (And maybe the base-class IDXHook of the base also...)
    Or use a different approach and make only the properties public that are needed to be public by adding an extra class...
    A structure could look like:(you need to create a class thats public in your dll and expose a property, and set this property in the internal class...)
    In the Accessing class (here Form1)
    public partial class Form1 : Form
    public Form1()
    InitializeComponent();
    private void Form1_Load(object sender, EventArgs e)
    C c = new C();
    MessageBox.Show(B.F.ToString());
    and in the class Lib:
    internal class A
    public A()
    B.F = DateTime.Now.Millisecond;
    public class B
    public static int F { get; set; }
    public class C
    public C()
    A a = new A();
    (add a referenc to the class lib from the accessing project)
    Regards,
      Thorsten

  • I have mac book air os x 10.8.2  i create a photo library on iPhoto and i moved it to my time capsule disk now i try to access  library from my wife mac book running on mac os x 10.5.8 i always receive library locked on locked disk

    i have mac book air os x 10.8.2  i create a photo library on iPhoto and i moved it to my time capsule disk now i try to access  library from my wife mac book running on mac os x 10.5.8 i always receive library locked on locked disk

    Unless you can set the Time Capsule's drive to have it's ownership ignored
    you won't be able to use the library on the same volume as the Time Machine backups. 
    OT

  • Set image path in java class library

    Hi,
    I created a java class library project and made .jar file. My java class library contains .jpg files in separete folder named as Images. My .jar file contains list of classes and image folder also but when i am using .jar file in applet. java class library is working but images are not shown. Let me know how to create imageicon to show images also in the class library

    ImageIcon icon = new ImageIcon(getClass().getResource(path-to-file));

  • Class library in a web app and config files

    I built some class libraries and included them in a web project. Where do I put configuration files so the class library can access them? no matter where I put it, i keep getting file not found. What I've been doing is having a JSP read the config details and pass it to the class library. Is there another way?

    I guess the question is where IT thinks the file is? What code are you using to load it?
    I guess what I'm asking is where is the default folder for FileInputStream?The default folder is your runtime working directory. More often than not thats the "bin" directory of Tomcat. Not a great place to go looking for files.
    getResource() and all that can be accessed from the JSP but those aren't available to me from within the class libraries. Are you saying you don't have access to a ClassLoader object that you can call getResource or getResourceAsStream on? You should be able to access things in the WEB-INF/classes directory in that way.
    Given a web app, my first inclination would be to use the ServletContext.getResourceAsStream method.
    Rather than passing in a file name, why not an InputStream, or byte[] ?
    cheers,
    evnafets

  • Creating a class library in VS2013 that can be referenced by a VB6 application and newer applications

    I need to create a class library in VS2013 that can be referenced by a VB6 application and newer applications. I heard something about
    COM Interop but have no idea where to start. I am assuming I would develop a class library in VS2013 and then package the assembly for COM. Any good sample projects on this out there?

    Hello,
    >> Any good sample projects on this out there?
    Not suer if you are using C# as the develop language, if it is, i think you would find a lot of articles about this topic with your favorite search engine, here are some related links:
    COM Interop Part 1: C# Client Tutorial
    COM Interop Part 2: C# Server Tutorial
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to insert null in C++ Class library

    I am using oo4o Class library. I am inserting arrays into the database
    This is my code (it is simplified):
    // C++ Code
    OStartup();
    oRes = m_o_Session.Open(); // m_o_Session is OSession // oRes is oresult
    oRes = m_o_db.Open(m_o_Session,sSource,sUser,sPassword); // m_o_db is ODatabase
    oRes = m_o_db.BeginTrans();
    // the insert proccess
    // Add Params
    OParameterCollection oParamCol = oDB.GetParameters();
    OParamArray o_NUM_INDEX_Ary = oParamCol.AddTable("xi_lv_NUM_INDEX",OPARAMETER_INVAR,OTYPE_NUMBER,10);
    OParamArray o_TEXT_Ary = oParamCol.AddTable("xi_sv_TEXT",OPARAMETER_INVAR,OTYPE_VARCHAR2,10,250);
    OParamArray o_NUMBER_OPT_Ary = oParamCol.AddTable("xi_dv_NUMBER_OPT",OPARAMETER_INVAR,OTYPE_NUMBER,10);
    for(int i =0;i<10;i++){
    o_NUM_INDEX_Ary.SetValue(i,i);
    o_TEXT_Ary.SetValue("asdasd",i);
    o_NUMBER_OPT_Ary.SetValue(??????,i);
    oRes = oDB.ExecuteSQL("INSERT INTO GEN_TABLE_TEST_T (NUM_INDEX,TEXT,NUMBER_OPT) VALUES (:xi_lv_NUM_INDEX,:xi_sv_TEXT,:xi_dv_NUMBER_OPT)");
    oParamCol.Remove("xi_lv_NUM_INDEX");
    oParamCol.Remove("xi_sv_TEXT");
    oParamCol.Remove("xi_dv_NUMBER_OPT");
    oRes = m_o_db.CommitTrans();
    oRes = m_o_db.Close();
    m_o_Session.Close();
    OShutdown();
    my question is where I marked ?????? I want to insert null to a numeric field
    I tried to put NULL instead of ?????? - does not work
    I tried to put OValue initialized with null instead of ?????? - does not work
    and I need to send him in the insert Sql because sometimes it does not null and i have to give him value.
    thanks is advance
    Yoav

    Just create an empty OValue object:
    OValue nullv; // construct null value
    then call the appropriate SetValue method...
    xxx.SetValue(nullv);
    Should do it.

  • What is a class library?

    can someone tell me what a class library is? examples would be helpful thanks

    A bunch of associated classes, meant to be used by other classes.
    Typically these classes are focused on a particular area of functionality, for example, an "email library" or "3d graphics library".
    The classes in the library do not know about the other classes that use it. (But the classes that use the library know about it, obviously.)
    In java, typically bundled in a jar file.
    There's probably a much better description somewhere.

  • Multiple AD FS Instances/independent AD FS Servers in one domain or forest

    Hello together,
    Is it possible to install multiple AD FS Instances on independent AD FS Server in one Domain or Forest? If yes, is that supported from Microsoft or best practice?
    Best regards
    Ulrich Greshake

    Hi Ulrich,
    Is it possible to install multiple AD FS Instances on independent AD FS Server in one Domain or Forest?
    Yes, it is possible. Actually, multiple instances in a single ADFS farm are very useful for fail-over.
    Here are some references below for you:
    Active Directory federation Services Question - Can I run two seperate ADFS instances in my domain?
    https://social.msdn.microsoft.com/Forums/exchange/en-US/3c8903c8-d6d6-471d-9966-b23c83172a40/active-directory-federation-services-question-can-i-run-two-seperate-adfs-instances-in-my-domain
    ADFS Deployment Topology/Architecture
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/e85b1b06-9559-4028-b7cf-eed6582fe60d/adfs-deployment-topologyarchitecture?forum=Geneva
    ADFS High Availability – Quick Reference Guide for Administrators. Implement Single sign-on for Office 365.
    http://blogs.technet.com/b/ucando365talks/archive/2014/04/15/adfs-high-availability-quick-reference-guide-for-administrators-implement-single-sign-on-for-office-365.aspx#.VMnxiXkfpes
    In addition, here is a dedicated ADFS forum below:
    Claims based access platform (CBA), code-named Geneva Forum
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=Geneva
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

Maybe you are looking for